• How to insert brand in the <h1> of the product automatically? I’m trying to use the code

    <?php echo get_the_term_list( $product_id, $brands_taxonomy, $before_term_list, $term_list_sep, $after_term_list ); ?>

    but it does not works and it is strange because is the code used to display the brand in the meta informations of the product. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    hope you’re doing well!

    The code you tell us about has certain parameters that are passed when calling the single-product-brands.php template, and this template is called by the add_single_product_brand_template function, through the woocommerce_product_meta_end hook.

    So, if you want the brand in the product title, it can be done via js code.

    Do you have any way to add js to your site? You can use some extra plugin for it.

    Simply, with this js code, the brand will be positioned below the product title:

    jQuery( ".single-product .yith-wcbr-brands, .single-product .yith-wcbr-brands-logo" ).insertAfter( ".single-product .summary .product_title" );

    Let us know any news, please.

    Have a nice day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to insert brand in the of the product’ is closed to new replies.