• 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

WordPress: line keeps losing color code.

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 › WordPress: line keeps losing color code.

This topic is: not resolved

Tagged: color for line tag, line tag

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 6 months ago by nickthegeek.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 30, 2012 at 2:29 pm #2613
    greenecon
    Member

    I want a line with color.  I put the line in:
    <hr align="left" size="4" color="abaaaba" width="60%" />  OR

    <hr align="left" size="4" color="#abaaaba" width="60%" /

     

    When I preview, it looks JUST like I want. Then I save, and whoosh, the color is gone.  I have tried lots of versions of this, but the same thing keeps happening. How do I get a color in a line to stay PUT!

    December 2, 2012 at 10:16 am #2859
    nickthegeek
    Member

    Instead of defining align, size, color, and width define a class. Then you can style that via the theme style.css file. This has many advantages as it makes the HTML markup more clean, it should retain the class value, and if you wish to change all the <hr> tags that are formatted left, size 4, #abaaaba, 60% width ... you can do so in one place instead of going and finding each page and post, plus the CSS route is more consistence across browsers.

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

© 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