WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Certain woocommerce pages not matching woocommerce CSS rules (6 posts)

  1. pdillon809
    Member
    Posted 11 months ago #

    Hi,

    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.

    http://wordpress.org/plugins/woocommerce/

  2. pdillon809
    Member
    Posted 11 months 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
    Member
    Posted 11 months ago #

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

  4. esmi
    Forum Moderator
    Posted 11 months ago #

    You cannot edit a post after 1 hour.

  5. pdillon809
    Member
    Posted 11 months ago #

    Hi Esmi,

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

  6. esmi
    Forum Moderator
    Posted 11 months 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.

    http://codex.wordpress.org/Forum_Welcome#Deleting_.2F_Editing_Posts

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

Reply

You must log in to post.

About this Plugin

About this Topic