Hide an empty widget

  • Author
    Posts
  • #94253

    I have a shopping cart I want to place in my right sidebar but I only want it to display if there are items in the cart. If there is nothing in the cart I would like the widget to be hidden. The plugin has a widget that will be hidden if there is nothing in the cart but then a blank widget shows up. Is there a way to hide the widget when the cart is empty? I have tried with and without a title on the widget with no luck.

    Website: www.cvilleswingdance.com

    #94806
    Zed
    Cryout Creations mastermind

    I can’t find the store/order section of your site to do a test run of how the widget behaves, but if the plugin is really hiding its widget when the cart is empty (not even the widget title or a simple placeholder “nothing in cart” text are left), then I assume you’re seeing an empty sidebar.

    The theme’s sidebar(s) visibility is controlled by the theme settings and it is not dependent on the presence (or lack) of widgets in the sidebar.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #95577
    This reply is private.
Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Hide an empty widget’ is closed to new replies.