Certain woocommerce pages not matching woocommerce CSS rules (6 posts)

  1. pdillon809
    Posted 3 years ago #


    The add to cart buttons and sale buttons don't display on certain pages. When I check in the inspector, there are no matched woocommerce CSS rules on those pages.

    However the HTML appears to be marked up correctly and the woocommerce.css file is loaded and is loaded after any other stylesheets. The shopping cart page (for example) does use rules from woocommerce.css.

    If I switch themes to, say, twenty-twelve, the sale and add to cart buttons appear.

    In the problem theme, the text links for add-to-cart work - they are just not styled as buttons.

    The test products are all simple and virtual.

    Here's a link with no woocommerce CSS matched rules

    Here's a link with woocommerce CSS matched rules

    I cannot see where the errors lies.


  2. pdillon809
    Posted 3 years ago #

    I found a solution to this issue here

    I needed to add body_class to header.php. Details are in the above link.

  3. pdillon809
    Posted 3 years ago #

    Anyone know how to edit the original post in a topic?

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    You cannot edit a post after 1 hour.

  5. pdillon809
    Posted 3 years ago #

    Hi Esmi,

    Would like to remove the links which will now be confusing to others reading the thread.

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    It is not the general policy to edit or delete forum posts. When a post is made and people contribute answers to an issue, that then becomes part of the community resource for others to benefit from. Editing or deleting posts removes this added value. In extreme circumstances, the moderation team might be persuaded to remove sensitive information but. generally, your best course of action is not to publish anything that you wouldn't want to be public.


    I'm sorry but this is not an extreme case.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic