Community & Support

Remove "read more" from front page - How?

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

Comments

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

<?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?

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

Vinay Yadav
PHP / Drupal Developer
http://www.vinayras.com

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

This works but only for new

This works but only for new content after you set it. Any existing content won't be fixed and you'll have to delete it and redo it.

thank you shane, that worked

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

mxer269
C.P.C. developments

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.

Wokrs for me

thanks it works for me

best way to remove read more link

thnk you, really this the best way to remove title and read more link from home page

thanks

thanks a lot.... defined the node for my home page worked for me...

I had that problem as well.

I had that problem as well. Entering in the break at the end worked for me, but I noticed that if you are using a wysiwyg, at least the one one my site, wraps everything the a p tag, and the closing paragraph tag ends up being entered after the break tag. I needed to go in and view the code, and move the closing p tag to before the break tag. You also need to have the show summary box checked.

This solutions caused me other problems

Ok, the best solution for me is set the node for de front page instead of using "node" only

But now my problem is the following:

I had problems with the language switcher because my home link dissapear from the primary link menu when I tried to switch a language and nothing happend. Then I fixed it changing the front page to "node" instead of "node/1". I thought this was the solutions but now I have a front resume view of the front page and a read more link. Any solution to avoid both problems: the language switcher problem and the front page problem.

Kind Regards

Paul

Using worked great for me. I

Using the <!--break--> tag worked great for me. I did have to remove all whitespace in my WYSIWYG editor after the break tag or it wouldn't work, so make sure there is absolutely no text or spaces after that tag or it will not work.

This Is A Dirty Hack

Sorry for the term I used. It may not be the case but for a newbie like me, it looks one.

I have to assume that everybody here is a newbie -- (I am one). I was expecting that Drupal should have something cleaner than '' (which I am using, by the way, thanks)

The 'Content Management->Post Settings->Length of Trimmed posts:Unlimited' should do the trick but for some reason it didn't.

As it is, one has to get used to the way Drupal works, so things like this isn't awkward or something.

And oh yeah, this particular thread is just one of them and it dated way back when -- 2007 or so and this is already 2010....I believe there should be a standard for this. hmmm...

Take Your Time and Focus!

Remove "read more"

Despite the 'Content Management->Post Settings->Length of Trimmed posts:Unlimited'...."read more" is still there!!

nobody click here