I was very pleased with myself after altering header.php to allow me to display a div containing rotating text above the main header elements:
happy example here
However, this does not display properly on 'pages' containg posts - basically anything in the mysite.com/archives directory
unhappy example here
- I presume (well Ok am guessing) that there is a conflict which is not allowing the js to do its thing.
- Or is there something about header.php which makes it behave differmtly on 'posts' (/archive/) pages ?
- Or am I missing something very obvious here ?
I hope someone can help or at leats give me a nudge in the right direction.
I have had a good look around here and the WP codex, but can't quite figure this one out this time.
Extract from altered header.php follows
Code:
<link rel="stylesheet" href="wp-content/themes/atahualpa/newsticker.css" type="text/css" /> <script type="text/javascript" src="wp-content/themes/atahualpa/js/prototype.js"></script> <script type="text/javascript" src="wp-content/themes/atahualpa/js/effects.js"></script> <script type="text/javascript" src="wp-content/themes/atahualpa/js/newsticker.js"></script> </head> <body <?php body_class(); ?><?php if ($bfa_ata['html_inserts_body_tag'] != "") { echo ' '; bfa_html_inserts($bfa_ata['html_inserts_body_tag']); } ?>> <?php bfa_html_inserts($bfa_ata['html_inserts_body_top']); ?> <div id="wrapper"> <div id="container"> <div id="newsticker"> <ul> <li>10 000 copies monthly</li> <li>Glossy Lifestyle Magazine</li> <li>Distributed to “A” Income areas</li> <li>Established since 2006</li> <li>Read Cover-To-Cover</li> <li>Long Shelf Life and Ongoing Exposure for Advertisers</li> <li>Generating top quality leads</li> <li>Professional, targeted distribution with ZERO wastage</li> </ul> </div> <table id="layout" border="0" cellspacing="0" cellpadding="0">