• I’ve searched for this topic and the solutions I’ve seen either don’t work or confuse the heck out of me! πŸ™‚

    Is there a way to link the background image to a url so I can change it on the fly rather than having to go through the WordPress panel? I’d rather just be able to upload a new image to the name filename and be done.

    Using the News Max Lite theme if that helps.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Have you tried doing it yet?

    Thread Starter Lighthope

    (@lighthope)

    Have you tried doing it yet?

    Do what?

    replacing the existing image with another but using the ssame file name.

    Thread Starter Lighthope

    (@lighthope)

    replacing the existing image with another but using the ssame file name.

    Perhaps there is some confusion as to what I am asking.

    I want to have my background image located at http://www.someplace.com/someimage.jpg

    How do I get WordPress to do that?

    You could make a child theme and change the function.php to point at the image or probably easier, use one of the custom css plugins (‘my custom css’, ‘simple custom css’ or one of the others) and add a css override (you will probably need the !important tag) using the element and class that points to the image. You can get this by using a code examiner to see where the background is specified in the css and that will give you the element name and class/id being used.

    Thread Starter Lighthope

    (@lighthope)

    You could make a child theme and change the function.php to point at the image or probably easier, use one of the custom css plugins (‘my custom css’, ‘simple custom css’ or one of the others) and add a css override (you will probably need the !important tag) using the element and class that points to the image.

    Thank you for the help. Unfortunately, this is kind of what I meant by answers that confuse me.

    Change what in function.php? Add what to custom css?

    What I’m looking for is “Put <this code> in <this php file>.”

    I want to have my background image located at http://www.someplace.com/someimage.jpg

    How do I get WordPress to do that?

    The background image location is a fuction of the theme customizer, It points to the image you select from the customizer.

    You can figure out the location of that image by looking at the source of a page and searching for the line:

    <style type=”text/css” id=”custom-background-css”>

    the next line will show the location of the image

    With this information you can upload a new image to that location with th esame name replacing the existing image. Make sure that the permissions of the new file match the permission of the original file.

    Thread Starter Lighthope

    (@lighthope)

    You can figure out the location of that image by looking at the source of a page and searching for the line:

    <style type="text/css" id="custom-background-css">

    the next line will show the location of the image

    As you have correctly noted, the background image location is a function of the theme customizer. I want it to point to where I want it to point to, not to where it wants to point to.

    I have an image at a certain URL. Let’s call it http://www.someplace.com/image.jpg

    How do I get WordPress to load the image from that URL as the background image?

    Look for a plugin and hope one exists

    I’d like to try to get this thread resurrected

    not being able to use an external URL for an element background image seems very odd to me and a big issue for my purposes.

    @wasanajones – you CAN use an image from an external URL, the OP wanted to be able to dynamically change that url on the fly.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Background image from url’ is closed to new replies.