Closed (fixed)
Project:
Zen
Version:
7.x-3.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 May 2011 at 07:39 UTC
Updated:
21 Aug 2013 at 14:18 UTC
How can i remove read more link from front page in view the whole content text?
Regards,
Comments
Comment #1
barrapontoin your template.php, look for SUBTHEMENAME_preprocess_node and put
unset($variables['content']['links']['node']);Comment #2
achu68 commentedThank you for your replay
There is
STARTERKIT__preprocess_nodeon line 103 and 107 i'm not which one is the right place. i have tested putting on both places, i cleared the cache but nothing is changed. . could you tell me the right place to put that code.I don't have php knowledge and i'm new to drupal.
Thank you and Regards,
Comment #3
barrapontowhen you are building your fist subtheme, you should change every instance of STARTERKIT to your sub-theme name. So if my sub-theme is called 'conway', then my template.php would contain a conway_preprocess_node function. Change the name of your functions in template.php accordingly, then try again.
Also, if it works for you, please close this issue.
Comment #4
xh116 commentedI think the best way without changing code is to change "admin/configuration/site infomation/default front page"
Comment #5
achu68 commented@barraponto when i put that code i get white blank screen. may be i put it in the wrong place. i don't have a php knowledge.
here is the code I have put it
what is the wrong?
@torrencechen i'm using Drupal 7
Comment #6
barraponto@achu68 is your subtheme called mytheme? anyway, it shouldn't give you a WSOD. try reading your php/apache logs.
Comment #7
cswebadmin commentedThis resolved my issue perfectly for a website running drupal 6.0 .
~Thanks for the info.
Comment #9
aaronmacy commentedWhen I add your code, I get the following error: "Notice: Undefined variable: variables in include_once()" with a reference to the line I've just added. Thoughts?
Comment #10
johnalbinclosing old support issues