0

I made some changes to the theme and reverted it back but now the header is not displaying and the header image section is missing.

Customizer menu as of now

I even tried switching the theme but sill no header. I tried navigating to it from Appearance > Header but it just navigates to the customizer. Also the header image is present in theme/assets.

Any idea what's wrong?

New contributor
Aditi is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

closed as off-topic by Jacob Peattie, fuxia Jan 12 at 9:41

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?" – Jacob Peattie, fuxia
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Never mind.. delete and reinstall theme worked.. Don't know why changing the theme wouldn't work though – Aditi Jan 12 at 8:11
1

Try using below code for adding logo

$wp_customize->add_setting( 'theme_logo' );
$wp_customize->add_control( 
    new WP_Customize_Image_Control(
        $wp_customize,'theme_logo',array(
            'label' => 'Logo',
            'section' => 'Header',
            'settings' => 'theme_logo',
            'priority' => 1
        )
    )
);

This will cretae a new section header and you can have logo into it.

Not the answer you're looking for? Browse other questions tagged or ask your own question.