Was trying to set ads 337x246

Hi i was trying to set ads in posts/pages = 337x246 in my blog https://www.sansarlochan.in/

Just like this > https://mrunal.org/2019/07/upsc-model-ans-gsm3-protectionism.html

But I am unable to do this. Anybody can help me?

Hello Sansar,

Please check the suggestions from this tutorial:

Hope this helps.

Hi Jade

I know how to put ads. But I was asking about that particular place in the theme. I have attached file for better explanation.

Hello Sansar,

I have checked your post and it looks like you already have the ads in the post content area but they are not showing up:

The ads that you are using are Javascript depends and there is a Javascript error on the site which might be stopping the ad from showing up:

It is from these codes that you have added to the Global JS:

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-57571087-2"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-57571087-2');
</script>

Please note that you cannot have another script tag inside the Global JS as that will trigger a Javascript error since the Global JS area is wrapped in a script tag already.

Kindly have the JS issue fixed and the ads should show up on the post page.

Please check this link on how to check for JS errors:

https://codex.wordpress.org/Using_Javascript

Once the ad shows up, you can simply align the ad block to the right using custom CSS.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.