Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1185467
    nolanplant
    Participant

    I’m trying to add the same URL/link at the end of the breadcrumb on all posts that are a specific custom post type. I was playing with woocommerce filters, but then I realized the breadcrumb is being replaced by x-theme (I’m running integrity). Below is as far as I got and unfortunately I couldn’t find specific documentation on x-theme filters. Any help appreciated.

    
    add_filter( 'woocommerce_breadcrumb_defaults', 'custom_woocommerce_breadcrumb' );
    function custom_woocommerce_breadcrumb() {
        if ( ( get_post_type() == 'maplist' ) && is_singular() ) {
        return array(
                 'after' => '<a href="https://website.com/locations">Locations</a>'
            );
      }
    }
    #1185887
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    Thanks for understanding.

  • <script> jQuery(function($){ $("#no-reply-1185467 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>