mrancys
mrancys

Reputation: 56

Jquery code insert into WP HeadWay Page

Hi problem is to insert jquery code into WP Headway Page.

Short intro I'm using Wordpress Headway theme manager and it consist of 5 posts. I want to make jQuery Carousel with links to content (carousel works as WP plugin). Headway has custom code section, tried to insert there.

Can someone elaborate how to insert jQuery script into single Headway Page.

Upvotes: 0

Views: 765

Answers (1)

BillyNair
BillyNair

Reputation: 277

I too thought this was a HeadWay issue, but it is a WordPress issue.

My solution was to add a JS in my "Child" theme folder and link to it

<script type="text/javascript" src="/wp-content/themes/childTheme/js/indexTabs.js"></script>

If you need to use another library like jQuery, just add it above the JS call

<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

I added both these lines to the bottom of the post (jQuery call before the JS)

Upvotes: 1

Related Questions