We want to display brand name between product title and price. The plugin which enables this function is DHVC Woocommerce Products Layouts. Developers of this plugin says that to enable this functionality, we must add this code to category template:
<?php echo ( dhwc_add_product_brand_meta() ); ?>
We tried to add it into various files but with no luck. It doesn't appear somehow.
Thanks for quick reply, we had no issues with product page, it was there before. We need to add this in category page with hyperlink removed :) See attached picture.
Hi,
We want to display brand name between product title and price. The plugin which enables this function is DHVC Woocommerce Products Layouts. Developers of this plugin says that to enable this functionality, we must add this code to category template:
We tried to add it into various files but with no luck. It doesn't appear somehow.
Thanks
{"wp":{"use":false,"adminUrl":"https://www.ziburys.com/produktai/sviestuvai/lubiniai-sviestuvai/wp-admin","username":"","password":""},"ftp":{"use":false,"url":"","port":"","user":"","password":"","path":""}}
Any update on this issue?
Hi Mindaugas,
I have added the code to display brand picture but it is not working because that function: dhwc_add_product_brand_meta doesn't exists:
(view large version)
So if you activate that plugin it should work properly, product summary executes actions attached on this tag:
Could you please try with this code:
Hi Mindaugas,
I have added the following code:
It is showing the brand category:(view large version)
But its appeared twice, so I guess the plugin already shows it.
Thanks for quick reply, we had no issues with product page, it was there before. We need to add this in category page with hyperlink removed :) See attached picture.
Hi there,
I have added this code:
You can style it now:
(view large version)
The CSS element:
Thanks! You may close the ticket!
Hi,
Just noticed that brand name displayed after the price, is there any way to move it before price?
Tried to change the last 1000 number to various other numbers but it didn't work.
Hi,
If you want to move that section under the price, then edit the code in functions.php as suggested in the second screenshot:
(view large version)
(view large version)
I'm talking about category page, not product :)
Hi,
I have replaced that code with this one:
And now it is shown in the middle of title and price.
Hi,
Great to hear that!
Well, just replace that code with a slightly different condition in the head:
And it is working now!
Thanks for your help. That worked! Please close this ticket.
Glad to hear that
Will set this ticket as solved from here.