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

mz906 - April 8, 2008 - 20:45

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

<?php
   
print $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?

rgsmith - April 9, 2008 - 01:37

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;

mz906 - April 9, 2008 - 12:43

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

vinayras - June 13, 2008 - 13:20

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

ackologic - July 15, 2008 - 16:00

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

shane2807 - July 31, 2008 - 14:23

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

chata - December 3, 2008 - 22:38

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

JonoB - January 27, 2009 - 12:27

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

profjk - January 27, 2009 - 12:49

Thanks. Bookmarking

thank you shane, that worked

mxer269 - March 19, 2009 - 05:25

thank you shane, that worked perfectly for me..very easy fix

Shane is right on the money with this one

Dig1 - May 31, 2009 - 14:21

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

antonioedirane - June 5, 2009 - 04:12

For me
<!--break-->
works fine.

 
 

Drupal is a registered trademark of Dries Buytaert.