Would like to get rid of read more button in home page pane
-
Hello,
I used the options under the graphene display options for homepage panes to have the home page display the first most recent post from the category news. I would like to have the full post display and get rid of the read more button completely.
Any ideas on how to do this.
Thank you!!!
Mod
Try Graphene Options >> Display >> excerpts display options and untick the box marked “Show excerpts in front page”
@Ken, I tried that in my test site. It won’t work..
To get rid of the “read more” button… all of them…
a.more-link, a.more-link span {
display: none;
}@Josh, it just hides the “read more” button.. But he wants to display the whole post in homepage panes..
Edit: How about increasing the excerpt length (..to some infinite value) in funtions.php???
You can try this to remove the excerpt length cap:
function graphene_remove_filters(){
remove_filter('excerpt_length', 'graphene_excerpt_length');
}
add_action('init', 'graphene_remove_filters'); // Removes Graphene excerpt filter
function new_excerpt_length($length) {
return 10000; // Made this number up; it's the new length of allowed words
}
add_filter('excerpt_length', 'new_excerpt_length'); // Adds our new length defined aboveHey guys. Thanks so much for the replies. I meant to post back but must have blanked. I ended up combining two of the solutions here and it worked perfectly. I used the style code to get rid of the buttons and then edited the excerpts section of the functions.php so I could get full posts in the home page panes.
Thanks again!
- You must be logged in to reply to this topic.