You are hereBlogs / vinayras's blog / Removing "Read more" links from Frontpage

Removing "Read more" links from Frontpage


vinayras's picture

By vinayras - Posted on 13 June 2008

My website is powered by Drupal 5.7. Recently i reworked on its frontpage for better readiblity of data.

I was trying to remove "Read more" links from frontpage. After analyzing, i found that i could change in the module itself - but this will be overridden once i update my module.

I was looking for alternative solution to this - and while searching in Drupal.org forums, i came across
http://drupal.org/node/244182#comment-881076

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 }

you can checkout the code on http://www.nagpurpulse.com

Please send your suggestions / comments regarding this.

Thanks
Vinay

No votes yet
Anonymous's picture

Version 6? I thought we do have this version already. Could you recommend that one?

vinayras's picture

Yes, i agree - i just wanted to share quick and dirty tip to "hide" the links.

Vinay Yadav
http://www.vinayras.com

avadhutp's picture

This approach is a CSS approach, and the links are still there but just hidden. Nothing wrong with it though. :-)

Another approach would be if you are using a custom note-type.tpl.php file. There will be a PHP line that says

<?php print $links ?>

This is an array. Iterate through it and discard the read more link.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
13 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.