Tagged: x
-
AuthorPosts
-
July 6, 2016 at 5:35 pm #1075466
swfeathersParticipantHi guys!
I would love you to have a look at this link: http://olivernias.com/work/
See how when you hover over the image it displays the portfolio item’s Title, Excerpt and Category?
See how the Excerpt has ‘…’ at the end? Well, I want to get rid of it and can’t!
The Grid is pulling the Excerpt using ‘get_the_excerpt(500)’ so it pulls basically all the of the text from the content of the portfolio item. I’ve tried a bunch of stuff in functions.php but I can’t get rid of the ‘…’.
Any help would be much appreciated.
Thanks,
Sam
July 6, 2016 at 11:21 pm #1075907
Rue NelModeratorHello Sam,
Thanks for writing in! To get rid of the
...in your excerpt, since you already have your child theme active and ready, please insert this following code in your child theme’s functions.php file.// Custom Read More string // ============================================================================= function x_excerpt_string( $more ) { $stack = x_get_stack(); if ( $stack == 'integrity' ) { return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a>'; } else if ( $stack == 'renew' ) { return ''; } else if ( $stack == 'icon' ) { return ''; } else if ( $stack == 'ethos' ) { return ''; } } add_filter( 'excerpt_more', 'x_excerpt_string' ); // =============================================================================If still doesn’t work out, you may need to insert a manual excerpts by editing each of your posts. Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts.
Hope this helps.
July 7, 2016 at 3:38 am #1076124
swfeathersParticipantHi Rue,
Thanks for the reply. I’d already tried that snippet, but The Grid seems to ignore it it and add ‘…’ anyway.
I think it’s actually something to do with the function ‘get_the_excerpt()’ vs. ‘the_excerpt()’.
That snippet affects ‘the_excerpt()’ but not ‘get_the_excerpt()’.
Any thoughts on code to tweak ‘get_the_excerpt()’?
Thank you,
Sam
July 7, 2016 at 5:39 am #1076245
Paul RModeratorHi Sam,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1075466 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
