Javascript Solution Remove Specific Tag but leave the rest in a specific DIV

<script type=”text/javascript”> function removeLink() { theAs = document.getElementById(‘lg_image’).childNodes; // get all children of div#lg_image for( i = 0; i < theAs.length; i++ ) { // loop through the children if( theAs[i].nodeType != 3 ) { // if the child is not a whitespace, theImg = theAs[i].innerHTML; // it is the a which contains the img, … Read more

Scripts at the end of the page

The hook for registering the script in the footer is: <?php function my_init_method() { wp_register_script( ‘myscript’, ‘http://www.mydomain.com/js/myscript.js’,”,”,’true’); wp_enqueue_script( ‘jquery’ ); } add_action(‘init’, ‘my_init_method’); ?> be sure to look at this and this, both are important.

javascript conflict

That script looks very old and obtrusive and it doesn’t output a marquee, but a slideshow. There already are hundreads of themes with a slideshow built in, as well as many newer jQuery plugins which you can switch to. If you’re still convinced this particular script is worth the time to fix, install Firebug to … Read more