How to edit header.php?

Posted in: Newspaper
Post count: 30

I want to add adsense javascript between <head></head>, when I edit header.php in wp-content/themes/Newspaper/header.php and put the code before </head> nothing appear on the website. How to add javascript to the header?

Post count: 30


i need to paste javascript before </head> line, I don’t want to use any of Newspaper theme panel ads option.

Post count: 21065

Hello @johnsnow!

The code should be placed in the Theme Panel -> Analytics/Js Codes. This is the best option for this. 
Any changes you make in the theme files after each update will be overwritten, and you will have to make the changes again and again.

Thank you!

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