If you’d like to add a header image to the mobile theme, you’ll need to go to Appearance > Header in your dashboard, and upload an image there.
If you do not see this menu in your dashboard, you’ll need to add custom header support to your theme, by adding the following to your theme’s functions.php file:
function jeherve_custom_header_setup() {
add_theme_support( 'custom-header' );
}
add_action( 'after_setup_theme', 'jeherve_custom_header_setup' );
thanks but that doesn’t work – the theme is Atahualpa, and I put that code right at the start under `<?php
$bfa_ata_version = “3.7.15”;`
There is no option in Atahualpa to add a header through the dashboard – you need to upload it via ftp and put it in the images folder in the theme folder.
It seems to work on my end. I added the code above at the end of the Atahualpa theme’s functions.php, right before the closing ?>
tag, I saved my changed, refreshed my dashboard, and the Appearance > Header menu appeared:
http://i.wpne.ws/c2BK
Could you give it another try?
Thanks!
nope, nothing doing, sorry. I cleared all the browsing data too in case something was caching.
Could you try adding that code to a functionality plugin instead, and let me know how it goes?
Fatal error: Cannot redeclare jeherve_custom_header_setup() (previously declared in /websites/123reg/LinuxPackage22/ca/fe/la/cafelaleche.fr/public_html/wp-content/themes/atahualpa/functions.php:1000) in /websites/123reg/LinuxPackage22/ca/fe/la/cafelaleche.fr/public_html/wp-content/plugins/functions.php on line 15
Can you remove the code you added to your theme first?
yep, sorry, just thought about that. I’ve taken it off the theme functions file and added it to the plugin, still no joy so I’ve tested it on another site that has the same problem http://www.cartoonkate.co.uk.
I can’t get the header to show up on either.
I’ve googled but I can’t find out if I replace all of the code or just add the snippet you gave me at the bottom of the functionality plugin – I’ve gone for adding it.
Could you try to deactivate each one of your plugins, one at a time, just to make sure another plugin on your site isn’t causing conflicts?
Thanks!
I deactivated all of them apart from jetpack and the functionality plugin and it still doesn’t work.
I really appreciate your time on this! Sorry it’s not doing what it should.
Could you contact me via this form, and mention this thread? I’d like to run some more tests with you if that’s okay.
Thanks!