Remove "read more" from front page - How?
rgsmith - April 8, 2008 - 18:59
The "read more" link that Drupal installs on my front page causes the page to format oddly, possibly because of the photograph on the page. I need to remove the link. I have done this before but can't remember how.
To see the problem, go to http://www.rgsmithmusic.com/drupal/ then click the "home" button or go to http://www.rgsmithmusic.com/drupal/node/1 see the page formatted correctly.
Can anyone help? Thanks
RGS

admin-->content
admin-->content managment-->post settings set length of trimmed post to the max allowed value, this will display the whole post thus removing the "read more"
or in your custom .tpl file do not display the links
<?phpprint $title;
print $content;
print $tags;
print $comments;
?>
something like that, i would have to lookup the syntax to be sure
Remove "read more" from front page - How?
Thanks. I tried it but it didn't work. I did find it though. I disabled comments for the offending page and everything works now.
RGS
I think its the $links;
I think its the
$links;variable that displays all the links plus the read more, try removing that variable and using these:$terms;//or
$taxonomy;
$comment;// not sure about this one
also you can do the CSS method, just find the class of the item you which to remove and a CSS property with the attribute of "none"
.read-more { display: none }It worked
Thanks for the tip
I used this code to hide links on frontpage.
// Hide links - such as email to friend, mark as spam, etc
.links { display: none }
// If you have service_links module, enabled, this will help you hide them.
.service-label { display: none }
Thanks again for the wonderful tip
Vinay Yadav
PHP / Drupal Developer
http://www.vinayras.com
www.eDrupal.com - Indian Drupal Community
An easy solution I found
An easy solution I found that seems to work is placing the "
<!--break-->" at the very end of your post. When I did this the "read more" link just doesn't appear. No hacking necessary.Found another way
Hey guys,
That <\!--break--> doesn't work for me.
I only had a problem with the "Read More" on my home page, but when I click on home I don't get the "Read more".
So what I did was go to site configuration > site information and explicitly defined the node for my home page.
works like a charm now :)
This is the only answer that
This is the only answer that worked for me! Thanks.
In other words going to: admin/settings/site-information and defining the default home page to match that of my front-page.
You can also go
You can also go to:
Administer > Content Management > Post settings
Set the Length of trimmed posts to 'Unlimited'
This will show the entire page, but the title will still be a link to the node itself.
Thanks. Bookmarking
Thanks. Bookmarking
thank you shane, that worked
thank you shane, that worked perfectly for me..very easy fix
Shane is right on the money with this one
I was having exactly the same problem with my home page but following his idea:
admin/settings/site-information - Default front page
fixed the "Read More" problem for me on my home page.
Thanks Shane
For me <!--break--> works
For me
<!--break-->works fine.