WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] class on body (2 posts)

  1. atlantictv
    Member
    Posted 1 year ago #

    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 !

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Try using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

Topic Closed

This topic has been closed to new replies.

About this Topic