Google Adsense Search in Main Navigation

I am trying to add my google adsense navigation to the main navigation bar on my site. When I copy header.php into the child theme folder, it breaks the site (see brokenheader1.png)

I'm not sure what's happening on line 11 of my header.php file that is causing this (see php11.png)

  • Predrag Dubajic

    Hey @technodiva,

    Hope you're doing well today :slight_smile:

    Since your header.php file is now in child theme (different folder) and the function on line 11 is looking for the options.php file in child theme but the file is located in your parent theme.
    You can try replacing line 11 in your child header.php with this and see if that fixes the issue:
    <?php include( get_template_directory() . 'options.php'); ?>

    Let me know if you need more help with this.

    Best regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.