I've designed a product page. I've added a brand from the attribute with a logo.
However, when I click on the logo it is redirecting me to this link:
.../?taxonomy=pa_brands&term=midea
My expectation is to redirect to the following link:
...../brand/midea
How can I achieve this without any plugin? Thank you.
I've designed a product page. I've added a brand from the attribute with a logo.
However, when I click on the logo it is redirecting me to this link:
.../?taxonomy=pa_brands&term=midea
My expectation is to redirect to the following link:
...../brand/midea
How can I achieve this without any plugin? Thank you.
Share Improve this question asked Jan 24, 2022 at 13:33 MehediMehedi 1032 bronze badges 1- can you edit the question to include the code that implements this? It's not clear how you created this so it's difficult to know the exact steps to answer the question – Tom J Nowell ♦ Commented Jan 24, 2022 at 14:00
1 Answer
Reset to default 0just call the function
the_custom_logo();
and then on appearence choose your logo. if this option is not available in appearance, you need to add the theme support to functions.php
add_theme_support('custom-logo');
this redirectes to home page, if you need to redirect to a custom url you can use
<a href="<?= home_url() ?>/brand/midea"><img src="yourimage_path"></a>