<?php if(!empty($product->get_attribute('brand'))){ ?>
<div class="brand">
<b>Бренд:</b> <a href="<?php echo echo $_attribute->getProductAttribute()->getAttributeCode(); ?>"> <?php global $product;
echo $product->get_attribute('brand'); ?> </a>
</div>
<?php } ?>
On the page element is displayed here https://yadi.sk/i/70lBQXO37_RN6A but dont have clickable link
]]>Have you considered using a plugin like WooCommerce Brands? It adds a clickable link to the brand’s page:
Link to image: https://snipboard.io/2jrQOn.jpg
If you prefer to do this programmatically, I can also recommend the following places for more development-oriented questions:
WooCommerce Slack Community: https://woocommerce.com/community-slack/
WooCommerce Community on Facebook: https://www.facebook.com/groups/advanced.woocommerce/