• 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

Underline links ONLY in content body (parallax pro)

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 › Underline links ONLY in content body (parallax pro)

This topic is: resolved
  • This topic has 11 replies, 3 voices, and was last updated 11 years, 2 months ago by donnielaw.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • March 29, 2014 at 5:45 pm #97348
    donnielaw
    Member

    I'm experimenting with some changes to the style.css file. Keep in mind I hardly know what I'm doing but I'm having fun trying new things.

    I wanted to make links underlined so I added the following under the "typographical elements" section.

    a {
    	color: #f04848;
    	text-decoration: underline;
    }

    The links are now underlined but so are the links in the header menu, title, and post titles. How do I limit the underlines to links in the body of posts?

    Thanks!

    March 29, 2014 at 7:39 pm #97356
    Brad Dalton
    Participant

    Use the correct classes http://www.genesisframework.com/markup.php


    Tutorials for StudioPress Themes.

    March 29, 2014 at 8:03 pm #97358
    donnielaw
    Member

    Thanks Brad!

    So if I want to change the links in just the body I would use the <div class="entry-content"> class?

    Would I put that before my changes in the style.css?

    March 29, 2014 at 8:07 pm #97359
    donnielaw
    Member

    Does this make any sense?

    #entry-content
    a {
    	color: #f04848;
    	text-decoration: underline;
    }

    Would that make the underline just show up on links in the body of posts?

    March 29, 2014 at 8:27 pm #97362
    Brad Dalton
    Participant

    Try this

    .entry-content a {
    	color: #f04848;
    	text-decoration: underline;
    }
    

    Class selectors use .
    I.D selectors use #


    Tutorials for StudioPress Themes.

    March 29, 2014 at 8:29 pm #97363
    donnielaw
    Member

    Yes! I did this and it worked:

    .entry-content a {
    	color: #f04848;
    	text-decoration: underline;
    }
    
    .entry-content a:hover {
    	color: #1f1f1e;
    	-webkit-transition: .6s ease;
    	-moz-transition: .6s ease;
    	-ms-transition: .6s ease;
    	-o-transition: .6s ease;
    	transition: .6s ease;
    }
    March 29, 2014 at 8:33 pm #97364
    donnielaw
    Member

    Thanks Brad.

    For whatever reason, when I hover the transition works fine but it transitions to #000000 instead of #1f1f1e

    Do you see anything wrong with my code above?

    March 29, 2014 at 8:37 pm #97365
    donnielaw
    Member

    Ideally I'm trying to get my links to have an orange underline #f04848 with black #1f1f1e text. When hovered, the text will fade to orange and match the underline. It can be seen in action on http://justinjackson.ca/validate-your-startup-idea/

    March 30, 2014 at 4:12 pm #97534
    donnielaw
    Member

    Any thoughts on what to add to this to make the underline one color and the text link another color:

    .entry-content a {
    	color: #f04848;
    	text-decoration: underline;
    }
    
    .entry-content a:hover {
    	color: #1f1f1e;
    	-webkit-transition: .6s ease;
    	-moz-transition: .6s ease;
    	-ms-transition: .6s ease;
    	-o-transition: .6s ease;
    	transition: .6s ease;
    }
    March 31, 2014 at 11:02 am #97694
    donnielaw
    Member

    I've been searching around online but I still can't figure out the css to make the link text one color, and the tex-decoration (underline) a separate color. Any idea how to accomplish this?

    March 31, 2014 at 11:12 am #97696
    Zoose Graphics
    Member

    To make an orange line with black text use this

    .entry-content a {
    color: #1f1f1e 
    border-bottom: 1px solid #f04848 ;
    }
    

    To change the the text color to match the line color upon hovering, use this

    .entry-content a:hover {
    	color: #f04848 ;
    	-webkit-transition: .6s ease;
    	-moz-transition: .6s ease;
    	-ms-transition: .6s ease;
    	-o-transition: .6s ease;
    	transition: .6s ease;
    }
    

    Hope it helps.

    March 31, 2014 at 1:20 pm #97731
    donnielaw
    Member

    ahhh I see! Thanks so much!

    I added !important and it all worked. Thanks again!

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Underline links ONLY in content body (parallax pro)’ 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

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