• 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

Different link colors in different widgets

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 › Different link colors in different widgets

This topic is: not resolved

Tagged: link color

  • This topic has 4 replies, 2 voices, and was last updated 11 years ago by carasmo.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • October 29, 2015 at 12:34 pm #169540
    SJG
    Member

    Hello,

    I'd like to make the link colors on the front page widgets different from the colors on the primary side bar. How can I do that in CSS?

    Right now they are all white. This looks great on the http://www.LifeAfterTeaching.com homepage, but on the sidebar of the blog at http://www.lifeafterteaching.com/read-the-blog/ the links don't show. How can I distinguish between those?

    Thank you!

    http://www.lifeafterteaching.com
    October 29, 2015 at 2:48 pm #169558
    carasmo
    Participant

    Adding this last in your style.css file should do the trick. Change the hex for your needs:

    .page-template-page_blog .site-inner .widget-area a {
        color: #333;
    }
    .page-template-page_blog .site-inner .widget-area a:hover, 
    .page-template-page_blog .site-inner .widget-area a:focus {
        color: #ff6000;
    }
    

    Genesis Theme Customization and Help

    October 30, 2015 at 10:29 am #169638
    SJG
    Member

    Thanks so much! Just added it, and changes take about a week to show up on my blog (still trying to figure out what's causing the cache problem). Can't wait to see if I added it correctly!

    October 30, 2015 at 11:58 am #169649
    carasmo
    Participant

    It's not working, CSS is very specific and it inherits from top down, making it difficult to over-ride if you don't specify it the same as the styles preceding it. See why it's white here:

    /* Line 1270 */
    .widget-area a:link, .widget-area a:visited
    {
      color: white;
    }
    
    /* Line 1273 */
    .widget-area a:active, .widget-area a:hover
    {
      color: #22a1c4;
    }


    After everything in your CSS try this:

    
    .page-template-page_blog .site-inner .sidebar .widget-area a:link,
    .page-template-page_blog .site-inner .sidebar  .widget-area a:visited {
        color: #333;
    }
    .page-template-page_blog .site-inner .sidebar .widget-area a:hover, 
    .page-template-page_blog .site-inner .sidebar  .widget-area a:focus,
    .page-template-page_blog .site-inner  .sidebar .widget-area a:active {
        color: #ff6000;
    }

    Genesis Theme Customization and Help

    October 30, 2015 at 12:00 pm #169651
    carasmo
    Participant

    Clear your cache in your own browser. Then look if you can see your updates.


    Genesis Theme Customization and Help

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

© 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