• Resolved roxer82

    (@roxer82)


    Hello.
    Is there any way to add code or scripts between parts without editing single.php?
    e.g.: I want to add this code above featured image to show the share buttons:
    <?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) { ADDTOANY_SHARE_SAVE_KIT(); } ?>

    Then, I want to add an ads script below the featured image:

    <amp-ad width="100vw" height="320"
         type="adsense"
         data-ad-client="ca-pub-1111111111111111"
         data-ad-slot="1111111111"
         data-auto-format="rspv"
         data-full-width="">
      <div overflow=""></div>
    </amp-ad>

    And then this script below content:

    <amp-ad width="100vw" height="320"
         type="adsense"
         data-ad-client="ca-pub-1111111111111111"
         data-ad-slot="2222222222"
         data-auto-format="mcrspv"
         data-full-width="">
      <div overflow=""></div>
    </amp-ad>

    Thanks

    • This topic was modified 3 years, 7 months ago by roxer82.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add code and scripts between parts’ is closed to new replies.