Shortcodes doenst work - by bobvansoest - on WordPress WooCommerce support

This topic has 10 replies, 4 voices, and was last updated 8 years, 9 months ago ago by Robert Hall

  • Avatar: bobvansoest
    bobvansoest
    Participant
    June 13, 2015 at 22:46

    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.

    Please, contact administrator
    for this information.
    9 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 15, 2015 at 17:11

    Hello,

    If you want to show brands you can use Brands element in Visual Composer editor.
    Please try it.

    Best regards,
    Jack Richardson.

    Avatar: bobvansoest
    bobvansoest
    Participant
    June 15, 2015 at 17:57

    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

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 15, 2015 at 18:19

    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.

    Avatar: bobvansoest
    bobvansoest
    Participant
    June 15, 2015 at 19:17

    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

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 15, 2015 at 19:51

    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.

    Avatar: bobvansoest
    bobvansoest
    Participant
    June 15, 2015 at 19:59

    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

    Avatar: Eva
    Eva Kemp
    Support staff
    June 15, 2015 at 20:54

    Hello,

    Please add this code in custom.css file:
    .single-product-sidebar .sidebar-widget.etheme_widget_brands {display: none !important;}

    Regards,
    Eva Kemp.

    Avatar: bobvansoest
    bobvansoest
    Participant
    June 16, 2015 at 08:04

    Perfect Eva!! Thanks you so much!

    Best regards,

    Bob

    Avatar: Robert Hall
    Robert Hall
    Support staff
    June 16, 2015 at 08:16

    Hello,

    You’re welcome!

    Regards,
    Robert Hall.

  • Viewing 10 results - 1 through 10 (of 10 total)

The issue related to '‘Shortcodes doenst work’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.