HI,
I have scoured the forums and wp to try and figure out what is going on but I cannot seem to get my functions file to recognize my static front page as such... I have followed the instructions thru wordpress > created an empty home page, gave the proper template name, built the template page and it loads fine and everything is great when viewing the home page, the problem is when I try to conditionally load some js scripts from within the functions file... here's my code but it doesn't work, any thoughts much obliged, thx ;)
// conditionally Load js callz...
if ( is_front_page() ) {
function add_js_calls() { ?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#topic-scrollpane').jScrollPane();
jQuery('#slider').s3Slider({timeOut: 9000});
});
</script>
<?php }
add_action('wp_head','add_js_calls');
}