• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Header Script – Magazine Pro Theme: Unable to see some code in the source code

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Header Script – Magazine Pro Theme: Unable to see some code in the source code

This topic is: not resolved

Tagged: genesis, header scripts, Magazine Pro

  • This topic has 3 replies, 2 voices, and was last updated 3 years, 3 months ago by Anita.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 31, 2019 at 1:42 am #494339
    rajkumarsm
    Member

    Hi Everyone,

    Recently, I have added Taboola code in the Header Script and I am unable to find it in the source code. Actually, If I am on wp-admin and access my site, I am able to see the code but the same I am unable to see using other systems or my own system using incognito.

    Part of the code I am not able to see is here

    <script src="https://apis.google.com/js/platform.js" async defer></script>

    <script>
      (adsbygoogle = window.adsbygoogle || []).push({
        google_ad_client: "ca-pub-xxxxxxxxxxxxxx",
        enable_page_level_ads: true
      });
    </script>
    <script type="text/javascript">
      window._taboola = window._taboola || [];
      _taboola.push({article:'auto'});
      !function (e, f, u, i) {
        if (!document.getElementById(i)){
          e.async = 1;
          e.src = u;
          e.id = i;
          f.parentNode.insertBefore(e, f);
        }
      }(document.createElement('script'),
      document.getElementsByTagName('script')[0],
      '//cdn.taboola.com/libtrc/xxxxxxxxxxx/loader.js',
      'tb_loader_script');
      if(window.performance && typeof window.performance.mark == 'function')
        {window.performance.mark('tbl_ic');}
    </script>

    Please help me out.

    Thanks in advance.

    https://www.softwaretestingmaterial.com/
    October 31, 2019 at 5:49 am #494345
    Anita
    Keymaster

    I see the Taboola code - https://pasteboard.co/IEvRx4q.png.

    If you think your scripts are not being rendered by adding them to the Genesis Header Scripts box, install this plugin and move your code - https://wordpress.org/plugins/header-and-footer-scripts/. If it's not working as expected at that point, switch to the default WordPress theme and check there.


    Love coffee, chocolate and my Bella!

    October 31, 2019 at 6:26 am #494346
    rajkumarsm
    Member

    Hi, thanks for your kind response. Actually that's the code available between body tags. The code missing is from head tags. I will try the plugin which you have recommended.

    I have one question, we are using other plugins like Genesis Simple Hook & Ad Inserter. Is it possible to use any one of them to add Header Scripts instead of adding a new plugin?

    Thanks in advance.

    October 31, 2019 at 11:56 am #494353
    Anita
    Keymaster

    Yes, you could use either one.


    Love coffee, chocolate and my Bella!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble