How to remove excerpts from child pages?

  • jdobbsy1987

    #7456

    Hi,

    How do i remove the excerpt from child pages?

    I want to keep the child pages listed but without an excerpt.

    i.e. remove the area in the red box…

    excerp10.png

    Thank you in advance.

    Cheers,

    Jamie

    Prasanna SP

    #38253

    Add this to Custom CSS.

    .child-page p, .child-page img {
    display: none;
    }

    jdobbsy1987

    #38254

    That’s perfect, thank you.

    One other thing if you don’t mind as i have no clue about CSS sorry.

    If i decided not to remove all of the excerpt but reduce the amount of text shown to something like 50 characters, how would i do that?

    Cheers,

    Jamie

    Prasanna SP

    #38255
    Quote:
    If i decided not to remove all of the excerpt but reduce the amount of text shown to something like 50 characters, how would i do that?

    You need to enter custom excerpt for child pages.

    See this topic – https://forum.graphene-theme.com/graphene-support/how-i-do-this#post-27666

    Put

    <?php
    add_post_type_support( 'page', 'excerpt' );

    in your child theme functions.php file to enable excerpt for pages.

    jdobbsy1987

    #38256

    That’s perfect.

    Thank you very much for your help

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

You must be logged in to reply to this topic.