for the gurus: suppressed javascript in non-default themes
-
Hi. I’m flummoxed.
WP 2.6
Theme: Misty Look 3.2
Plugin to embed flash: Flash Video Player (Eldridge)Were a reader to, from the sidebar, go to the category
https://squareone-learning.com/blog/category/my-casual-art/the flash video embedded (Space, Deep and Imaginary) is broken.
However, the video works fine viewed as a single page, and from the first page.
Switch to the default theme, and video works fine, viewed in the category archive page. (I do not know what the technical term is for viewing posts from clicking on categories.)
Trouble shooting in View Source mode between the default (works) and themed (broken) the following snippet reflects the difference
default theme; works:
<span id=”video0″ class=”flashvideo”>
Get the Flash Player to see this player.</span>
<script type=”text/javascript”>
var s0 = new SWFObject(“https://squareone-learning.com/blog/wp-content/plugins/flash-video-player/mediaplayer.swf”,”n0″,”512″,”288″,”7″);
s0.addParam(“allowfullscreen”,”true”);any of the 3 custom themes I’ve installed; broken:
<span id=”video0″ class=”flashvideo”>
Get the Flash Player to see this player.</span></p>
<p>var s0 = new SWFObject(”https://squareone-learning.com/blog/wp-content/plugins/flash-video-player/mediaplayer.swf”,”n0″,”512″,”288″,”7″);
s0.addParam(”allowfullscreen”,”true”);Observations:
1. <script type=”text/javascript”>
not inserted in line 4 in broken code2. ” is being rendered as html equivalent: ”
(weird…!)
I’ve left the broken theme activated. The default theme is inserting the <script type=”text/javascript”> and non-default themes aren’t doing so in these category archive pages.
I don’t know where to begin to sort this out. I note the headers are basically identical between default and non-default.
What’s causing the essential <script type=”text/javascript”> to be suppressed in category view on non-default themes???
***
Side question, similar problem: is there anyway to not have flash videos suppressed in archive views? Ideally, I’d like to eliminate excerpting and having stuffed stripped out of posts when viewed as a search result, category, archive.
Bless you for your response in advance!
Steve
- The topic ‘for the gurus: suppressed javascript in non-default themes’ is closed to new replies.