By trentharlem on
Using Firebug, I can see this link...
<div class="links-indent">
<div class="bg-links">
<div class="links-left">
<div class="links-right">
<div class="links">
<ul class="links inline">
<li class="node_read_more first last">
<a title="Read the rest of Home." href="/mysite/home">Read more</a>
</li>
etc.
What is the proper way to eliminate the "read more"? Find this code and delete it? Or shut off the 'create a read more button' function?
I'm not a programmer, so please keep your responses simple.
Thanks in Advance!
Edited by: VeryMisunderstood; Added code tags
Comments
=-=
if you don't want readmore links at all go to administer -> posts settings and set to unlimited
edit the nodes already existing and re-save for new post settings to take effect.
why doesn't this work for me?
It appears as though I have two versions of my home page. One is the domain name, that displays the "read more". And the other is mysite/home, that does not have the 'read more' link but has a "home" breadcrumb.
??
I found this code to remove Breadcrumbs...
To remove breadcrumbs from your Drupal web site you’ll need to remove a few lines of code from the page.tpl.php file that came with the theme. The location of the breadcrumbs varies depending on the theme; the lines of code to remove from page.php.tpl are as follows:
How do I ascertain the file name with the "read more" code?
=-=
remore is placed into the links variable. to remove the links variable means you remove anything that gets placed in links. ie: add new comment and the like.
home in the breadcrumbs should be pointing to / which is your front page, unless you've set a different front page in administer -> site information.
When creating your nodes did you split the summary? if so that would be why the read more link is showing. After altering your post settings you would have to edit the nodes rejoin the summary and save. Also ensure that you aren't using any
<!--break-->tags in your node.can of worms
Firstly, Thank you! it worked!
Secondly, now the word "Home" is mysteriouly back at the top of the article. I cant remember how I got rid of that...
How can I get to the HTML to delete the
<h2>?=-=
you mean what you said you did here: http://drupal.org/node/485348#comment-1679518 ?
I don't know what
<h2>you are talking about. You should use the firefox browser with the firebug and/or webdeveloper addons to allow you the ability to inspect elements and cssI can guess what happened here.
You are lacking in understanding of what you are looking at.
On a new site, creating one page called "Home" and promoting it means that the front page of your site will be showing a list of summaries of all promoted pages. And the first and only item in that list is the teaser for the page called "Home".
Clicking on that h2 will take you to the actual page node/n which is the page called 'home' - but not actually the front page.
If your content is short, it make take a bit of squinting to see the difference between the two, as they can look very similar in some themes. They are however built in quite different ways. One is a dynamic list (containing one item), the other a bookmarkable item.
You want to:
Make the page called 'home' the front page so that the front page does not (as currently, automatically) display the list of recent additions.
To that in site configuration and change the 'front' page from "node" to "node/1" or whatever.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Removing "Read More" from the front page
Great explanation! I have been searching for this solution since yesterday. I could not figure out why I could remove this link on all types of pages except on my front page. It is totally clear now. Glad theat I found this old post of you!- Thanks
Removing the "read more" button on the home page
I had exactly the situation described above. In v.7.1, I aliased my home page as "home". I them went into Admin/configuration/site information. Under Front Page/Default front page, I added 'home' in the box, and saved the configuration. It now still shows the breadcrumb, but I do not see the read more button
I can't remove read more from front page
I tried to remove "read more" by going to administer -> posts settings and set to unlimited, but even so read more is still there, and I can't se all the content, just 2 lines and read more, please help
the problem can sees at: http://mltmedia.dk
Thanks
=-=
there is no readmore link on your front page and your site is unthemed.
Thank you
I've been looking for this answer for two days and pulling what is left of my hair out. Thanks for your reply.
Removing Read More Drupal 7
I have solved this issue on my projects which include, making READ MORE invisible, translating or change the string name, or adding more into it such as "read more/comment".
It works for Drupal 7, older versions may work differently.
My notes can be found here:
http://metronewark.org/webdev/node/11
Hope it helps someone.
Remove read more
Yeah that helped. What I did instead was take out that section altogether. So, in >Modules>Node>node.module around line 1371 (Drupal 7.10) through 1379, it says:
I deleted this, without ill effect, and the 'read more' link has disappeared.
R
=-=
better off hiding it with CSS rather than hacking node.module, as the hack would need to be done every time you updated drupal core.
Yea I was looking for this
Yea I was looking for this option first but I had a hard time finding the applicable css files I think, using Chrome's , Bartik theme -so most css applicable is in style.css and layout.css. Would you mind elaborating?
For the site I'm doing I will probably not be updating anything, as it will be a fairly static website. So i chose this route that seemed to work.
Thanks for the response - I'm still learning a lot in Drupal and plan to continue.
R
=-=
don't search the files for it. Use chromes developer tools or firefoxes firebug. select the element, check the css being used override it in your stylesheet.
of the top of my head its class .readmore or .read-more but this should be verified by checking the CSS of the theme in use.
For anyone who still needs a simple answer:
The file you see in Firebug is here:
Sites > All > Themes > [YourTheme} > style.css
Add to "Link colors" section:
***********
.node_read_more a {
display: none;
}
***********
Mine today looks more like this:
***********
.node-readmore a {
display: none:
}
***********
I'm using Simple Clean in 7.14.