• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to hide Price in "Featured Products Widget" via Sidebar with CSS?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to hide Price in "Featured Products Widget" via Sidebar with CSS?

This topic is: resolved

Tagged: css, Featured Products, hide price

  • This topic has 6 replies, 2 voices, and was last updated 8 years, 10 months ago by abfchgirlx.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • January 16, 2017 at 9:01 am #199476
    abfchgirlx
    Member

    Hi There!

    Can someone tell me the CSS code on how to hide the price from our "featured products" widget via the sidebar on our blog?

    Many thanks in advance!

    https://www.fallfordesign.com/blog/
    January 16, 2017 at 9:29 am #199477
    carasmo
    Participant

    You can use Chrome Dev or FireFox Dev tools to easily find the class used on the price and use CSS specificity to hide the price in the .sidebar

    .sidebar .woocommerce-Price-amount {
    	display: none;
    }

    Genesis Theme Customization and Help

    January 16, 2017 at 11:34 am #199484
    abfchgirlx
    Member

    Thanks for the tip about the Developer tools! I was using firebug originally.

    But that CSS removes the whole entire sidebar pricing (I only want the pricing under the section "Featured Products" removed but keep pricing for "Our Favorites.").

    I've been grabbing all that CSS code via firebug /firefox dev tools but none of it hiding the pricing in that particular section;

    #woocommerce_products-3 .sidebar .woocommerce-Price-amount {
    	display: none;
    }

    Help?

    I'm having to manually type everything out - is there an easy way I can copy/paste the CSS classes from Dev Tool?

    January 16, 2017 at 11:46 am #199485
    carasmo
    Participant

    .sidebar comes before the id woocommerce_products-3 in the dom.

    Use

    .sidebar #woocommerce_products-3 .woocommerce-Price-amount {
    	display: none;
    }

    I use FireFox's dev tools and it will copy out the CSS to a specific element and add a bunch specificity you don't need and some you do need depending on the original CSS specificity. Learn CSS and actually type it out.


    Genesis Theme Customization and Help

    January 16, 2017 at 11:59 am #199488
    abfchgirlx
    Member

    Thanks! I'll contact Firefox Dev team and see if they can educate me on how I can copy the classes out of their program. The regular copy from the Edit Tools and hot keys aren't allowing me to select the code, and copy it.

    Back to the removing the pricing through - the updated CSS code removed the pricing, and I was able to figure out the removal of the title that was hoovering over the product images. What about that pesky little "-" (dash) that was between the prices. How do we get that to go away? I don't see any CSS code around it.

    Thanks in advance!

    January 16, 2017 at 4:59 pm #199512
    carasmo
    Participant

    Use z-index to cover it with the linked image since it has no class around that area:

    .sidebar #woocommerce_products-3 a {
        display: block;
        position: relative;
        z-index: 1;
    }

    Genesis Theme Customization and Help

    January 16, 2017 at 6:46 pm #199521
    abfchgirlx
    Member

    That worked perfect. Many thanks!

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble