• 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

Exclude Categories from Genesis – Featured Posts?

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 › Exclude Categories from Genesis – Featured Posts?

This topic is: resolved
  • This topic has 6 replies, 2 voices, and was last updated 9 years, 11 months ago by jmrallen.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • October 10, 2013 at 11:56 am #66168
    jmrallen
    Member

    I've been using the Genesis Featured Widget Amplified plugin for some time now, and I like that it allows me to exclude certain categories from a page or widget. Generally speaking, the Genesis - Featured Posts widget has the same functionality, but it doesn't appear to let me exclude categories. Is there a way to exclude specific categories from Genesis - Featured Posts, or should I just stick with the Featured Widget Amplified plugin? I'm hoping there's a way to exclude them from Featured Posts, as that would allow me to reduce the use of a separate plugin.

    October 27, 2013 at 6:31 pm #69353
    Marcy
    Participant

    Stick with the Genesis Featured Widget Amplified plugin; that's probably the easiest.


    Marcy | Amethyst Website Design | Twitter

    October 30, 2013 at 10:31 am #69915
    jmrallen
    Member

    Thanks for the reply, Marcy. I would like to stick with it, but for some reason the new Magazine Pro theme doesn't play nicely with it in the sub-feature section. When I use the Genesis - Featured Posts tool those two thumbnail images stand side by side just fine. However, when I activate Genesis Featured Widget Amplified and try that, I can't get the images to go side-by-side. Is there some CSS paddingfor the Genesis Featured Widget Amplified plugin that I'm just missing somewhere? Here's my devsite, and here's what the sub-feature area is supposed to look like. I haven't adjusted any CSS yet, this is a straight out of the box Magazine Pro installation.

    If I can't figure out how to align the images there like I want to, I'll find myself back in the "how do I exclude a category from Genesis - Featured Posts" camp again. Any and all help is appreciated, including identifying whether there's some odd CSS for the Featured Widget Amplified plugin that I've just missed.

    October 30, 2013 at 2:45 pm #69986
    Marcy
    Participant

    Ok. Try this. I can't set it up to check now, but if you do this edit, and then post back with your site, I can help you tweak it.

    It looks like featured posts amplified, uses only .featuredpost, and not .featured-content which is what Magazine Pro is using.

    Find in your style.css ALL the places that it has
    .home-middle .featured-content .entry

    and ADD an additional line that duplicates it, with .featured-content replaced with .featuredpost.

    So if you have something like:

    .home-middle .featured-content .entry:nth-of-type(2n+1) {
            clear: left;
            margin-right: 3rem;
    }

    you would make it look like:

    .home-middle .featured-content .entry:nth-of-type(2n+1),
    .home-middle .featuredpost .entry:nth-of-type(2n+1) {
            clear: left;
            margin-right: 3rem;
    }

    And

    .home-middle .featured-content .entry,
    .home-top .featured-content .entry {
        float: left;
        max-width: 100%;
    }

    becomes

    .home-middle .featured-content .entry,
    .home-middle .featuredpost .entry,
    .home-top .featured-content .entry {
        float: left;
        max-width: 100%;
    }

    Marcy | Amethyst Website Design | Twitter

    October 30, 2013 at 5:13 pm #70013
    jmrallen
    Member

    Great thinking, Marcy. And thank you for trying to tackle it. I tried implementing the changes you suggested in the style.css file, but it didn't work out. Here's the latest. I'll continue trying to figure things out on my own, but if you have any other ideas, I'm all ears.

    If only there were a way to exclude categories like their is in featured widget amplified, all would be peachy.

    October 30, 2013 at 7:13 pm #70031
    jmrallen
    Member

    I appear to have solved it with some incredible help from a co-worker. Here's what seems to work:

    .home-middle.widget-area .widget-wrap .post {
    width: 369px;
    float: left;
    margin-right: 8px;
    }

    .home-middle.widget-area .widget-wrap .post:last-child {
    margin-right:0;
    }

    October 31, 2013 at 1:19 am #70063
    jmrallen
    Member

    Yep, after further testing and CSS work, it appears that the code above is the best solution. The widths obviously will change based on any other CSS customization you do, but those code combos work. I've put them just above the @media section of style.css and I've created some for the home-top and home-bottom areas as well, just to further customize each area.

    I didn't achieve what I'd originally wanted to -- excluding a category from the built-in Genesis Featured Posts functionality -- but I did find a way to make the Featured WIdget Amplified work with the new Magazine Pro layout. So, I'll mark this thread as solved. Marcy, thanks again for your help.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Exclude Categories from Genesis – Featured Posts?’ is closed to new 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