Header gone, mobile version of theme disabled

Posted in: Newspaper
Post count: 2

I had 2 Google Analytics plugins installed and activated, but made the mistake of adding the Google Analytics code to the header.php file in the child theme. Currently the 2 plugins (Google Analytics Dashboard for WP (GADWP), and Google Analytics for WordPress by MonsterInsights) are disabled, and the code is removed from header.php. The problem is, the header is missing (top bar and main menu) and the mobile view of the theme is also not working.

Problem 1. Header is missing:
https://www.screencast.com/t/H8ll7JAhORY

Problem 2. Only desktop version of site is accessible on mobile view:
https://www.screencast.com/t/GNBmyrrFa

This is a screenshot of the original mobile view:
https://www.screencast.com/t/TgSsqYLXpu2

Post count: 20688

Hi,

So once you added that code the header is gone, is the issue solved if you remove it? Something is damaged in the header file of the theme, including the viewport.
There is a theme panel section created specially for the analytics code, no need to edit the theme header file
https://www.screencast.com/t/w3m1oXowbv
If the problem is solved by removing that code or disabling the child theme, then the problem is there. Check if the code entered is added properly with script tags and that no other code is modified in the theme header file.

Thanks

Post count: 2

Thank you, that solved it.

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