WordPress how to include a Google gauge

Asked By 280 points N/A Posted on -
qa-featured

I am using WordPress to manage my site. I want to use a Google Gauge on my WordPress site.

How do I do this?

SHARE
Best Answer by DimaZ
Answered By 0 points N/A #92973

WordPress how to include a Google gauge

qa-featured

You will need to create a new page template in WordPress.

Google Gauge, uses a JavaScript library. It needs to be included in your theme in the header. Subsequently you need to insert a block of JavaScript in order to make it work.

Answered By 280 points N/A #92974

WordPress how to include a Google gauge

qa-featured

Is there a possibility of doing this, without creating a page template ? This is because I actually do not have FTP access nor the knowledge on creating a page template for WordPress.

Answered By 5 points N/A #92975

WordPress how to include a Google gauge

qa-featured

Actually you could do one thing though.  That is to use the template editor provided in WordPress Admin Panel.

Login to the WordPress admin panel

  • Select "Themes". 
  • There is an option called "Editor".
  • Open it up and look for a page called header.php.
  • Edit it and insert the JavaScript Library links given by Google.

Then save the page. Now you can verify if the changes are there by right clicking a post and viewing the source. If you can see the inserted JavaScript library then the you are ok for the next step.

Answered By 280 points N/A #92976

WordPress how to include a Google gauge

qa-featured

Thank you TekGirl.  But I can't seem to find the Menu option you are referring to.

Is this hidden somewhere? I am logged on as an Admin!

Best Answer
Best Answer
Answered By 0 points N/A #92977

WordPress how to include a Google gauge

qa-featured

I have attached a screenshot to help you find the correct location.  If WordPress is 'Multi-Site' enabled, you need to go to the Network Admin dashboard to see the "Theme -> Edit" option.

In Multi-Site mode, only the network admin is given provision to edit the theme files. This is because themes are centrally controlled.

Answered By 280 points N/A #92978

WordPress how to include a Google gauge

qa-featured

Thank you Dimaz,

I re-logged in as a Network admin and yes I can see the menu option!  Now  I want the Gauge to be visible on my Sidebar.

What should I do? Do I need to edit a page template ? (I do not want to do more editing !)

Answered By 5 points N/A #92979

WordPress how to include a Google gauge

qa-featured

Now that you have the base libraries inserted in the header, you can use a "Text Widget" and drag the Widget to your sidebar.

The Text Widget allows you to insert HTML and script code that will be put as is on to the page template HTML without converting it into HTML entities.

You can insert the Google Gauge script generator code here.

Answered By 280 points N/A #92980

WordPress how to include a Google gauge

qa-featured

Thank you TekGirl and Dimaz!

I followed your instructions and now I can see the Gauge in my Sidebar!

Thank you to both of you!

Related Questions