• 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

Modern Portfolio – User Agent Style Sheet

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 › Modern Portfolio – User Agent Style Sheet

This topic is: resolved

Tagged: modern portfolio, user agent stylesheet

  • This topic has 5 replies, 2 voices, and was last updated 12 years, 3 months ago by zig.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 16, 2013 at 5:44 pm #20729
    rasolis
    Member

    Trying to remove the underline, using Chrome's Inspect element and finding the code:

    a:-webkit-any-link {

    color: -webkit-link;
    text-decoration: underline;
    cursor: auto;

    }

    How do I edit or where is this user agent style.css?

    Thanks!

    http://www.readipress.com

    February 17, 2013 at 3:13 am #20783
    zig
    Member

    It's using your browser's stylesheet - hence the "user" wording.

    Try this. In your theme's stylesheet, find the style for links and add:

    text-decoration: none

    Example:

    a, a:visited{

    text-decoration: none;

    }

    (around line 115 in the modern-portfolio style.css)

    That should fix it.

    February 17, 2013 at 11:42 pm #20933
    rasolis
    Member

    Hey Zig -thanks for the info.  I know how to make the changes, just unable to locate it in the CSS.  Normaly I can do an Inspect Elements in Chrome or do Firebug, but it shows "User Agent..." and is related to the webkit.

     

     

    February 18, 2013 at 1:20 am #20937
    zig
    Member

    rasolis - Not sure I made it clear but you WON'T find it in your CSS. The user stylesheet is based off your reader's browser's default settings. You want to override this by using the text-decoration: none I described above.

    For example, here's a generic default stylesheet for the webkit CSS stylesheet: http://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css

    If you scroll down to line 1216, you'll see that the default for any link is to underline it with the "text-transform: underline" style. By adding "text-transform: none" to your stylesheet, you will override the default and make sure your readers see what you want them to see.

    Hope this makes sense.

    February 19, 2013 at 4:08 pm #21475
    rasolis
    Member

    Hey Zig,  you keep saying scroll down but the text link code is not in the modern portfolio css, I just confirmed with support.  So I just have to add my own code. Thanks for the help though.

    I pasted the following

     

    a:link {text-decoration:none;}
    a:visited {text-decoration:none;}
    a:hover {text-decoration: none;}
    a:active {text-decoration:none;}

    Anthony

    February 20, 2013 at 2:04 am #21587
    zig
    Member

    Glad you got it sorted out.

    The link code started on line 115 in the stylesheet.

    Reply back if you need more help.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Modern Portfolio – User Agent Style Sheet’ 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