• 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

Adding background img. to Home 1 section ONLY (not full background) Centric 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 › Adding background img. to Home 1 section ONLY (not full background) Centric Pro

This topic is: resolved

Tagged: background image, centric pro, home 1, mobile responsive

  • This topic has 11 replies, 3 voices, and was last updated 9 years, 4 months ago by PrayersNApples.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • April 9, 2017 at 1:53 pm #204528
    PrayersNApples
    Member

    I'm using the Centric Pro theme would like to add a background image to the Home 1 section ONLY. To clarify: I'm not referring to the whole background, but rather an image behind JUST the Home 1 section (i.e., where text would appear if you were to insert a text widget).

    I'm hoping to achieve the same type of effect as: http://www.stephanemartinw.com/ (where text is typed - I already have that part set up via typed.js - and the background directly behind the text adjusts accordingly).

    I've already tried manually playing around with a full background image, and it just doesn't achieve the clean, consistent effect I'm going for. My goal is to have the text look like it's being typed on a typewriter - which is very tricky if the image and text don't resize together.

    Thank you for any advice/guidance you might be able to offer!

    http://littleoneslittlewords.com
    April 12, 2017 at 10:36 pm #204704
    Brad Dalton
    Participant

    Thats just a div named screen with a width of 50% and min-height of 50px.

    You could so this by adding a text widget with your js and then adding a background image to the text widget.

    Something like this but with 1 widget only.


    Tutorials for StudioPress Themes.

    April 12, 2017 at 11:55 pm #204705
    Brad Dalton
    Participant

    If you just want to add the background image, use CSS like this:

     .typed-container {
        width: 50%;
        min-height: 150px;
        position: relative;
        background: url('bg.png') repeat;
    }
    

    Swap out typed-container with the class in your PHP code which generates your div and add the bg.png image to your child themes images folder.


    Tutorials for StudioPress Themes.

    April 13, 2017 at 3:48 am #204722
    Brad Dalton
    Participant

    Here's a full solution which includes loading and customizing the js.


    Tutorials for StudioPress Themes.

    April 13, 2017 at 6:22 am #204727
    PrayersNApples
    Member

    Hi Brad,

    Thanks so much! I tried adding the following CSS but it didn't work (I'm thinking maybe I didn't identify the right class in my PHP code?):

    home-widgets-1 color-section widget-area {
        width: 50%;
        min-height: 150px;
        position: relative;
        background: url('http://littleoneslittlewords.com/wp-content/uploads/2017/04/1313A.jpg') repeat;
    }

    (Also: Do you happen to know what size image would be optimal to upload?)

    I really would like to recreate the effect found at http://www.stephanemartinw.com/ - just with a typewriter image as the background instead of a gray rectangle. The last link you suggested looks perfect! I'm just, unfortunately, not in a financial position to access the rest of the article.

    Any advice would be greatly appreciated - thank you so, so much!

    April 13, 2017 at 2:42 pm #204745
    James Chai
    Member

    Try this ...

    Download the following plugin (https://wordpress.org/plugins/so-css/)

    Once installed and activated you can view your website through the editor (built in) and target the 'element' that you want to edit/change--like adding a background to just the Home 1 Section.


    Marketing, Sales and WordPress Growth Hacking http://www.smbpress.com

    April 13, 2017 at 3:31 pm #204748
    PrayersNApples
    Member

    Thanks, JChai! Once I've added the desired elements, am I able to delete the plugin and keep the changes (in other words: are the changes made directly to my css stylesheet - and the plugin is just a conduit) or will the changes disappear with the plugin? I'm trying to keep my site as bloat-free as possible, so I'm trying to limit my plugins - but this does seem like a great solution! If I can delete after implementing, this might be perfect.

    (I'm currently using Firebug but can't isolate what line of code needs to be added where - I know I'm floating around the right area, but can't get it right.)

    April 13, 2017 at 3:40 pm #204749
    James Chai
    Member

    If you want to delete the plugin after you have made the desired changes then 'COPY' the generated CSS to your child themes style.css file.

    IMO--I use this plugin quite often and it isn't that heavy on the site (speed+performance).


    Marketing, Sales and WordPress Growth Hacking http://www.smbpress.com

    April 13, 2017 at 4:41 pm #204753
    PrayersNApples
    Member

    Thanks, JChai - I tried out the plugin and just a step closer: The following code puts the image behind my text:

    #text-5 { background:url(http://www.littleoneslittlewords.com/wp-content/uploads/2017/04/1313A.jpg); }

    However, I'm still left with two problems:

    1) I need more of the image to show (right now it's literally JUST behind the text - I need the full picture). I'm thinking maybe something to do with padding or line-height?

    2) Since I'm using typed.js in this particular widget, the image shrinks and grows with the text as it's typed.

    I also tried:

    .home-widgets-1.color-section.widget-area {
      background-image: url("http://littleoneslittlewords.com/wp-content/uploads/2017/04/13A.jpg");
    }

    This solves the problem of showing more of the image; however, the width still grows and shrinks as the typed.js text is typed.

    Any suggestions anyone might have would be greatly appreciated! Thanks so much!

    April 13, 2017 at 5:12 pm #204755
    James Chai
    Member

    Try this

    (i.e)

    .home-featured .home-widgets-1 {
        display: inline-block;
        display: table-cell;
        vertical-align: middle;
        width: 100%;
        padding: 200px 0;
        font-size: 20px;
        background-image: url("http://littleoneslittlewords.com/wp-content/uploads/2017/04/13A.jpg") no-repeat;
        width: 300px;
    }

    A few things ...

    1) Select a 'width' that fits your image size, if the image is to large consider re-sizing it.

    2) You will have to play around with the padding after you determine the 'width'

    3) You may need to adjust various settings to accomodate 'Mobile' viewing.


    Marketing, Sales and WordPress Growth Hacking http://www.smbpress.com

    April 13, 2017 at 6:45 pm #204758
    PrayersNApples
    Member

    Thank you so much! That is the closest I've come so far! I'll play around and return with a post if I'm able to make it work - thank you again!

    If I could find a way to make it mobile responsive (so the image resizes exactly with the text, I'd be all set!)

    April 13, 2017 at 7:42 pm #204764
    PrayersNApples
    Member

    I'm going to mark this issue as resolved (since we were able to get the image added to the Home-1 Section only); however, I've started a new thread to dig deeper into the other stuff: https://www.studiopress.community/topic/creating-image-container-for-typed-js-content/

    Thanks so much!

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Adding background img. to Home 1 section ONLY (not full background) Centric 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

© 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