• 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

CSS Text over Image

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 › CSS Text over Image

This topic is: resolved

Tagged: css, positioning

  • This topic has 4 replies, 2 voices, and was last updated 9 years, 4 months ago by BlakeN.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 6, 2013 at 6:52 pm #71350
    BlakeN
    Participant

    Hi,

    I am attempting to simply place text over an image and alter the styling of the H tags in various instances. If you take a look at the homepage you can see where this is not exactly falling into place. Here is the code I used:

    <div style="position: relative; background: url(http://directmktg101.com/wp-content/uploads/2013/10/Mailing-List-companies.jpg); width: 1140px; height: 300px;">
    <div style="position: absolute; bottom: 130; left: 72px; width: 350px; font-weight: bold; font-size: 30px; text-align: center; color: #fff;"><h2><p>Trusted Mailing List Specialists</p></h2>
    </div>
    <p style="position: absolute; bottom: 70px; left: 72px; width: 350px; color: #357291; font-size: 28px; text-align: center;">We have proudly served over 100,000 customers</p>
    </div>

    It did not pick up the styling or positioning elements.

    Any help is greatly appreciated.

    Kind regards,
    Blake Newton

    http://directmktg101.com/
    November 6, 2013 at 7:12 pm #71357
    nutsandbolts
    Member

    Here's a tutorial that should help you. It was written for the Minimum child theme but will work basically the same for any child theme: http://www.carriedils.com/text-overlay-image/


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    November 9, 2013 at 7:27 am #71856
    BlakeN
    Participant

    Thanks for the insight Andrea!

    What would be the best way to code an override of the styling elements for H tags?

    November 9, 2013 at 7:38 am #71860
    nutsandbolts
    Member

    You can target the exact area you want to alter through CSS - I can't see them right now because I'm only getting a slider shortcode on your homepage, but if you put those elements back in place and let me know, I'd be glad to take a look. If you're using a widget area, you can usually do it that way. So if the widget area is Home Top, for example, you can do something like this in your stylesheet:

    #home-top h2 { 
            font-weight: bold;
            text-align: center;
            color: #fff;   
    }

    and so forth until all the rules are in place. If something doesn't take effect, it means something else in the stylesheet is overriding it, but you can usually add !important to your rule to force it to work. So if the h2 headline didn't show up in white like you wanted it to, you could alter that to say color: #fff !important; and that should get it working.

    I hope that makes sense. As I said, I'd be happy to help if you still need it.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    November 10, 2013 at 2:07 pm #72097
    BlakeN
    Participant

    Perfect! Thanks again Andrea.

    Kind regards,
    Blake

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