• 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

Hide specific text string in one page of WordPress

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 › General Discussion › Hide specific text string in one page of WordPress

This topic is: not resolved
  • This topic has 5 replies, 2 voices, and was last updated 2 years, 8 months ago by Anita.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 27, 2020 at 12:49 pm #498974
    koksalcanberk
    Participant

    Hi,

    I'm using eleven40 pro, and want to hide the following texts in one of my pages:

      (Men's - Women's)
      (Men's)
      (Women's)

    I tried taking this:

    <div id="hide1"><p>(Men's - Women's)</p></div>
    <div id="hide2"><p>(Men's)</p></div>
    <div id="hide3"><p>(Women's)</p></div>

    And pasting it to the Body scripts section of that post. And then using css, I tried this:

    .page-id-12345 #hide1 { display: none !important;}
    .page-id-12345 #hide2 { display: none !important;}
    .page-id-12345 #hide3 { display: none !important;}

    But it doesn't work...

    Any words of wisdom?

    May 27, 2020 at 4:09 pm #498978
    Anita
    Keymaster

    Link to the page where it's located would be helpful.


    Love coffee, chocolate and my Bella!

    May 27, 2020 at 4:10 pm #498979
    koksalcanberk
    Participant

    Thank you for your response Anita. But the page isn't published yet.

    May 27, 2020 at 4:12 pm #498980
    Anita
    Keymaster

    You need to post your CSS in the Additional CSS box in the Customizer.


    Love coffee, chocolate and my Bella!

    May 27, 2020 at 4:17 pm #498982
    koksalcanberk
    Participant

    Are you talking about pasting the CSS code I mentioned in the OP? Because I did try that and it didn't work.

    Or should I provide you my entire CSS code in the Additional CSS box in the customizer?

    May 28, 2020 at 8:06 am #499009
    Anita
    Keymaster

    Do you have a link to the site? It's best to share a link.

    You should only need to use this in the Additional CSS.

    .page-id-12345 #hide1 { display: none !important;}
    .page-id-12345 #hide2 { display: none !important;}
    .page-id-12345 #hide3 { display: none !important;}
    

    Love coffee, chocolate and my Bella!

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ 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

© 2023 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