Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Read more after news items
New Landing › How can we help? › Themeforest Theme Support › Dante › Read more after news items
- This topic has 15 replies, 4 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Dante
-
October 2, 2014 at 8:55 pm #116874
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
October 3, 2014 at 5:47 am #116933Hi,
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
MohammadOctober 7, 2014 at 4:13 pm #118191Hi, in both places in the php code?
Thanks!
October 7, 2014 at 4:31 pm #118206Not sure what you mean?
– Kyle
October 7, 2014 at 4:51 pm #118217That 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(); ?>October 7, 2014 at 5:12 pm #118226Ahh yes
– Kyle
October 7, 2014 at 5:48 pm #118242Hmm…it’s still not working even though I cleared the cache.
Do you know why?Thanks
October 8, 2014 at 7:36 am #118367This reply has been marked as private.October 8, 2014 at 2:52 pm #118590This reply has been marked as private.October 8, 2014 at 4:13 pm #118625Hi,
I have resolved the issue so please check it now.
Thanks
MohammadOctober 8, 2014 at 4:22 pm #118629thank you!
October 9, 2014 at 12:04 am #118687Great. Thanks Mohammad
-RuiOctober 30, 2014 at 4:27 pm #124580Hi, 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
October 30, 2014 at 4:38 pm #124581Hi,
Did you update the theme?
-Rui
October 30, 2014 at 4:39 pm #124582No, I did not.
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.