New Landing How can we help? Themeforest Theme Support Dante Read more after news items

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Dante
  • #116874
    1kfriends
    Member
    Post count: 62

    Hi, I was wondering how to add ‘Read More’ to our blog posts. It says it on our home page, but not the actual news page

    Thanks

    #116933
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit category.php at theme directory.

    Find this code:-
    <?php echo sf_get_post_item($post->ID, $blog_type); ?>
    Change to :-
    <?php echo sf_get_post_item($post->ID, $blog_type,$show_read_more = "yes"); ?>
    

    Thanks
    Mohammad

    #118191
    1kfriends
    Member
    Post count: 62

    Hi, in both places in the php code?

    Thanks!

    #118206
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Not sure what you mean?

    – Kyle

    #118217
    1kfriends
    Member
    Post count: 62

    That line shows up 2x in the code. So do I need to change both?
    <?php if ($sidebar_config == “both-sidebars”) { ?>
    <div class=”row”>
    <div class=”page-content col-sm-8 clearfix”>

    <?php if(have_posts()) : ?>

    <div class=”blog-wrap blog-items-wrap blog-<?php echo $blog_type; ?> <?php echo $wrap_class; ?>”>

    <?php if ($blog_type == “standard”) { ?>
    <div class=”timeline”></div>
    <?php } ?>

    <!– OPEN .blog-items –>
    <ul class=”blog-items row <?php echo $list_class; ?> clearfix” id=”blogGrid”>

    <?php while (have_posts()) : the_post(); ?>

    <li <?php post_class(‘blog-item ‘.$item_class); ?>>
    <?php echo sf_get_post_item($post->ID, $blog_type); ?>

    <?php endwhile; ?>

    <!– CLOSE .blog-items –>

    </div>

    <?php else: ?>

    <h3><?php _e(“Sorry, there are no posts to display.”, “swiftframework”); ?></h3>

    <?php endif; ?>

    <div class=”pagination-wrap”>
    <?php echo pagenavi($wp_query); ?>
    </div>

    </div>

    <aside class=”sidebar left-sidebar col-sm-4″>
    <?php dynamic_sidebar($left_sidebar); ?>
    </aside>
    </div>
    <?php } else { ?>

    <div class=”page-content clearfix”>

    <?php if(have_posts()) : ?>

    <div class=”blog-wrap blog-items-wrap blog-<?php echo $blog_type; ?> <?php echo $wrap_class; ?>”>

    <?php if ($blog_type == “standard”) { ?>
    <div class=”timeline”></div>
    <?php } ?>

    <!– OPEN .blog-items –>
    <ul class=”blog-items row <?php echo $list_class; ?> clearfix” id=”blogGrid”>

    <?php while (have_posts()) : the_post(); ?>

    <li <?php post_class(‘blog-item ‘.$item_class); ?>>
    <?php echo sf_get_post_item($post->ID, $blog_type); ?>

    <?php endwhile; ?>

    <!– CLOSE .blog-items –>

    </div>

    <?php else: ?>

    <h3><?php _e(“Sorry, there are no posts to display.”, “swiftframework”); ?></h3>

    <?php endif; ?>

    <div class=”pagination-wrap”>
    <?php echo pagenavi($wp_query); ?>
    </div>

    </div>

    <?php } ?>

    <!– CLOSE page –>
    </div>

    <?php if ($sidebar_config == “left-sidebar”) { ?>

    <aside class=”sidebar left-sidebar col-sm-4″>
    <?php dynamic_sidebar($left_sidebar); ?>
    </aside>

    <?php } else if ($sidebar_config == “right-sidebar”) { ?>

    <aside class=”sidebar right-sidebar col-sm-4″>
    <?php dynamic_sidebar($right_sidebar); ?>
    </aside>

    <?php } else if ($sidebar_config == “both-sidebars”) { ?>

    <aside class=”sidebar right-sidebar col-sm-3″>
    <?php dynamic_sidebar($right_sidebar); ?>
    </aside>

    <?php } ?>

    </div>

    <?php if ($blog_type != “masonry-fw” || $page_layout == “boxed”) { ?>
    </div>
    <?php } ?>

    <!–// WordPress Hook //–>
    <?php get_footer(); ?>

    #118226
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ahh yes

    – Kyle

    #118242
    1kfriends
    Member
    Post count: 62

    Hmm…it’s still not working even though I cleared the cache.
    Do you know why?

    Thanks

    #118367
    Mohammad – SUPPORT
    Moderator
    Post count: 27441
    This reply has been marked as private.
    #118590
    1kfriends
    Member
    Post count: 62
    This reply has been marked as private.
    #118625
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check it now.
    Thanks
    Mohammad

    #118629
    1kfriends
    Member
    Post count: 62

    thank you!

    #118687
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Thanks Mohammad
    -Rui

    #124580
    1kfriends
    Member
    Post count: 62

    Hi, this stopped working again.
    I want it to say “Read more” like it does on the home page after each blog item
    http://www.1kfriends.org/category/posts/

    thanks

    #124581
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Did you update the theme?

    -Rui

    #124582
    1kfriends
    Member
    Post count: 62

    No, I did not.

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register