Inquiry About Adding Code to Header and Footer in Newspaper Theme

Posted in: Newspaper
Post count: 59

I am using the Newspaper theme and need to add custom code to the header and footer sections. Currently, I add the code directly in the header.php file using the Theme File Editor, but I’ve noticed that it gets removed whenever the theme updates.

Is there an option within the Newspaper theme to add custom code to the header and footer without losing it during updates? If so, could you please guide me on the best way to implement this?

Post count: 27744

Hello,

Please let me know what is used in that code. You can add the code here https://i.imgur.com/UhnujHs.png

Thank you!

Post count: 59

Thank you for your response.

The code I want to add in the header is for the favicon.
Example

<link rel="icon" type="image/png" sizes="32x32" href="https://yourwebsite.com/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://yourwebsite.com/favicon-16x16.png">
<link rel="apple-touch-icon" href="https://yourwebsite.com/apple-touch-icon.png">
<meta name="theme-color" content="#ffffff">

And I have already pasted my Google Analytics code in the theme panel header section as shown in the link you provided: https://i.imgur.com/UhnujHs.png.

Post count: 27744

Hello,

You can also add this code there because it needs to be added in the head section.You can to add the favicon, in Theme Panel -> Header -> Logo and Favicon => https://www.screencast.com/t/H4ucPC2wwz
Also, on the homepage there’s an option Customize icon => https://www.screencast.com/t/I2uVvP4b -> Site identity -> Site icon -> Change image -> publish => https://www.screencast.com/t/lY9WEOZEj also, here https://i.imgur.com/s3kT6q8.png

Thank you!

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