Banner image disappears in child theme

  • Author
    Posts
  • #42233

    Hi,

    I’ve tried to create a child theme of Nirvana so I can integrate some active PHP elements from a pre-existing webapp.

    The child theme seems to work perfectly except for one problem. The banner image is missing. Specifically the image is missing from the #branding div.

    I can’t see any errors in any logs. I’ve created the child theme using the @import parent css method (as recommended on this site) and also the newer ‘wp_enqueue_scripts’ method described on wordpress.org – both have the missing header problem.

    Can you think were in the code this banner image is added and why a child theme may affect it?

    Thanks

    #42464
    Zed
    Cryout Creations mastermind

    Did you (re)assign the header image after activating the child theme?

    Some options, like the header image, is saved by WordPress on a per-theme basis, so they need to be configured for each new different theme (a child theme is, technically, a different theme).


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #42521

    No, I didn’t know I needed to do that as the header was still there in the Nirvana Settings.

    I’ve reassigned the header image and now everything is working!

    Thank you very much for the help.

    You also said “some options, like the header image”… are there other settings like this I should be aware of when using Nirvana as a parent theme?

    #42719
    Zed
    Cryout Creations mastermind

    Site background color/image and menu assignments are two other options that are saved per theme.

    Additionally, some plugins store their options on a per-theme basis, like conditional widgets / custom sidebar ones.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Banner image disappears in child theme’ is closed to new replies.