I have blogger blog on which i want to show ad network ad code which is given below. I have added this javascript code to html widget but ad is not shown. I tried this same code on my wordpress blog where it is working fine.
As I earlier told you that every Sunday I take one relevant question from lots of queries asked by Showeblogin live visitors and discuss it with all my readers. Today, I will elaborate a very important topic that may impact the speed and search engine optimization of your blogger blog.
Hi Suresh, I am from California (US) and a regular user of your site. Today, I am asking you very basic problem I am facing right now. So, please help me immediately. Actually, I was testing my blog speed through Google PageSpeed Insights and found lots of errors. Under suggestion summary [Should fix], I got these message:
Fortunately, I was online that time and able to help him within 7 minutes. Firstly, I send him the link for inserting CSS codes properly in blogger template and then advice the rest through further conversations. There are lots of other JavaScript related queries in my inbox and here I am just trying to elaborate those in a brief manner for all of you.
To build any webpage on internet there are three most important languages viz. HTML, JavaScript and CSS. JavaScript is one of the most commonly used client-side programming language that may communicate asynchronously (i.e. independently of other processes) to web browser.
If you are using BlogSpot.com blogger blog then you have lots of option to include JavaScript codes. It will depends on where you want to render it and for which purpose you are using that JavaScript files or codes.
But, I personally advise you that paste your codes where it will be required and not anywhere as said by any third party. I mean some codes are only useful for a particular static page and therefore it should not be place in the blogger template. To get fast speed of your blog and to prevent rendering unnecessary blocking script resources, you should paste the code in HTML editor of that particular static page itself.
Similarly, if any JavaScript code is necessary for article/post pages then you may insert the script codes within conditional tag as shown below and paste the whole codes just above/before closing tag.
The above conditional tag will help to load the script for your blog posts pages only and therefore the other page like home page, label/index page and static page etc. will be fast. Accordingly, you may apply these conditional tags for rendering your JavaScript codes as per requirements.
Most of queries generally I got for placing AdSense Unit codes into blogger template. So, if you are getting error while inserting AdSense codes then please read separate tutorial specifically deals with creating and adding AdSense Ad code to blog.
If you are using third party JavaScript codes then make sure you have copied entire codes properly. Most of cases I found that they miss either the opening tag or the closing end-tag or both. As a result of which your all codes will appear on live webpage and shall not work properly.
Yes, this is very easy and risk free trick because you may add or remove JavaScript codes into your blog without touching blogger template. Follow these simple process to add JavaScript codes or files within a gadget provided by blogger itself.
Meet Dave. He is a javascript expert. He has a blog where he frequently shares his tips about javascript and react.js. He has good explanatory skills and his articles always contain code examples to illustrate his ideas.
A couple of weeks ago, Dave discovered Klipse, a javascript plugin for interactive code snippets in blog posts: with Klipse, it is super easy to include interactive code snippets in his blog posts and share data and code between the code snippets.
I just usually forgot how to embedded javascript code to my Blogger templates. So I just want to share with you as a short quote and also help me each time I need add Js to a template. This tips always helps me prevent XML error when save template code. At first, Access your blog dashboard, choose Template. Then click Edit HTML. Not, insert before tag or tag with your javascript wrapper code like below:
7fc3f7cf58