Upcoming Events page lists both "Continue reading" and "Find out more" …why?

Home Forums Calendar Products Events Calendar PRO Upcoming Events page lists both "Continue reading" and "Find out more" …why?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #993308
    Noah
    Participant

    Hello,

    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.

    #993480
    Geoff
    Member

    Hi 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!
    Geoff

    #993497
    Noah
    Participant

    Well 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

    #993512
    Geoff
    Member

    Ah, 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

    #993519
    Noah
    Participant

    Alas .. that does not appear to work.

    #993630
    Geoff
    Member

    Hmm, 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!
    Geoff

    #993704
    Noah
    Participant

    No 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

    #993721
    Noah
    Participant

    Hey,

    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 );
    #993850
    Geoff
    Member

    Sweet! 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Upcoming Events page lists both "Continue reading" and "Find out more" …why?’ is closed to new replies.