Insert Headers and footers
-
If I want to insert a script in the footer of every page AND insert a footer script into the home page only can i…?
<script to appear in the footer of every page>
THEN INSERT
add_filter( ‘disable_ihaf_footer’, ‘fn_ihaf_footer_only_home’ );
function fn_ihaf_footer_only_home() {
if( is_home() || is_front_page() ) {
return false;
}
return true;
}
THEN INSERT
<script to appear on the home page footer only>If not how is it possible, please
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Insert Headers and footers’ is closed to new replies.