• 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

Featured page widget styling issue

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 › Featured page widget styling issue

This topic is: resolved

Tagged: css, Genesis-Featured Page, style, styling, widget

  • This topic has 15 replies, 3 voices, and was last updated 8 years, 9 months ago by wizz6113.
Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • June 24, 2014 at 3:57 am #111273
    wizz6113
    Member

    I added a bespoke set of four widgets (row, home page bottom) to Outreach Pro around 3 months ago. I also somehow back then worked out how to style one as an example.

    Now, however, I can't for the life of me work out how to style to adjacent nos 1, 3 & 4 widgets in that row! I need to have full control over colour so I can colour code, as I did in the example nr 2.

    This is the code I placed in the CSS to style Nr 2. But replicating it, changing the suffix number, won't work! Any ideas how I can do this? I've obviously forgotten in the interim!

    /*
    Featured slots home page custom styling
    ---------------------------------------------------------------------------------------------------- */

    #featuredpage-extras-2 .widget-title a {
    color: #CC0000;
    font-family: Palatino Linotype;
    font-weight: 700;
    }

    #featuredpage-extras-2 .widget-title {
    border-bottom: 5px solid #CC0000;
    padding-bottom: 6px;
    }

    #featuredpage-extras-2 .entry-title a {
    color: #CC0000;
    }

    #featuredpage-extras-2 .gfpe-more-link a {
    color: #CC0000;
    }

    http://wpreneur.com/iicss/
    June 24, 2014 at 5:32 am #111279
    Brad Dalton
    Participant

    Use the section class or the class generated by the PHP

    #featuredpage-extras-3 {
    background-color: green;
    color: #fff;
    }

    #featuredpage-extras-3 .more-link {
    color: orange;
    }

    #featuredpage-extras-3 .widget-title a {
    color: red;
    }


    Tutorials for StudioPress Themes.

    June 24, 2014 at 11:17 am #111307
    wizz6113
    Member

    Brad,

    I've removed the current CSS styling so to clear things out. I've looked at the php in frontpage.php and can find only this that might be the code relating to that part:

    function outreach_home_bottom_widgets() {

    genesis_widget_area( 'home-bottom', array(
    'before' => '<div class="home-bottom widget-area"><div class="wrap">',
    'after' => '</div></div>',
    ) );

    }

    I have the Genesis Featured Page Extras plugin deployed for four slots in that home-bottom widget area. So my thinking is the CSS code should be something like:

    .home-bottom .widget-area .widget-title a {
    font-color: #CC0000;
    ]

    or something along those lines, if I wanted, for eg, to change the link color.

    Am I on the right track?

    June 24, 2014 at 11:39 am #111317
    wizz6113
    Member

    Brad,

    I found this earlier in the code, so perhaps this is where I should be focusing? Or does placing in the Genesis Featured Page Extras plugin mean this section of code is totally useless to concentrate on and style? Thanks for all your kind help:

    .home-bottom {
    background-color: #fff;
    padding-top: 30px;
    padding-top: 3.5rem;
    }

    .home-bottom .widget {
    float: left;
    margin-left: 2.564102564102564%;
    width: 23.076923076923077%;
    }

    .home-bottom .widget:nth-child(4n+1) {
    clear: both;
    margin-left: 0;
    }

    .home-bottom .featured-content img {
    -webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    }

    .home-bottom .widget {
    color: #333;
    font-weight: 700;
    font-size: 12px;
    }

    June 24, 2014 at 1:42 pm #111337
    jodzeee
    Member

    The widgets you need to target in CSS are:

    #featuredpage-extras-4
    #featuredpage-extras-7
    #featuredpage-extras-3
    #featuredpage-extras-6

    Are you using developer tools such as Firebug (Firefox) to inspect your code? You can easily find what to target and change/add CSS to see how it affects it.

    June 24, 2014 at 3:43 pm #111356
    wizz6113
    Member

    Thanks Jodzee,

    Yes, I am seeing the site in Google Chrome inspector and can see the various wraps and divs, and those four widget areas are called:

    div.home-bottom.widget-area

    and the content part:

    div.entry-content.custom-content

    But I can't see the #featuredpage-extras part at all. Not sure how I style a plug-in delivered widget content. Is this the issue / conflict between different part of the CSS?

    Sorry to ask but while I managed some styling once on this, it's eluding me now completely!

    Tnx.

    June 24, 2014 at 4:08 pm #111358
    jodzeee
    Member

    Are you expanding all the elements?

    #featuredpage-extras-4 is not defined in the CSS (yet), but if you add it, you can style it.

    screen shot

    June 24, 2014 at 10:30 pm #111385
    Brad Dalton
    Participant

    The code i posted works as i tested it in Chrome

    I did notice you have extra closing brackets in your CSS which may cause an issue. I removed them when i tested the code and it works as you wanted.

    The class will not output unless the widget is active.


    Tutorials for StudioPress Themes.

    June 25, 2014 at 1:01 am #111401
    wizz6113
    Member

    Hi Brad,

    I've got your original code to work, but now need to enable it to work across all four widget blocks. Your code has -4 but seems to activate the first widget in the row. So not sure how to replicate it (or my own styling css) to get each of the four widgets in that row to have bespoke styling,

    Also, to test, I just deleted your code but I think my host (Siteground) has a supercacher which means that I don't see the changes! I still get the green block on widget one even when I've deleted the code in the stylesheet. Caching issue you think? It makes life very difficult to develop if I can't see edits immediately.

    Thanks truly for all your effort on this one; much appreciated.

    June 25, 2014 at 1:16 am #111403
    Brad Dalton
    Participant

    Use Firebug to find the section I.D

    This may help http://wpsites.net/web-design/style-widgets-individually-beginners-guide/


    Tutorials for StudioPress Themes.

    June 25, 2014 at 1:18 am #111404
    jodzeee
    Member

    If you look in Chrome's inspector, you'll see that:

    #featuredpage-extras-4 is the first widget

    #featuredpage-extras-7 is the second widget

    #featuredpage-extras-3 is the third widget

    #featuredpage-extras-6 is the fourth widget

    And you can style them separately.

    June 25, 2014 at 1:45 am #111413
    wizz6113
    Member

    Thanks Jodzee and Brad; am off to see if I can style individually and hope the blessed caching issue goes as not seeing any changes even when I delete the code now!

    Weird. Will close this thread as resolved hopefully soon! Cheers for now.

    June 25, 2014 at 1:56 am #111420
    wizz6113
    Member

    Update, I've found the widget child nos as you pointed out - nos 4,7,3,6, so should manage styling now. The only issue is that I can't get rid of caching problem.

    As a test, I put in Brad's original code, which worked, as an example, but even if deleted back end, I still see no changes front end. Not sure if you can take a look but there shouldn't be a green background on widget 4! I am not sure how to enable styling if I can't see changes live!

    Any ideas? I've already tried deleting cache.

    June 25, 2014 at 2:00 am #111421
    jodzeee
    Member

    Check with your host, they might have a way for you to enable development mode or clear the cache on their end.

    June 25, 2014 at 2:02 am #111422
    wizz6113
    Member

    Thanksj Jodzee, off to do that now as truly frustrating!

    June 25, 2014 at 2:16 am #111424
    wizz6113
    Member

    Wonderful, Siteground cache resolved so seeing edits finally! Thanks for your and Brad's continual help!

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

© 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