Support » Theme: Expound » Can't set header image in child theme?

  • Resolved advancedk

    (@advancedk)


    Hello

    I have created a child theme from expound so have the folders

    /themes/expound
    /themes/expound-child

    with the only file in expound-child being style.css which has the contents

    /*
    Theme Name: Expound Child
    Author: Konstantin Kovshenin (edited by me)
    Author URI: http://kovshenin.com
    Template: expound
    */
    
    /* =Imports styles from the parent theme
    -------------------------------------------------------------- */
    @import url('../expound/style.css');
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */

    Everything 100% works when I enable the child theme (i.e. the child theme is effectively a clone of the original since the style.css file jsut inherits everything) except the option to set a header image is missing. (so enabling the child theme everything looks the same except the header image is missing)

    If I click customise on the expound theme there is the option on the left to set the header image, next to the other options such as colours, background image, navigation etc. but this option is missing for the child theme.

    Am I missing something crucial? Thanks for your help!

    Edit: I’m running Expound 1.7

Viewing 5 replies - 1 through 5 (of 5 total)
  • Not that I can see. The parent theme is configured in such a way that the child should inherit the inc/custom-header.php file automatically.

    Thread Starter advancedk

    (@advancedk)

    OK I have fixed the problem, although I’m not sure whether there is still a bug in the software, so I wouldn’t set this as resolved just yet.

    The option only appeared under the ‘customise’ menu once I had selected the header image by first enabling the theme, then clicking ‘header’. The reason why I was having problems before was because I was clicking on the not enabled child-theme theme (e.g. like clicking on the picture for the not-enabled expound, 2012 or 2012 themes in the image below), which took me to the ‘customize’ menu which did not have ‘header image’ listed.

    Only by enabling the theme then clicking ‘header’ was the problem fixed (but for any users thinking ‘oh crap, I can’t set the header, so I won’t bother enabling the theme’ they will never get to the solution/workaround).

    Here is an image explainig the bug/solution: http://img849.imageshack.us/img849/3690/ukbs.jpg

    Can any other users replicate this problem, or did my site randomly start working and I’ve invented a plausible explanation as to why? (I’m always wary of subtle bugs as they tend to lead to security issues, plus it’s nice to know your code works as you intended it!)

    Thanks

    That’s how child themes work – you have to activate them to use them or modify them.

    Thread Starter advancedk

    (@advancedk)

    Yes but when you click on a theme (or a child theme – wordpress has the same behaviour for both) that isn’t active, but is listed under ‘available themes’ it sends you to the ‘customize’ page e.g. clicking the image of the Expound theme when it isn’t active sends you to https://www.mywebsite.com/wp-admin/customize.php?theme=expound

    I would argue the intention of this is to allow you to configure your new theme before pressing the button ‘Save and Activate’. By not having the header image option visible, it defeats the point of sending you to the ‘customize’ page: by your argument wordpress may as well just immediately activate the theme and not bother with the ‘customize’ screen (which also serves to provide you with a preview).

    Why should this one option be missing, when you can set all of the other options e.g. background colour, site title etc.

    Theme Author Konstantin Kovshenin

    (@kovshenin)

    Certainly not a bug in the theme. You might want to file a ticket for core on this: http://core.trac.wordpress.org/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't set header image in child theme?’ is closed to new replies.