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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1261
    Avatarkennydai
    Supported

    please check my blog page

    see my site information

    It doesn’t show paging and read more.

    #1265

    Hi there,

    Please go to edit post, add blog More for your post: https://prnt.sc/vehyt2

    #1266
    Avatarkennydai
    Supported

    Hi you misunderstand my meaning. I would like to have this blog page style.
    see this link
    https://demo2.pavothemes.com/shopic/blog/

    And my blog page doesn’t have paging.see the screenshot.
    https://prntscr.com/vei4pk

    My blog page don’t have paging.

    #1270

    1. Setup Readmore: please follow my guide at #1265
    2. Paging: Go to setting -> Reading and setup post per page: https://prnt.sc/vei8jw
    In Blog post, totall post must more than post per page to show paging.

    If you need to help, please send admin for me, I will check and help you.

    #1271
    Avatarkennydai
    Supported

    Thank you.
    do you have any template to set up this page automatically just like https://demo2.pavothemes.com/shopic/blog/

    because i don’t want to set up Readmore for each post.

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

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

You must be logged in to reply to this topic.