How to insert Custom Code into header?

Posted in: Newspaper
Post count: 11

Hi

I am using Newspaper to market content and i need to insert fb pixel code and other custom tracking codes into the head of specific Posts.

What is the most clever and practical way to do this with Newspaper?

Thank You
Corrado Izzo

Post count: 23312

Hello Corrado,

In order to achieve as you wish, please consult this documentation about Facebook Pixel Code and try to implement in our website. The generated code will be put in header.php like this -> http://screencast.com/t/zBC3jFwj If you need more assistance in this regard or if you are not aware the steps in this regard, please consider hiring a freelancer with a high experience in this domain because we cannot provide custom services at the moment, sorry!

Thank you for the message!

Post count: 53

Header footer Scripts
I have installed Plugin and even i can inject css add add custom codes
you can try
im using it on Owl Reporter

Post count: 11

Catalin you are not answering my question and you are not providing a solution.

1.: You obviously did not read my support request as i asked how i could add custom code into the header of specific posts and pages.

2.: I asked for a clever way to do this – hiring a freelancer is something i know i can do – suggesting this is not providing a solution.

Niresh thank you for your suggestion i have used this plugin yes but my issue is rooted in the fact that Newspaper obviously was not designed with Content marketing in mind.

I need to be able to insert facebook pixels and remarketing pixels on specific posts and pages.

Do uou know of a clever way to do this?

Post count: 23312

Hello Corrado,

Unfortunately, our theme does not have such an option for your Facebook Pixel Code. Please keep in mind that thing is not theme related and I cannot provide you a “solution” in this case because we cannot provide custom services at the moment, sorry! All I can do in this case is to guide you in the right direction and I cannot implement this feature for you, sorry!
If you want to display more levels in our theme and you are not aware the steps in this regard, please consider hiring a freelancer/developer to do this for you because we cannot provide custom work. We recommend hiring a developer to help out from sites like studio.envato.com

Thank you for your understanding!

Have a nice day!

Post count: 11

Still you ate not answering my question and like a machine you tell me things i already know and don’t need to know from you.

Let’s try in a different way

Which php file do i need to edit if i want to insert custom code into the head section of a specific post?

Which php file do i need to edit if i want to insert custom code into the head section of a specific page?

Indicate me please with precision the process and files i need to edit.

All the best
Corrado Izzo

Post count: 23312

Hello Corrado,

First of all, thank you for your message.

As I said you above, the header.php is the single file where is created our theme header. This file calls the header both on pages and on posts and if you want to add the HTML tag you must insert between the head tag … as you can see in our backend here -> http://screencast.com/t/vnEFAqG8eKbT and for each template file the header will be called with get_header() function. As you can see here, the loop single(1,2,3,…) and single template(1,2,3…) files are used to create the content for posts and page.php, page-pagebuilder-latest.php, page-pagebuilder-title.php to create the content for pages and will call the same header, like this -> http://screencast.com/t/JwrY6oDHPQ -> http://screencast.com/t/WgWD3rL2ZX Also, if you want to do some changes in header style, you have to change this kind of files, according to header style used by you -> http://screencast.com/t/CiSOLjAPHq

I hope that I have managed to answer for all your queries related to this topic.

Thank you for your understanding!

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.