• 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

Unable to correct path for background 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 › Unable to correct path for background image?

This topic is: not resolved

Tagged: background image

  • This topic has 3 replies, 2 voices, and was last updated 2 years, 1 month ago by Anita.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 3, 2021 at 11:55 am #502905
    keithpurtell
    Participant

    Our client's site is built with Atmosphere theme, and stable for more than a year. Yesterday, in the middle of the client negotiating a big contract, the background image at the top of the splash page stopped displaying. The image itself is in the correct location in Media. I have opened a ticket with WPEngine but have been getting suggestions like clear the browser cache, and trying using the Customize tool to re-set the image, turn off all plugins. None worked so far. (I temporarily added a gray background color because yellow logo needs a darker color behind.) Here is what I see in View Source...

    LINE 181 – correct
    /* <![CDATA[ */
    var BackStretchImg = {"src":"https:\/\/505architects.com\/wp-content\/uploads\/2020\/01\/505-less-cont-city-1920.jpg"};
    /* ]]> */

    LINE 327 -- INCORRECT
    /* <![CDATA[ */
    var BackStretchImg = {"src":"https:\/\/realizetech.com\/505architects\/wp-content\/uploads\/2020\/01\/505-less-cont-city-1920.jpg"};
    /* ]]> */

    https://505architects.com/
    February 5, 2021 at 11:46 am #502926
    Anita
    Keymaster

    If the website was once on that old URL and you changed domain names, there are a lot of instances where you would need to change the URL in the database somewhere using a plugin that does "Search and Replace". Was that the case? Switched domain name?


    Love coffee, chocolate and my Bella!

    February 5, 2021 at 1:16 pm #502931
    keithpurtell
    Participant

    I've searched the database a couple of times using that plugin. No luck.
    I also tried using Customize inside the theme to re-set the image, and it seems to save (no error message). But it does not display; no change.

    WPEngine tech support recommended I clear the browser cache and/or open in a different browser. Also no change.

    I finally just wrote a new CSS selector to force proper display of the background. So, I "solved" the problem, but I don't understand why this display fine for a year, and then suddenly was broken.

    Anita, thank you for offering to help!
    Let's close this one and move on.

    February 5, 2021 at 2:18 pm #502936
    Anita
    Keymaster

    Okay, I asked in Genesis Slack and Marcy Diaz shared that more than likely your Security Headers were modified and they need to be updated. Did you look at your .htaccess file at all? That would be excluded from the Search/Replace as that file isn't part of WordPress.


    Love coffee, chocolate and my Bella!

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