How to Add Code to Head Tag in WordPress (JS, JavaScript, CSS)

How to Add Code to Head Tag in WordPress (JS, JavaScript, CSS)

TwP - Helping Creators with Tech

2 года назад

24,475 Просмотров

I’ll show you how to add code to the head tag in WordPress. I’ll show two ways to add code to the header. There is a lot of software that asks you to add some JavaScript (JS) or CSS there, like Google Analytics, Tag Manager, or your email marketing software.

There are two methods of achieving this and both are easy to do even for non-coders.

---------------------------------------------------------------------------------------------------------

🔗 LINKS MENTIONED: mentioned in this video:

Speed up your WordPress: https://youtu.be/d_Kp731z01A
Free images & illustrations for the website: https://youtu.be/QvgDr50a_yk
Best logo maker: https://youtu.be/HMKC27vo5FA


---------------------------------------------------------------------------------------------------------
🛠️ What I use on my website:

Hosting I'm using: https://punchsalad.com/hostpapa/ (60% discount)
Where I get my domains: https://punchsalad.com/namecheap-domain/
Email tool I use: https://punchsalad.com/lp/mailerlite/
WP plugins I'm using: https://punchsalad.com/recommendations?utm_campaign=wpCodeInHead&utm_medium=social&utm_source=youtube

*Some of the above links might be affiliate links.

Тэги:

#how_to_add_code_to_head #how_to_add_code_to_head_tag #how_to_add_code_to_head_tag_in_wordpress #wordpress_add_code_to_head #wordpress_add_code_to_header #how_to_add_js_to_head_tag #how_to_add_javascript_to_head_tag #wordpress_head_tag #add_script_to_head_in_wordpress #digital_marketing #twp #tipswithpunch
Ссылки и html тэги не поддерживаются


Комментарии:

@MarketingForTC
@MarketingForTC - 28.05.2023 00:38

Not sure if this been shared, but it seems about 3 weeks ago they updated the name of the plug in, but I confirm in the details that it was the same one you shared. Now it's called "WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager" by Webhead LLC.

Ответить
@alessiasp
@alessiasp - 19.01.2024 10:42

Thank you for the explanation. Would a the Rank Math and Yoast SEO plugin be safe to add a tag without a child theme? Or is it better to use the plugin you recommended? I need to do it for Pinterest verification.

Ответить
@mjasterita
@mjasterita - 26.12.2023 23:18

Does anyone teach how to do things without using a plugin?

Ответить
@samanthasheppard4378
@samanthasheppard4378 - 15.11.2023 09:38

Perfect! Just what I needed! Thank you!

Ответить
@iyansopian41
@iyansopian41 - 29.09.2023 03:06

thanks a lot for your tutorial, very helpful... god bless you.

Ответить
@ALLTIMELEARNING
@ALLTIMELEARNING - 29.06.2023 12:49

thanks sir

Ответить
@handmadebymalika
@handmadebymalika - 10.05.2023 10:52

Thanks for the helpful tutorial and clear instructions! After struggling with other tutorials, yours finally helped me. Thank youu!

Ответить
@kittanatepetwaikun2318
@kittanatepetwaikun2318 - 27.04.2023 20:44

Awesome, thank you

Ответить
@TopGlazeRoofingSystems
@TopGlazeRoofingSystems - 14.02.2023 04:56

Attempted both to no avail. I'm trying to verify my workplace's website on Pinterest, but so far, nothing has worked. When I copy the meta data and paste it into the relevant places, I go back to Pinterest to verify the URL of the website and it comes up with "no meta data tag was found." What am I doing wrong?

Ответить
@ramoroso
@ramoroso - 24.01.2023 10:45

Excellent! Top! Merci!
How to Find Source Code in WordPress? Thank you!!!
🙂

Ответить
@joshcoast6534
@joshcoast6534 - 04.01.2023 19:11

Any advice on WordPress 6? It no longer has a header.php.

Ответить
@ijayraj
@ijayraj - 19.10.2022 13:02

It helps me a lot

Ответить
@cedricd7110
@cedricd7110 - 08.07.2022 13:13

Thank you so much, friend. All other tutorials take 45 mins to explain what you did in 2 mins. Bravo.

Ответить
@hamzanajam7523
@hamzanajam7523 - 30.05.2022 13:24

Hi,
off topic question. I want to create a website where user can come and create there own resume. any plugin suggestion?

Ответить