liquidws
Member
Posted 7 months ago #
hi wordpress world! lol
just starting out and ran into a snag.. this code in the header.php file
<body <?php body_class(); ?>>
renders out like this..
<body class="home blog projects">
i need to add another class call.. what file does this <?php body_class(); ?> refer to so i can add ???
thanks in advance.
liquidws
Member
Posted 7 months ago #
liquidws
Member
Posted 7 months ago #
ok.. maybe i should rephrase this..
i need to add another class here, so it would look like this..
<body <?php body_class(); ?> class="demo1" >
but this throws an error when i validate, saying that there are two classes. therefore, how would i accomplish this?
liquidws
Member
Posted 7 months ago #
woudl this be correct...
<body <?php body_class('demo1'); ?>>
?
liquidws
Member
Posted 7 months ago #
and if i need to add more..
<body <?php body_class('demo1','demo2'); ?>>
?
Yes - that would add a class called demo1 to the body tag.
liquidws
Member
Posted 7 months ago #