remove pseudo_breadcrumb from category page title

Home Forums Calendar Products Events Calendar PRO remove pseudo_breadcrumb from category page title

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1012197
    suzannegoodwin
    Participant

    Hi, I need help removing the “pseudo_breadcrumb” from our category page titles. If you look here

    http://capecodtheatrecompany.org/moderntribe/ (this will bypass the coming soon page)

    then here

    http://capecodtheatrecompany.org/events/category/education/children-youth/list/

    You can see that although I was able to hide the link part of the title with CSS (h2.tribe-events-page-title a), the little breadcrumb carrot and space is hard-coded in the template.

    Can you please tell me where in the template files (or elsewhere) I can delete this??

    #1012233
    George
    Participant

    Hey @suzannegoodwin,

    I went to the links you provided but was unfortunately met with “500 – Internal Server Error” on each page as shown in this screenshot: https://cloudup.com/ctLtdarOWR0.

    So I wasn’t able to see your pages live, in person….

    Regardless of that, however, you mention the breadcrumb elements being hard-coded into the templates; to be clear, they are hard-coded into your theme or another plugin, not The Events Calendar or any Tribe add-ons.

    So, do you have any Breadcrumb-related plugins on your site? If so, this is the source; if not, your theme is…

    Let us know if you can get the links working above, I will take a look and see what I can recommend there.

    Cheers!
    George

    #1012257
    suzannegoodwin
    Participant

    This reply is private.

    #1012643
    George
    Participant

    Hey @suzannegoodwin,

    I’m so sorry to report this again, but going to that link led me to a page where I was still not able to see the breadcrumb issue in action 🙁

    Can you make sure the page with the breadcrumbs are temporarily visible? I will work quick to minimize the amount of time it is viewable!

    Thank you so much for your patience here; sorry to be reporting this same thing again!

    — George

    #1012703
    suzannegoodwin
    Participant

    This reply is private.

    #1013173
    George
    Participant

    No worries at all @suzannegoodwin! I’m sorry that this has taken some back-and-forth, and really appreciate your patience.

    Unfortunately, I can’t think of a solid, reliable fix for this other than using custom JavaScript to just remove that breadcrumb character after its generated. Users on your site should still not ever notice this breadcrumb character; but it’s not a true removal of the character on a PHP level. I’m sorry about that, but am just not sure why Genesis is adding this breadcrumb like it is.

    I wrote some custom code for you to help remove this character. Try pasting the following code in your theme’s functions.php file:


    if ( function_exists( 'tribe_get_events' ) ) {
    /**
    * Remove the › symbol generated by Genesis from Events Calendar titles.
    *
    * @link http://theeventscalendar.com/?p=1012197
    */
    function tribe_support_1012197() {

    ?><script>
    (function(){
    var h2 = document.querySelector( '.tribe-events-page-title' );
    h2.innerHTML = h2.innerHTML.replace( '›', '' );
    document.title = document.title.replace( '›', '' );
    })()
    </script><?php
    }

    add_action( 'wp_footer', 'tribe_support_1012197' );
    }

    I tested this with great success; I hope it works for you!

    Cheers,
    George

    #1013216
    suzannegoodwin
    Participant

    Hey George, you’re the BOSS! Thanks so much!

    #1013730
    George
    Participant

    Ha! 😀 thanks for the kind words @suzannegoodwin! I’m glad this has helped – keep a good backup of this code and/or bookmark this forum thread for future reference, just so you can add this code back to your theme if it ever gets lost.

    Cheers!
    George

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘remove pseudo_breadcrumb from category page title’ is closed to new replies.