How to use Custom jQuery Code in WordPress Thesis

By | December 27, 2013

Default option is available in thesis to include jquery library files and add custom jquery. Here is the tutorial about how to use Custom jQuery Code in WordPress Thesis theme. Under Head Script option, we can use our jquery codes.

STEP 1: WordPress Admin -> Thesis -> Manage Boxes -> HTML Head Editor

STEP 2: Place the following code inside the HTML Head Editor

  • First script included is jquery library file from google.
  • Second script is our custom jquery code.

[code type=html]
<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js”>
</script>

<script type=”text/javascript”>
$(function(){

/* YOUR CODE*/

alert(‘Custom jquery Code has been executed’);
});
</script>
[/code]

Above javascript will bring an alert box,  when page refreshes

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *