I use the Zen theme. I tried the solution given in Remove the 'read more' and 'Add new comment' links on the home page but I get a server error.
How can I remove the read more link from the front page?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI use the Zen theme. I tried the solution given in Remove the 'read more' and 'Add new comment' links on the home page but I get a server error.
How can I remove the read more link from the front page?
The problem is in the node rendering, not the page rendering. Its a lower/smaller level than the preprocess page. You can use node template overrides such as "node-fonts.tpl.php" where "fonts" is the name of the node type. You will copy "node.tpl.php" to make this then modify it to your liking. This template is found in "[SITE ROOT]/modules/node/". Copy this to your theme folder. When I do this I create a subfolder called "node" to help organize the theme overrides.
If you want an easier solution then I would use ConTemplate (otherwise known as Content Template). This will allow you to control this from the content type admin config (creates a template tab which has options for the teaser and the full node). This also provides details about the available variables and sample data from the last inserted node of the type you are looking at.
hide($content['comments']); hide($content['links']); print render($content);
i have know idea about php but i guess this one is for read more links. but nothing is changed the read more link still there. could you tell me what to do step-by-step please. I'm using zen theme
function STARTERKIT_preprocess_node(&$variables) { if ($variables['is_front']) { unset($variables['content']['links']); } }
and i cleared the cache. the the page is come up but nothing is changed i still see the read more links.