Home Forums Pro Themes Construction Base Pro Controlling Excerpts in CB:features and CB:services

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #60522
    tarek-elnazer
    Participant

    Hi,
    when customizing my home page as per the demo. I faced a challenge that the mentioned to plugins get the excerpts from the beginning of the page with a fixed length.
    I wish to display a number of words from each page that is different than the others, and it would have been better if i can write the except explicitly not to be taken from the beginning of the page.

    am i missing something? is there any property in the page that i can use to write the excerpt?
    if not, can i expect any update with those features?

    Thank You

    #60588
    wensolutions
    Keymaster

    Hello @tarek-elnazer,

    The page edit screen does not have the excerpt field but you can add the excerpt field through the custom code in the page edit screen so that you can control the content that you want to display in your site.

    For this you have to create the child theme.

    You can even create the child theme using the plugin given below:

    https://wordpress.org/plugins/wp-child-theme-generator/

    After activating the child theme in your child theme functions.php file add below given code:

    add_action( 'init', 'construction_base_pro_excerpts_to_pages' );
    function construction_base_pro_excerpts_to_pages() {
        add_post_type_support( 'page', 'excerpt' );
    }

    After adding the code please make sure you have check the the excerpt option by going to Screen Option at top right.

    Screenshot:

    https://image.prntscr.com/image/uv2odGf5SJCYMTUAvZs7KQ.png

    Hope this helps.

    Best Regards!!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.