Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi nishagarg

    I am a bit confused by your question.
    Do you wish to pull whole content or show only title??

    Thanks!!

    Thread Starter nishagarg

    (@nishagarg)

    Hi sanjog,

    Yes, I wish to pull out the whole content on the home page.

    I mean posts should look like this:
    https://www.paulcounts.com/

    Thank you
    Nisha

    function replace_content( $excerpt ) {
    if(is_front_page()){
    return get_the_content();
    }
    }
    add_filter( ‘the_excerpt’, ‘replace_content’ );

    Hi

    First you need to create child theme.
    Now in functions.php file of child theme you need to copy and paste below code as a whole.

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
    }
    
    function replace_content( $excerpt ) {
    if(is_front_page()){
    return the_content();
    }
    }
    add_filter( 'the_excerpt', 'replace_content' );

    Best Regards!!1

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Want to remove excerpt from homepage’ is closed to new replies.