This topic has 10 replies, 4 voices, and was last updated 9 years, 5 months ago ago by Robert Hall
Hello,
on my woopress site the shortcodes like [product_brand] doesnt work.
I also tried this on my local site, that is a copy of my online site where de wp-admin login is in the private block. Unfortunatly that also didnt work. Can you help me? Thanks!
To apply to All Products
First, you should make sure that you’re making edits in a child theme – this allows you to customize your content without running the risk of an update removing your work. To learn more about how to customize a child theme, please visit our child theme tutorial, or you can read more about how child themes work in the WordPress Codex.
Then, you would open up the template file in your child theme and enter the following code (wrapped in a PHP tag) where you want the image to display:
echo do_shortcode(“[product_brand width=”64″ height=”64″ class=”alignright”]”);
You’ll notice its just the same as the shortcode before, but wrapped in a PHP tag so you can apply it everywhere.
Hello,
If you want to show brands you can use Brands element in Visual Composer editor.
Please try it.
Best regards,
Jack Richardson.
Hi Jack,
thanks for your reply.
I want to show the brand picture of the product on the single productpage. I dont know how you can do that with the VC editor.
If you think this will work, can you give me an example on my site?
Gr. Bob
Hello,
You can show Brand logo on single product page in sidebar. Mark brand in a product editor http://storage4.static.itmages.com/i/15/0615/h_1434388692_3586175_0f29b1c549.png and add some widget to “Single product page Sidebar” area in Appearance > Widgets.
Best regards,
Jack Richardson.
Thanks Jack, I add the widget 8theme brand filter on my local page. Now I see the picture of one brand but also all the other brands. How can I get it like I only see the picture of the upper brand, als like you fixed it?
Thanks!
https://www.dropbox.com/s/hb7cchseawm6mz8/Screenshot%202015-06-15%2020.14.21.png?dl=0
Hello,
As I see now you have only brand logo displayed:
http://storage3.static.itmages.com/i/15/0615/h_1434394224_3539325_f9089f1c58.png
Have you resolved the issue?
Best regards,
Jack Richardson.
Hi Jack,
No not yet. My picture is from the local site. Your picture is from de live site.
I changed a lot of things locally, so I need to update the live site. That is the site you made the changes in 😉
So, how can I get ride of the other written brand images.
Thanks!!
Gr. Bob
Hello,
Please add this code in custom.css file:
.single-product-sidebar .sidebar-widget.etheme_widget_brands {display: none !important;}
Regards,
Eva Kemp.
Perfect Eva!! Thanks you so much!
Best regards,
Bob
Hello,
You’re welcome!
Regards,
Robert Hall.
Tagged: shortcodes, solution, themes, troubleshooting, woocommerce, wordpress
The issue related to '‘Shortcodes doenst work’' has been successfully resolved, and the topic is now closed for further responses