Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Header images using absolute path

header image absolute path url
    • 7 years, 4 months ago grouchingtiger
      Participant

      Expired

      Hello,

      When setting the page header background as an image, the theme sets the absolute path to the image. We recently moved our staging environment to another hosting provider, and in order to get our staging environment to work, we had to change all of these image paths to the new staging URL. It looks like we’re going to have to do this again when we go live with the site.

      I was able to set relative image paths manually, but the file loading these images must be in a subdirectory, because I had to prefix the relative URLs with “../”.

      I thought this is something you should be aware of.  Anyone setting up a new site in a staging environment that uses header images is going to have to do this when deploying.

      Thanks.

    • 7 years, 4 months ago grouchingtiger
      Participant

      Expired

      Actually, the problem seems to be even worse. Setting the relative URL prefixed with “../” isn’t sufficient to stop the edit page from trying to reference 150×150 thumbnails which have absolute URLs pointing to the old staging site. In fact, when we remove the header background image URL completely, for some reason the edit page still references these thumbnails from the old staging site. It appears as though setting a new absolute path for the header background image, saving, and then setting a relative path works, but I suspect we’ll run into problems again when we go live.

    • 7 years, 4 months ago Mirela
      Participant

      Hello,

      When moving the site from stage to live and vice-versa, you will need to move all the folders of the wordpress installation, images folder as well. Also you will need to import old database to your new host and update it by resetting all urls. So this is all you need to keep in mind regarding the images as well. The image folder should be present and just changes the old url’s in the database to the new ones. You can do such transitions easy by using a plugin such as “WP Migrate DB“.

      Best regards!

Viewing 2 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password