Inline ad left/right floatign not working

Posted in: Newsmag
Post count: 2

Hello,

I have set up inline ads from the theme panel -> ADS section.

I have two issues, that might be related.

First: When adding the google ad code, and setting up all options for the inline ad (paragraph, size, etc), after clicking on “Save” button the spinner would go forever and options will not be saved. I fixed this by removing the “<script>” tags, as I assumed that the scripts are being loaded already for header ad. After this, the ad could be saved successfully and displayed properly on articles.

Second: I could not solve this. When I attempt to change all sizes (for example 200×200 instead of Auto) and set the ad position to left or right floated, the ad stops working. Sometimes it is not displayed anymore, sometimes it keeps displaying with full-width as before.

I could not find a way to make it work. The code for the ad still remains as the <ins> part, but without <script> tags.

Any known issues about this? I am attaching an image of how the ad panel looks:

Inlie ad panel

Thanks in advance!

Post count: 6535

Hi

First: The settings are saved when you make other modifications in theme panel? For example if you change a color or a font those settings are saved? You don’t have to make any changes in ad’s code as the theme will save it in its original form.
Try to deactivate all plugin except Visual Composer, clear all caches, purge cdn file if your using then test the site again. Also check if in browser’s console appear some errors related whit the theme while you’re saving the settings. Usually there should be a 403 or 404 error.

Second: Because you removed the first line from the ad-code the theme does not recognize it as ad-sense code and that’s why those options are not applied. Ad size can be changed only for ad-sense ads and because the theme render your code as a different ad the options are not applied.
Let us know how it goes and if the problem persist please send us an email at contact@tagdiv.com with your login credentials and we will inspect this issue as soon as possible, also include a link to this topic.

Thanks!

Post count: 2

Hi,

Thanks for the quick answer. Good to know the size changes wont take effect if I dont add the <script> tags, so I should make that work I guess.

I just checked and changing other theme settings from the panel worked fine, even adding the Header ad works perfect (with all the tags).

I also checked the chrome console and there is a 403 error, it comes when I hit “save” when using all tags for the inline ad. If I reload the page the ad is not saved, it remains as before.

Console 403 error

Post count: 6535

Hi

It seems that the server blocks the access to admin-ajax,php file. In some cases the server security module blocks the access to admin-ajax.php file. When this it’s requested many times it’s treated as threat so it’s banned. Contact your host provider and let him know about this as he may be able to provide more detail in this regard. You can report false positives to your server administrator to remove it from the banned list.

Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.