Sanjeev Sabhlok's notes on technology, hardware, gardening

Insert code (javascript) into WordPress (whitehouse theme)

INSERT CODE AT THE BOTTOM OF EACH POST (single post)

The "in-post template" plugin only inserts HTML

Use the "post layout" plugin. It works.

The "creative clans embed script" plugin inserts script into PARTICULAR posts.

Here are more options.

 

INSERT CODE IN A SIDEBAR WIDGET

This is trivial. Just create a text widget and insert code

 

INTERNET ADVICE ON THIS TOPIC

this AAnd this AND hint. and this.

 

NO NEED TO USE THIS

On the Whitehouse theme, insert tracking code (adwords) thus:

  • Go to "Editor"
  • Go to footer.php
  • Insert the tracking code before </body>

 

 

INSERT CODE AT THE BOTTOM OF THE BLOG

Whitehouse theme has a convenient place to insert code into posts and pages.

Go to the theme options (from sidebar).

Select <custom code>

Go to Footer Scripts & Analytics (Any footer scripts including Google Analytics)

Insert.

Print Friendly

sabhlok

View more posts from this author

Leave a Reply

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