M
M
mipfikus2020-05-22 13:02:55
WordPress
mipfikus, 2020-05-22 13:02:55

How to add code to HEAD?

I want to get rid of the plugin that adds custom code to the HEAD tag.

How to add your own code between the head tags, without third-party plugins?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pavel Ataykin, 2020-05-22
@mipfikus

For example, you can fill in the head tag in header.php there. You can also use the wp_head
hook PS Depends on what you want to get :)

D
Dima Polos, 2020-05-22
@dimovich85

Subscribing to the wp_head Hook

W
WP Panda, 2020-05-22
@wppanda5

In this case, it’s better to use plugins, they just hang on wp_head, and it’s more convenient than poking around in the code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question