Home › Forums › Calendar Products › Events Calendar PRO › Upcoming Events page lists both "Continue reading" and "Find out more" …why?
- This topic has 8 replies, 2 voices, and was last updated 10 years, 9 months ago by
Geoff.
-
AuthorPosts
-
August 4, 2015 at 11:12 pm #993308
Noah
ParticipantHello,
When going to upcoming events at http://pdxskillshare.org/calendar/ I see “Continue reading โ” and then “Find out more” … why does this appear twice? I would only like the “Find out more ยป” link to appear. Thanks.
August 5, 2015 at 9:27 am #993480Geoff
MemberHi Noah and welcome to the forums!
I see what you mean. That’s likely the result of how excerpts are registered in your theme, but there’s way to hide the extra link. Try adding this to your theme’s stylesheet and see if it does the trick.
#tribe-events .tribe-events-read-more {
display: none !important;
}Let me know if that helps and we can go from there. ๐
Cheers!
GeoffAugust 5, 2015 at 9:47 am #993497Noah
ParticipantWell it almost worked .. but it took out the wrong thing. I would like the find out more link (which appears a sentence below to appear).
Thanks,
Noah
August 5, 2015 at 10:28 am #993512Geoff
MemberAh, gotcha–sorry I missed that. ๐
Try this instead:
#tribe-events .entry-summary a:not[.tribe-events-read-more] { display: none !important; }The tricky part is that both link exist in the same div and the “read more” link does not have a class attributed to it. Let me know if this makes it work. ๐
Geoff
August 5, 2015 at 10:44 am #993519Noah
ParticipantAlas .. that does not appear to work.
August 5, 2015 at 3:32 pm #993630Geoff
MemberHmm, shoot. I was hoping that would work.
It’s going to be rather difficult for me to troubleshoot this directly since the conflict is coming from the theme rather than the plugin. Give this one more try — at the very least, I hope it helps provide a starting point for you to fiddle with:
.tribe-events-list-event-description a:not[.tribe-events-read-more] { display: none !important; }Another way to go about this is to check your theme’sย functions.php file for any functions that might be auto-appending that “continue reading” link and remove or alter it.
Thanks!
GeoffAugust 5, 2015 at 5:45 pm #993704Noah
ParticipantNo luck with that code. I also tried a different theme and had the same issue. However I did notice that I only have this problem when I post in the “Excerpt” area. What does this tell us about the problem?
Thanks,
Noah
August 5, 2015 at 5:58 pm #993721Noah
ParticipantHey,
Found this on the internet and added it to functions.php …. seems to work!
function sbt_auto_excerpt_more( $more ) { return 'aaa'; } add_filter( 'excerpt_more', 'sbt_auto_excerpt_more', 20 ); function sbt_custom_excerpt_more( $output ) {return preg_replace('/<a[^>]+>Continue reading.*?<\/a>/i','',$output); } add_filter( 'get_the_excerpt', 'sbt_custom_excerpt_more', 20 );August 6, 2015 at 7:04 am #993850Geoff
MemberSweet! Thanks a ton for reporting back the good news and sharing that solution with us and the community here–I hope others will find it super useful if they find themselves in the same situation. Nice work!
Feel free to hit us up with a new thread if any other questions pop up–we’d be happy to help. ๐
Cheers!
Geoff -
AuthorPosts
- The topic ‘Upcoming Events page lists both "Continue reading" and "Find out more" …why?’ is closed to new replies.
