Would like to get rid of read more button in home page pane

  • intricatemachine

    #2543

    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!!!

    url: http://www.tkogfx.com/boccia_dev

    Mod

    Kenneth John Odle

    #20806

    Try Graphene Options >> Display >> excerpts display options and untick the box marked “Show excerpts in front page”

    Prasanna SP

    #20807

    @Ken, I tried that in my test site. It won’t work..

    Josh

    #20808

    To get rid of the “read more” button… all of them…

    a.more-link, a.more-link span {
    display: none;
    }

    Prasanna SP

    #20809

    @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???

    Josh

    #20810

    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 above

    intricatemachine

    #20811

    Hey 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!

    steve5000

    #20812

    Great looking website! I didn’t even realize it was using Graphene theme.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!