How do I change header image on subpage

Hi, I would like to have a different header image on the subpage, but I do not know how to do it. I set up header image (logo) and it doesn’t change when I move to sub-page. In this way the viewer cannot even see that he/she was transferred to the new subpage. Can you help?
I am new to Activello.
My website: www.szycietobajka.com
Thank you, Iza

Hi Iza,

I hope you are well today and thank you for your question.

The theme logo image is displayed using following WordPress custom logo functionality so it doesn’t change on subpage and you have to develop custom code to change it.

Best Regards,
Movin

Thank you Movin.
I followed the instructions on link you sent to me (above) but unfortunately after updating the website the webpage disappeared. I have a “HTTP error 500” and note: This site does not work. Can you help me to restore the webpage? Thank you Iza

Hi there,

Thank you for keeping in touch.

Assuming you haven’t made a back up before making these changes,

Try the following first:
Please access your hosting’s file server through the admin Panel or through FTP access.
• Navigate to wp-content/themes in the main folder directory located on your hosting’s file server.
• Rename the current themes folder to themes_old and create a new folder by the name of themes.
• Try accessing your WordPress Dashboard after this and if you are able to log in successfully, delete the newly created folder by the name of ‘themes’ and rename the ‘themes_old’ folder to ‘themes’
• This will disable all themes, but you should still be logged into your WordPress Dashboard.

If that doesn’t work:
Access your WordPress Files via FTP go to the theme files wp-content > themes > activiello and remove the changes that were made to the functions.php file.

Best Regards,
Support

Hi,
Thank you for your help. I followed the instructions, removed the changes I made in functions.php. I removed themes folder and still have themes_old folder.
However I lost Activello motive/theme. When I open website the communicate is following:

  • „activello” folder does not exist.
  • ERROR: Motive/theme catalogue is either empty or does not exist.
    How can I recover activello motive/theme?
    Thank you, Iza

Dear all,
I already solved the problem but only because I removed the code suggested in the link Custom Logo | Theme Developer Handbook | WordPress Developer Resources
It turned out that I must have put the code in a wrong place of functions.php.

Can you tell me in which place of functions.php I should put the code:
function themename_custom_logo_setup() {
$defaults = array(
‘height’ => 100,
‘width’ => 400,
‘flex-height’ => true,
‘flex-width’ => true,
‘header-text’ => array( ‘site-title’, ‘site-description’ ),
);
add_theme_support( ‘custom-logo’, $defaults );
}
add_action( ‘after_setup_theme’, ‘themename_custom_logo_setup’ );
Thank you
Iza

You should add it at the end of functions.php file of your child theme.

Hi,
I have used the instruction from Custom Logo | Theme Developer Handbook | WordPress Developer Resources
but apparently, on the subpage the header has not changed but the was a new picture under the header (which is the same as fro the front page).
How can I chanhe the header on the subpage to make it different from the header on the main/ home page.
Thank you.
Iza

Hi
Please, see: https://szycietobajka.com
After the changes the header on the main page moved up and the upper bar with the subpages (BLOG I MY // STYL) moved under the header. I would like to keep this bar aboev the header logo picture.
Thank you fr advice.
Regards,
Iza

You have to develop custom code to achieve this.

Developing custom code for custom functionality is beyond the scope of support that we provide here.

If you are not a developer then you can consider hiring a developer to develop it for you. You can hire a developer from any freelance site. Colorlib recommends the developer https://www.upwork.com/freelancers/~011652ffec8865c6d5

Thank you.

You are most welcome :slight_smile: