How to add script to a Joomla webpage Topic is solved

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
no_vice
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Tue Oct 14, 2014 12:23 pm

How to add script to a Joomla webpage

Post by no_vice » Fri Feb 14, 2020 5:34 am

Hi! My SEO consultant has given me a "script" and he wants me to add that script to the header section of my webpage.

What is a simple way to accomplish this, assuming that I am not a very technical person (though I do know how to navigate the Joomla CMS interface).

Thanks in advance.

 
User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26424
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: How to add script to a Joomla webpage

Post by Per Yngve Berg » Fri Feb 14, 2020 7:35 am

Add it to the head section of your template's index.php file.

no_vice
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Tue Oct 14, 2014 12:23 pm

Re: How to add script to a Joomla webpage

Post by no_vice » Fri Feb 14, 2020 8:43 am

Per Yngve Berg wrote:
Fri Feb 14, 2020 7:35 am
Add it to the head section of your template's index.php file.
Hi! Since I am not a very technical person, I am not very upbeat about directly changing the files.

Also, note that every page on my website has a different code that needs to be inserted in the header section of that corresponding page.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 38009
Joined: Sat Apr 05, 2008 9:58 pm

Re: How to add script to a Joomla webpage

Post by Webdongle » Fri Feb 14, 2020 9:47 am

Insert any JavaScript/CSS/Any tag into the document head based on ItemID (menu item) or by using the content plugin tag options.
https://extensions.joomla.org/extension/headtag/
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

no_vice
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Tue Oct 14, 2014 12:23 pm

Re: How to add script to a Joomla webpage

Post by no_vice » Fri Feb 14, 2020 11:45 am

Webdongle wrote:
Fri Feb 14, 2020 9:47 am
Insert any JavaScript/CSS/Any tag into the document head based on ItemID (menu item) or by using the content plugin tag options.
https://extensions.joomla.org/extension/headtag/
Thanks, this seems to be very appropriate for my purpose.

 

Post Reply

Return to “General Questions/New to Joomla! 3.x”