Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter unnamed

    (@yazarmfa)

    I’m sorry I did not understand.
    How can I add the following code every three paragraphs.
    I want to automatically add it to the posts on my pages.

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

    I want to add this code after paragraph 3, paragraph 6, paragraph 9, paragraph 12. 15. 18. 21…

    • This reply was modified 4 years, 2 months ago by unnamed.
    Thread Starter unnamed

    (@yazarmfa)

    I don’t want to use a plugin? Is there any code for this?

    The sample code below adds a “noindex” tag to search pages. I’m looking for something like this.

    add_action('wp_head', 'mysite_header_additions'); 
    function mysite_header_additions($content) 
    { 
    	if (is_search()) {  
    		echo '<meta name="robots" content="noindex, follow">'; 
        } 
    } 
    Thread Starter unnamed

    (@yazarmfa)

    No. I dont use.

Viewing 3 replies - 16 through 18 (of 18 total)