Thread Starter
koedel
(@koedel)
Can I add an “if is home” type of filter to this part of the functions.php? Help with the code would be much appreciated.
// Setup the WordPress core custom background feature.
add_theme_support(‘custom-background’, apply_filters(‘zerif_custom_background_args’, array(
‘default-color’ => ‘ffffff’,
‘default-image’ => get_stylesheet_directory_uri() . “/images/bg.jpg”,
)));
Thread Starter
koedel
(@koedel)
This works!!
// Setup the WordPress core custom background feature.
is_front_page(
add_theme_support(‘custom-background’, apply_filters(‘zerif_custom_background_args’, array(
‘default-color’ => ‘ffffff’,
‘default-image’ => get_stylesheet_directory_uri() . “/images/bg.jpg”,
))));
Hi,
It’s a small issue with the way stylesheet loads, and I’ve alert our team about this issue. We will try to release an update soon with this fix. π
Regards,
Hardeep
I have the same problem π Do have any idea if this issue is resolved yet?
Thread Starter
koedel
(@koedel)
I was able to do a work around by installing a plugin that controls backgrounds. I’ve forgotten the name of it, but a search will find one. I’m using a different theme now. Good luck!
Hi @koedel, can u plz tell me how to put bacground images on pages? it can be the same or different one from the homeplage… im trying to figure this out, and i posted a topic here but with no replay till now :(… im kinda lost… and i need it for a project at Uni
Hi,
Do you have the latest version of the theme? Because we thought we fixed this.
If so, can you please give us a link to your site to see the problem?
Thank you,
Rodica
Hi
I am facing a similar problem. Kindly release a fix soon. You could check out the issue here – http://innerrealmcoaching.com/beginnings/
I am using the latest version of the theme
I have used the following code in functions.php and it seems to be working well –
add_theme_support(‘custom-background’, apply_filters(‘zerif_custom_background_args’, array(
‘default-color’ => ‘ffffff’,
‘default-image’ => get_stylesheet_directory_uri() . “/images/bg.jpg”,
‘wp-head-callback’ => ‘check_if_landing_page’
)));
function check_if_landing_page(){
if ( is_front_page() )
{
_custom_background_cb();
}
}
Hi Navin,
What version are you using? I see that you use a child theme. Is it possible that you did some changes in the child theme, that interferes with Zerif Lite?
Regards,
Rodica