Tagged: x
-
AuthorPosts
-
September 24, 2016 at 10:59 am #1189144
addwebtodayParticipantHello everyone, I have this little problem on my blog posts. I want on the blog index page, DO NOT show the entire blog entry, instead show an excerpt followed by “Read More” Button to the original blog post. I already search for any threads but it’s not working for me. Can you please help? Thanks
September 24, 2016 at 11:01 am #1189147
addwebtodayParticipantI’ll send my login details below.
September 24, 2016 at 11:03 am #1189148
addwebtodayParticipantThis reply has been marked as private.September 24, 2016 at 12:08 pm #1189181
ThaiModeratorHi There,
Please add the following code under functions.php file locates in your child theme:
function x_excerpt_string( $more ) { $stack = x_get_stack(); if ( $stack == 'integrity' ) { return ' ... <div><a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a></div>'; } else if ( $stack == 'renew' ) { return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a>'; } else if ( $stack == 'icon' ) { return ' ...'; } else if ( $stack == 'ethos' ) { return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a>'; } } add_filter( 'excerpt_more', 'x_excerpt_string' );Hope it helps 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1189144 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
