hi,How to insert google adsense's JS code between head?

Posted in: Newspaper
Post count: 26

Hello, I applied google adsense, Google let me insert this code between the head tag:https://i.loli.net/2018/01/24/5a68aabe90f97.png

But after I add code in the background JS it is not in the head tag, and the background can not manually enter the script tag, so I added looks like the wrong:https://i.loli.net/2018/01/24/5a68abcb04f6b.png

Please tell me the correct way to add, thank you!

Post count: 22421

Hello,

The head tag is found in header.php here: https://www.screencast.com/t/2noeCTl9Z That is where the code should be implemented.

Thank you!

Post count: 29

Hello there,

I do not see the site when I want to put <head> code </ head> in my header.php file. Google adsense verification etc. where do we put the codes

I look forward to hearing from you

Thank you

Post count: 20688

Hi,

@kulecanbazi The head tags are located as mentioned above, in the header.php file (this file in is the main theme folder)
https://www.screencast.com/t/fsI6vTdNC
Insert the code before the closing head tag. Use either the default theme editor in WordPress, or FTP to edit the header file
https://www.screencast.com/t/TmWRHsH8

Thanks

Post count: 29

Your PHP code changes have been rolled back to line 21 in the wp-content / themes / Newspaper / includes / wp_booster / td_js_buffer.php file. Please correct and try recording again.

Wp-content / themes / Newspaper / includes / wp_booster / add_to_header ()). In this case, td_js_buffer.php: 21
Stack trace:
# 0 wp-content / themes / Newspaper / includes / wp_booster / td_js_generator.php (184): td_js_buffer :: add_to_header (‘\ n \ n \ t var …’)
# 1 [internal function]: td_js_generator (”)
# 2 wp-includes / class-wp-hook.php (286): call_user_func_array (‘td_js_generator’, Array)
# 3 wp-includes / class-wp-hook.php (310): WP_Hook-> apply_filters (”, Array)
# 4 wp-includes / plugin.php (453): WP_Hook-> do_action (Array)
# 5 wp-includes / general-template.php (2614): do_action (‘wp_head’)
# 6 w

Post count: 20688

If you have a problem using the theme, provide all the details and we will investigate.

Post count: 29
Post count: 20688

I have inspected the website, everything is looking good, I see no problem with it. I checked category pages, post pages etc.

Post count: 29

thank you. I can not code the lakin header.php section. When I place code like Google verification, keywords, and #googleads, it becomes a white page. I am warned that I have shared with you.

again when I put the original header.php page.

I have the latest version 8.7.1 installed.

I’m waiting for your answer

cheerfully

Post count: 29

I sent you emails contact@tagdiv.com

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.