Title: Making breadcrumbs linkable
Last modified: August 30, 2016

---

# Making breadcrumbs linkable

 *  Resolved [Nicolaie](https://wordpress.org/support/users/szabadkai/)
 * (@szabadkai)
 * [11 years ago](https://wordpress.org/support/topic/making-breadcrumbs-linkable/)
 * Hi,
    I’m using the plugin **[Add Meta Tags](https://wordpress.org/plugins/add-meta-tags/)**
   and George implemented **[Google Breadcrumbs](https://developers.google.com/structured-data/breadcrumbs)**.
   My problem is that your theme needs a tiny adjustment. In the file `wp-content/
   themes/customizr/inc/parts/class-content-breadcrumb.php` there is an addition
   on line 153 needed like this:
 * > $breadcrumb = ‘<‘ . tag_escape( $args[‘container’] ) . ‘ class=”breadcrumb-
   > trail breadcrumbs” **id=”breadcrumbs”** itemprop=”breadcrumb”>’;
 * Like this we could reference it from AMT and use it when generating the Meta 
   Tags.
 * Could you be so kind? Or is there an alternative?
 * Thanks
    Nicolaie

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Rocco Aliberti](https://wordpress.org/support/users/d4z_c0nf/)
 * (@d4z_c0nf)
 * [11 years ago](https://wordpress.org/support/topic/making-breadcrumbs-linkable/#post-6225243)
 * Hello Nicolaie,
    you might want to add the following code to your child-theme
   functions.php:
 *     ```
       add_filter('tc_breadcrumb_display', 'add_breadcrumb_id');
       function add_breadcrumb_id( $breadcrumb ){
         return str_replace('itemprop="breadcrumb"', 'id="breadcrumbs" itemprop="breadcrumb"', $breadcrumb);
       }
       ```
   
 * Then your breadcrumb will look like this:
    `<div class="breadcrumb-trail breadcrumbs"
   id="breadcrumbs" itemprop="breadcrumb">`
 * is this what you want? right?
 *  Thread Starter [Nicolaie](https://wordpress.org/support/users/szabadkai/)
 * (@szabadkai)
 * [11 years ago](https://wordpress.org/support/topic/making-breadcrumbs-linkable/#post-6225262)
 * Yes d4z_c0nf,
 * thank you very very much!
    Works now perfectly! Wonderful!
 * Cheers
    Nicolaie
 *  Thread Starter [Nicolaie](https://wordpress.org/support/users/szabadkai/)
 * (@szabadkai)
 * [11 years ago](https://wordpress.org/support/topic/making-breadcrumbs-linkable/#post-6225263)
 * One little systematic question:
    Now I turn breadcrumbs on, then i hide them 
   und use your filter. Could not it be better to have them turned on by default
   and use the option in the theme to be shown or unhide?
 *  [Rocco Aliberti](https://wordpress.org/support/users/d4z_c0nf/)
 * (@d4z_c0nf)
 * [11 years ago](https://wordpress.org/support/topic/making-breadcrumbs-linkable/#post-6225268)
 * Mmm,
    if you use my filter above with the breadcrumb turned off.. well it will
   not work. I don’t really get what you mean though 🙂 Do you mean that you want
   the breadcrumb printed but not visible? So you can turn it on use that filter
   and hide it with css:
 *     ```
       .tc-hot-crumble {
           display: none;
       }
       ```
   
 * Sorry if I misunderstood.
 *  Thread Starter [Nicolaie](https://wordpress.org/support/users/szabadkai/)
 * (@szabadkai)
 * [11 years ago](https://wordpress.org/support/topic/making-breadcrumbs-linkable/#post-6225270)
 * Thats what i am doing right now.
 * I suggest breadcrumbs to be turned on by default but **not** visible in the themes.
   
   By this you could use it in the Meta Data and hand it over to Google, Yahoo, 
   Bing, Yandex or Baidu.
 * When needed by the user, he can then make them visible via your option. Where
   ever he wants or needs.
 * It is a change i the logic. Hope I was a bit more clear now.
 *  [Rocco Aliberti](https://wordpress.org/support/users/d4z_c0nf/)
 * (@d4z_c0nf)
 * [11 years ago](https://wordpress.org/support/topic/making-breadcrumbs-linkable/#post-6225271)
 * Yeah I see what you mean,
    thanks for the suggestion, will see what theme authors
   thinks about that 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Making breadcrumbs linkable’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

## Tags

 * [niclook](https://wordpress.org/support/topic-tag/niclook/)

 * 6 replies
 * 2 participants
 * Last reply from: [Rocco Aliberti](https://wordpress.org/support/users/d4z_c0nf/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/making-breadcrumbs-linkable/#post-6225271)
 * Status: resolved