• Hi there, I would like to modify the images in the banner section. I was told to change them from the dashboard – appearance – header, but what if I want to change them manually?
    I have created a child theme folder and I have created an image->header folder too. I have added my new image there, but the banner hasn’t change. Any suggestion please?
    thanks

Viewing 2 replies - 31 through 32 (of 32 total)
  • Thread Starter giec

    (@giec)

    hi both thanks for your help. Sorry I didn’t know that the thumbnails were necessary. ABout the php function, thanks for doing that. I had a look and unfortunately my knowledge of php is equal to 0 so your explanation was really useful, I could never come up with something like that. I have a separate function, shorter than yours, that seems to be working fine I wonder if it is ok for me to use it, what do you reckon? https://pastebin.com/4cXaHb8z

    I suspect your function Digital Raindrops is probably far more effective than mine, but I though to give it a go
    thanks

    Hi,
    You can do it anyway you want, it will mean that you will have to update it as you add more default headers.

    I would say not to hard code the url, what if you want to have a local copy, share your theme, move hosting then you will have to edit the files.

    I have adjusted your code and added a variable to hold the url to the headers folder, and changed the links.

    /** This will get the url of the current website
     *  and path to the headers folder
     */
    $url = get_stylesheet_directory_uri() .'/images/headers/';

    https://pastebin.com/73U0ahtN

    Have a look at setting up a local WordPress install or environment to develop and test your changes, then ftp them to your website.

    HTH

    David

Viewing 2 replies - 31 through 32 (of 32 total)
  • The topic ‘probelms with banner images’ is closed to new replies.