Support » Fixing WordPress » class on body

  • Resolved atlantictv

    (@atlantictv)


    HI WP users 🙂

    i need to apply a “display:none;” style to a div in my header only when i’m on the home.php.

    i try to fo it like :

    in the css :

    body.single-author.pageTitre{
    	 	display:none;
    	 }

    OR n the header :

    <script type="text/javascript">
        	$(document).ready(function(){
        		$("body.home.pageTitre").css("display","none");
    
        	});
        </script>

    but i don’t have the result i need i don’t understand my error… if someone can help me it where appreciable 😉

    thanks !

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘class on body’ is closed to new replies.