How To Install A Code On Your Website?

How To Install A Code On Your Website?
  • Save

Sometimes installing specific codes on a personal platform may be a daunting task. In the beginning, I came across this problem too. But I have recently found a simple and quick solution when adding specific codes on your site.

Here I will show simple steps on how to install code on your website just before the </body> tag of your site’s template and before </head> section. That can be done easily using the ‘WordPress’ platform.

Surface Keyboard - English
  • Save
Surface Keyboard – English

Option 1 (not applied for </head> section)

Open WordPress web page admin area and go to Plugins/Add new.

In a search box type Ad inserter.

Press Install now and activate.

Go to settings on an installed Ad inserter plugin.

Choose Ad inserter General Settings, Header code icon which is the last one in the line on the right (a blue rounded circle after block).

Point little lower and choose Header box.

Insert your HTML page header code. Make sure you enable insertion of this code into HTML page header. To do that choose green box littler lower below on the right.

Save settings.

Microsoft Surface Book (Certified Refurbished) - 128GB / Intel Core i5
  • Save
Microsoft Surface Book (Certified Refurbished) – 128GB / Intel Core i5

Option 2 (much better for efficiency) 

Before the </body> tag

Go to Appearance/Editor.

On the right-hand side go to Theme Footer (footer.php).

Copy and paste your wanted code before </body> </html>. You should start inserting the code after this line: wp_footer(); ?>.

Click update file.

Surface Mini DisplayPort to HDMI 2.0 Adapter  
  • Save

Surface Mini DisplayPort to HDMI 2.0 Adapter 

Before </head> section

Go to Appearance/Editor.

On the right-hand side go to Theme Header (header.php)

Copy and paste your wanted code before </head>.

You should start inserting the code after this line: wp_head(); ?>.

Click update file.

That is it. There you have it the code up and running on your website.

Leave your comments and methods for installing codes on your website if you can.

  • Save

Tomas Kazlauskas

A new brand ProductVortex. Focus on quality products, reviews, brands and useful information.

Leave a Reply

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

Share via