HomePage Forums Themes Support Shopic – Multipurpose WooCommerce WordPress Theme Hello my blog page doesn’t show read more option and doesn’t have paging Reply To: Hello my blog page doesn’t show read more option and doesn’t have paging

#1273

Hi there,
Please add code in shopic-child/functions.php :


function shopic_post_content() {
    ?>
    <div class="entry-content">
        <?php
        do_action('shopic_post_content_before');

        if (is_search()) {
            the_excerpt();
        } else {
            if(is_single()){
                the_content();
            }else{
                global $post;
                $excerpt = strip_shortcodes( $post->post_content );
                $excerpt = wp_trim_words( $excerpt, 50, '...' );
                echo $excerpt;
                echo '<p class="more-link-wrap"><a class="more-link" href="'.esc_url(get_the_permalink()).'">'.esc_html__('Read More').'<span>+</span></a></p>';
            }
        }
        do_action('shopic_post_content_after');
        wp_link_pages(
            array(
                'before' => '<div class="page-links">' . esc_html__('Pages:', 'shopic'),
                'after'  => '</div>',
            )
        );
        ?>
    </div>
    <?php
}

Hope this help!