How do i remove the read more link i tried going thru the code cant find it.

Comments

sheth.varun’s picture

Assigned: sheth.varun » Unassigned
sheth.varun’s picture

I need help to remove the read more link in the content

danpros’s picture

Status: Active » Fixed

Hi,

Open the node.tpl.php and remove this

    <div class="links">
      <?php print $links; ?>
    </div>
sheth.varun’s picture

It removes the read more link but the page display is still not full i need to show the entire page content

sheth.varun’s picture

Can somebody please tell me how to have full content instead of readmore link

Deepika.chavan’s picture

Hi,
To get full node instead of 3-4 lines on front page:
1. Click on 'Edit summary' link and put the same data in the summary which is there in body of your content.
2. Follow the instructions given in local_sample.css file to activate custom css file.
3. To Hide the 'Read more 'link add following css in local.css file.

.links ul li.node-readmore {
  display: none;
}

4. Please clear cached data.

Rgrds,
Deepika Chavan.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Shepherd348’s picture

I appreciate your attempt at solving this problem but the example you've provided is half an apple. Noobies like myself do not know the context that this code is to be entered into. I deleted the code that called for the read-more icon to show up and put this code in its place. The read-more icon disappeared and was replaced by this code. Can you please provide the complete phrase for the ignorant masses?

Thanks for your input. I'm half bald headed from pulling my hair out.

Shep

senortim’s picture

@Shepherd348 It's not clear from your message which code you're talking about -- the PHP (#3) or the CSS (#6). FWIW, the CSS is the easier way of simply getting rid of the button. The actual CSS file you need to modify may depend on your theme. It's good practice to sub-theme so that you can upgrade the base-theme without overwriting your changes.

My question, for any takers, is how one can hide the Read More button when there isn't more content than is already shown. (Or show it only when there is.)

Within a Panel, I'm rendering full nodes from within Views using a custom view mode, with the goal of making the render nodes look like they're part of the body of the page. But sometimes, the content managers are going to post long chunks of text, and so the ability to trim when necessary would be nice.

kiruthik51’s picture

I have 3 teaser content which is displayed in home page.I need to remove READ MORE link to the second node alone.For the other 2 nodes i need to have read more.How to do this

CB Stilborg’s picture

There is a module for this:

https://drupal.org/project/readmorecontrol

kojow7’s picture

Issue summary: View changes

Here is what I did to solve the problem in Drupal 7:

  1. Install the Read More Control module: https://drupal.org/project/readmorecontrol
  2. Go to the Global settings under Configuration > Content Authoring > Read More Settings
  3. Set the default behaviour to "Show link when required by any supported fields"
  4. Go to the configuration page for my content type.
  5. Remove "Teaser" in the Custom Display Settings section.
office@w3k.at’s picture

To remove the read more link from content in drupal 7 - via template files, add this to node.tpl.php

hide($content['links']);

Somewhere before

    print render($content);