Roll tags over all tags
-
Hi, all.
I have some javascripts, that are hardcoded into the header.php and some others that are included in the functions.php. Perhaps there are even more, for example, added during wp_head() process.
I need to have a <noindex> before every <script type=”text/javascript”> and a </noindex> just after every </script>.
And let’s suppose I don’t need to bother with scripts links like <script src=”http://mysite.com/nivo-slider/jquery.nivo.slider.js” type=”text/javascript” />
I.e. for example we have:
<script src="http://mysite.com/nivo-slider/jquery.nivo.slider.js" type="text/javascript"></script> <script type="text/javascript"> //here goes some scripting stuff </script>
I need it do become:
<noindex><script src="http://mysite.com/nivo-slider/jquery.nivo.slider.js" type="text/javascript"></script></noindex> <noindex><script type="text/javascript"> //here goes some scripting stuff </script></noindex>
I suppose it can be somehow done using wordpress actions and filters, but I don’t know what exactly should I use and how.
Any help would be very appreciated, thanks.
- The topic ‘Roll tags over all tags’ is closed to new replies.