WordPress how to include a Google gauge
I am using WordPress to manage my site. I want to use a Google Gauge on my WordPress site.
How do I do this?
I am using WordPress to manage my site. I want to use a Google Gauge on my WordPress site.
How do I do this?
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.
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.
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
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.
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!
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.
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 !)
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.
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!