WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Use current_page_item for entire shop (2 posts)

  1. QuincyRossieau
    Member
    Posted 1 year ago #

    On http://www.pizzawereld.nl/cms i use the .current_page_item to display the flag under the button "Webshop".

    It works when you are in the main page of the shop, but when you click on a category or a product the flag dissapears.

    Is there any way to display it throughout the shop?

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

  2. Roy Ho
    Member
    Posted 1 year ago #

    There is a way but not very elegant. You can prepend a class in front of your webshop class with "woocommerce-page".

    So say your webshop menu button has the class "webshop" then your CSS will look like:

    .woocommerce-page .webshop { // show flag }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic