How to add background image for home page only in wordpress
1 answer
You can add php body tag if home gets class "yourClass" and give BG for that class in css
<body class="<?php if (is_home()){echo 'yourClass';} ?>">
Or give an inline background
<body <?php if (is_home()){echo 'style="background-image:url(images/yourBG.jpg);"';} ?>>
But I prefer the first option with the class
Good luck! :)
+2
source to share