• 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 Remove After Post Widget Only from Sticky Post

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 Remove After Post Widget Only from Sticky Post

This topic is: not resolved

Tagged: after post, sticky

  • This topic has 14 replies, 2 voices, and was last updated 12 years, 10 months ago by Fabio.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • March 24, 2013 at 12:51 pm #30940
    Fabio
    Participant

    Theme Eleven 40

    Basically I'm using the wonderful enews extended plugin for my after post, but I don't need it in my sticky post.

    How do I remove the after post exclusively from the sticky post?

    Thanks guys! You're the best.

    March 24, 2013 at 8:01 pm #31024
    Brad Dalton
    Participant

    Link to the sticky post please


    Tutorials for StudioPress Themes.

    March 25, 2013 at 3:10 am #31065
    Brad Dalton
    Participant

    You can install the Widget Logic plugin and add a conditional tag for sticky posts to your Genesis eNews Widget.

    is_sticky() 
    

    Or you can add the conditional tag to the custom function in your child themes functions.php file.


    Tutorials for StudioPress Themes.

    March 25, 2013 at 3:19 am #31067
    Fabio
    Participant

    Hi braddalton

    thanks very much for your reply!

    Here's a link to my sticky post:

    http://letstalksex.net/welcome/

    As you can see the problem is that I already have an opt-in on my sticky page and dont need the after post 🙂

    To be honest, for your last reply I don't quite understand exactly what to do...  🙂

    Is there any way to do this without plugins?

    Thank you!!!

     

     

    March 25, 2013 at 5:12 am #31073
    Brad Dalton
    Participant
    // Remove after post widget from sticky post
    .post-585 .after-post {
    display: none;
    }
    

    Paste this CSS code at the end of your child themes style.css file.


    Tutorials for StudioPress Themes.

    March 25, 2013 at 6:56 am #31089
    Fabio
    Participant

    Hi braddalton,

    thank you for your reply and your help.

    Unfortunately it's not working. I didn't test it on my blog but on my test site (which has got the same theme) as I always do.

    http://exclusiveskills.com/tantric-sex/

    the after post still appears...

    Is there anything else you would suggest me to try?
    Thank you very much!

    March 25, 2013 at 8:34 am #31108
    Brad Dalton
    Participant

    Because your post-i.d on your test site is probably different.

    I grabbed the post i.d from the source code on your live site. I don't have access to your test site.

    The code works because i tested it on your live site as a new CSS rule using Firebug.


    Tutorials for StudioPress Themes.

    March 25, 2013 at 9:49 am #31125
    Fabio
    Participant

    Ok thanks.

    I pasted the code at the bottom of my CSS file on my blog, but it's not working. The after post is still displayed as you can see:

    http://letstalksex.net/welcome

    March 25, 2013 at 10:14 am #31133
    Brad Dalton
    Participant

    This works. Just tested it again.

    .post-585 .after-post {display: none;}

    Tutorials for StudioPress Themes.

    March 25, 2013 at 10:20 am #31134
    Fabio
    Participant

    Sorry,

    I pasted that bit of code at the bottom of my CSS. It's there now. It was there after I posted my last message. If you go on that page and can see the after post, know that the code has been pasted already.

    Here we go, this is the very bottom of my CSS right now:

     

    .footer-widgets-1,
    .footer-widgets-2,
    .footer-widgets-3 {
    margin: 0;
    }

    #footer .creds,
    #footer .gototop {
    float: none;
    }

    #footer p {
    padding: 0 20px;
    text-align: center;
    }

    }

    // Remove after post widget from sticky post
    .post-585 .after-post {display: none;}

     

    but if you go on my blog, the after post is still there even though my CSS is the one I just pasted above this phrase.

    Am I pasting it in the wrong place?

    March 26, 2013 at 8:21 am #31308
    Fabio
    Participant

    Hi,

    I've tried using the web deveoper option with firefox and when I paste that bit of code you gave me, the after post does disappear. But when I paste it in real life, it does not.

    Could you please check if I pasted it in the right place? In my previous message you can see the bottom of my CSS as it is right now.

    But if you go on

    http://letstalksex.net/welcome

    the after post is still there.

    Thanks a lot for your help!

    March 26, 2013 at 8:49 am #31313
    Brad Dalton
    Participant

    Remove this: // Remove after post widget from sticky post

    If this doesn't work, install the Widget Logic plugin and add the conditional tag to the after post widget to exclude it from displaying on that post.

    !is_single ('585')
    

    Otherwise you'll need a custom function.


    Tutorials for StudioPress Themes.

    March 26, 2013 at 11:35 am #31351
    Fabio
    Participant

    GREAT!

    It works now. Thank you VERY much!

    March 26, 2013 at 11:39 am #31353
    Brad Dalton
    Participant

    Great! Which method did you use?


    Tutorials for StudioPress Themes.

    March 26, 2013 at 12:04 pm #31364
    Fabio
    Participant

    Well, I simply deleted this bit:

    // Remove after post widget from sticky post

    it was enough!

    Thanks again!

     

     

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 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

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