• Resolved danid88

    (@danid88)


    Hi!

    Right now I’m developing a site locally using xampp and virtualhosts. I just exposed a port so I could test it on my mobile phone using my_notebook_ip_address:exposed_port.

    Also in the wp-config file the siteurl is defined like this:

    define('WP_HOME','https://' . $_SERVER['HTTP_HOST']);
    define('WP_SITEURL','https://' . $_SERVER['HTTP_HOST']);

    Everything is working how it’s supposed, but I noticed the background pictures of the slides are not loading.

    Turn’s out the image src-s are defined with absolute paths.

    I was developing this site with a dummy name locally, but when it goes live it will have another address, and may have multiple instances.

    My question is it possible in Smart Slider 3 to define the background image src-s as relative paths like: /wp-content/uploads/2018/01/whatever.jpg?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gabor

    (@nextendweb_gabor)

    Hi @danid88!

    With our system when you are moving your website from one domain to another, you should just press the “Clear cache” button:
    https://smartslider3.helpscoutdocs.com/article/215-cache
    and all urls should be fine!

    So we are not storing the base url of the website, but we are asking that down from WordPress and we are inserting that next to our relative urls, which creates the absolute urls.

    If only clearing the cache wouldn’t work, somewhere on your site there is still the previous url stored. In that case you could define the WP_CONTENT_URL constant too, because if that is set and you are clearing our cache, then we are using that as the base url:
    define('WP_CONTENT_URL', https://' . $_SERVER['HTTP_HOST'] . '/wp-content');

    Thread Starter danid88

    (@danid88)

    I’ll do that! Thank you for the information!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need slider background image to be relative path’ is closed to new replies.