Show the brand logo from WooCommerce Brands on the single product page

Solved6 replies2 participantsUpdated by Eva Kemp

  • Avatar: jeffunik72
    jeffunik72
    Participant

    Im am trying to figure out how to customize this page layout…

    for now the basic thing I want to do is add a place where either in product description or somewhere else the logo of the brand that the product is associated with through the Woocommerce Brands plugin (not the brands addon you guys provide) all my products have their brand associated to the them and I want my customers to see the logo of the brand and not just the name…

    also if it would be possible to have that logo show in the product title on my previous site with my old theme I had to code them into each title but I dont want to have to do that…

    thanks,
    Jeff

    6 Answers

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Sorry, but in this case you have to edit php files as there is no such options in our theme.

    Regards,
    Eva Kemp.

    Avatar: jeffunik72
    jeffunik72
    Participant

    Ok thank you

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Did you check spam folder in your email account?

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: jeffunik72
    jeffunik72
    Participant

    yes I have…

    Here is the code that woocommerce gives as a function…

    and ive been trying to get it to show up on the single products page

    just under product description

    some how im doing something wrong because its not working

    code: get_brand_thumbnail_url( $brand_id )

    and in the editor function of wordpress im editing the template content-single-product.php

    any help would be appreciated

    Avatar: jeffunik72
    jeffunik72
    Participant

    Figured it out… I was using the wrong woocommerce brands shortcode the whole time instead of

    get_brand_thumbnail_url( $brand_id )

    it should of been

    echo do_shortcode(‘[product_brand width="64px" height="64px" class="alignright"]‘);

    and then just add the php tags to them

    <?php echo do_shortcode(‘[product_brand width="64px" height="64px" class="alignright"]‘); ?>

    and I put this in the content-single-product.php

    right after the divs for the product description…

    Glad I figured this one on my own.

    Just a bummer that Royal theme uses its own brands category.. for those who dont own the woocommerce plugin its a great feature to have but like myself who does own the plugin in, well it causes alot of issues because the theme doesnt naturally pick them up…

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    We’re glad you’ve found the solution.
    Enjoy your work.

    Regards,
    Eva Kemp.

The issue related to '‘Show the brand logo from WooCommerce Brands on the single product page’' has been successfully resolved, and the topic is now closed for further responses