PKimpton
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: JavaScript Code will not runI have found the main issue. I have the Simple Google Map plugin installed and was loading a map in the sidebar on the same page. When I turned this off my script worked! Ive now installed Dynamic Widgets plugin and turned off the map on this page and I can return my javascript to the page rather than having it load for every page using the footer page.
Thanks for all your advice and for the nudge in the right direction.
Forum: Fixing WordPress
In reply to: JavaScript Code will not runAhhhh 🙂
Thanks ever so much
Ive been banging my head on this for nearly 4 hours!
I have :</body>
<script type=”text/javascript” src=”http://www.climateuk.com/js/prices.js”></script>
</html>and this has solved it.
Well done, and thanks again.Forum: Fixing WordPress
In reply to: JavaScript Code will not runDo I just place;
<?php wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ); ?>
into my header?or <script type=”text/javascript” src=”/js/prices.js”></script>
in the footer?Forum: Fixing WordPress
In reply to: JavaScript Code will not runIve come across this page a few times but it seems to go right over my head.
I’m placing a command,
<script type=”text/javascript” src=”/js/prices.js”></script>
in the Header.php page and the HTML code directly into the wordpress page.
Am I missing something?Thanks.
For now, I’ve simply moved them out of a structure for the areas I dont want replicating but it would have been nice to keep the structure orderly. I was just hoping there would have been a command I could add to [tpg_get_posts category_name=”computers”] maybe something like [tpg_get_posts category_name=”computers” view_subcats=”no”]All the best