• Resolved startechmarketing

    (@startechmarketing)


    Hi,

    I followed your guide here, in my theme funtion I added the theme support see code below function.php

    <?php
    
    function child_styles() {
    	wp_enqueue_style( 'my-child-theme-style', get_stylesheet_directory_uri() . '/style.css', array( 'front-all' ), false, 'all' );
    }
    add_action( 'wp_enqueue_scripts', 'child_styles', 11 );
    
    add_action( 'after_setup_theme', function() {
    	add_filter( 'vamtam_less_vars', function( $vars ) {
    		if ( isset( $vars['beaver-global'] ) ) {
    			foreach( $vars['beaver-global'] as $k => $var ) {
    				if ( is_object( $var ) || is_array( $var ) ) {
    					unset( $vars['beaver-global'][$k] );
    				}
    			}
    		}
    		return $vars;
    	});
        /**
     * Register theme support for Rank Math breadcrumbs
     */
    add_theme_support( 'rank-math-breadcrumbs' );
    });
    
    

    and in wp-code-snippets I added the code to display

    /**
     * Use the following code in your theme template files to display breadcrumbs:
     */
    <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>

    code snippet i tried running everywhere and also insert before content and insert before paragraph

    but I still don’t see the breadcrumb on the shop page or products or anywhere

    what am I doing wrong ? how can I fix it ?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter startechmarketing

    (@startechmarketing)

    Update it is Vantam theme not Bamtam but I got it to work in wp-code snippets only on the shop page where I wanted it so that the brands showed

    but the breadcrumb is wrong it shows Marken and the the permalink is “Brand” not sure why

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @startechmarketing,

    Thank you for contacting support.

    The text in the breadcrumbs doesn’t show based on the name in the permalink but rather on the title of the CPT or archive.

    In this case, it seems that although the permalink shows in English, the actual name of the taxonomy is called “Marken” in the backend, hence why the breadcrumbs show the same.

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter startechmarketing

    (@startechmarketing)

    That’s strange I checked WPML string translation I don’t find it, under settings in the brand plugin (permalinks) I manually changed it to brands, I don’t know how to change the taxonomy if you can guide me it would help thank you

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @startechmarketing,

    You should be able to manage the translation of the Taxonomy labels and slugs from WP Dashboard > WPML > Taxonomy Translation.

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thread Starter startechmarketing

    (@startechmarketing)

    ok under brand labels and slug there was nothing for german so I added one but Marken still exists

    before using woocommerce brands I used perfect brands, maybe is a left over from that

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @startechmarketing,

    From our position, it’s impossible to know if those are some leftovers or not but what we can tell with certainty is that the name you see on the breadcrumbs is related to the name of the taxonomy or archive page where the current page reside.

    This is usually just the taxonomy archive page for the brands and judging by the name it does seem to be the German translation of “Brands”.

    Given that switching the language on the page you shared from German to English also switches the name in the breadcrumb it does seem like it’s working as expected and putting the correct translation.

    Don’t hesitate to get in touch if you have any other questions.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Breadcrumbs not showing bantam theme’ is closed to new replies.