• Resolved moedan9

    (@moedan9)


    I really like the look of the Woocommerce theme in Pro but there’s a dark green text displaying on each of the thumbnail posts that displays the following –
    [add_to_cart id=”xxx” style=””] (where xxx is the post number)
    How do I remove this from displaying on all my thumbnails?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dnesscarkey

    (@dnesscarkey)

    @moedan9,

    You are using WooCommerce theme for normal post. That’s why it is showing the add to caty shortcode. It can be fixed in 2 ways.

    1. Using css (easiest one). Please use this css and it will hide it.
    .wlme_add_to_cart{display:none !important;}

    2. Change layout file (Proper One)
    a. Copy the layout theme to your wordpress theme using Copy to WordPress Theme link from WP Masonry > Layout Theme.
    b. You will get new layout path. From that path locate layout.php and remove this line.

    <div class="wlme_add_to_cart">
                    	<?php echo do_shortcode('[add_to_cart id="'.get_the_ID().'" style=""]'); ?>
                    </div>

    Thanks

    Thread Starter moedan9

    (@moedan9)

    #1 worked like a charm.
    thank you so much.

    Moedan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove [add_to_cart id=”xxx” style=””] in woocommerce Layout theme’ is closed to new replies.