Exclude specific Script or JS on Home Page

Posted in: Newspaper
Post count: 45

Dear Team,

For displaying adx ads I have added specific script on Google Analytics session with “HEADER SCRIPT CODE” session.
However I wouldn’t want this set code to be executed on my Homepage.
Is there any way to exclude the same.

Hope this will improve my home page load time.

Awaiting response.

Regards,
Jubel

Post count: 35449

Hi,

Unfortunately or theme do not have any option to do that, but you can edit the header file and set there a condition -> https://www.screencast.com/t/HjpZnf0qSBp also if you do this in a child theme your changes will remain after theme update.
The path is this -> wp-content/themes/Newspaper/header.php

Thank you for your understanding.

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