Ad Size not being Applied
Home › Forums › AdRotate for WordPress › Adverts and Banners › Ad Size not being Applied
- This topic has 12 replies, 2 voices, and was last updated 1 year, 2 months ago by
Arnan de Gans.
- January 10, 2022 at 2:05 pm #147110
WellWellBadges:Hello…
I have configured a group as 1 row 3 columns.
Mode is set to Block Mode
Advert size is set to 300×300The 300×300 aspect is NOT being applied to the adverts inside the group. The only way I can get these adverts to assume the size i want them to be is to add width and height attributes to the HTML code of the advert itself which adds complexity to this for my client.
Am I missing something here? What do I need to configure to make this work properly. The ads are overflowing into the next row
Thank You
January 10, 2022 at 2:09 pm #147112
WellWellBadges:I have applied the size of 300×300 to the ad code html height and width attribute for now. Please see the page here
January 10, 2022 at 4:32 pm #147126
Arnan de GansBadges:As far as I can see all your groups are set to a maximum width and height of 500px.
CSS for the group is regenerated when you save the group. You can spot this in your websites
<head>
tag if you inspect the site in your browser.
If the CSS there does not match your settings in the dashboard, see if you’re using some kind of caching that hinders things.January 11, 2022 at 9:18 am #147194
WellWellBadges:I’m not really sure where thats coming from. The group is specifically configured to be 300×300. Please see attached
January 11, 2022 at 5:38 pm #147214
Arnan de GansBadges:Right, but then the logical conclusion is that some cache is hindering things…
AdRotate has support for Borlabs Cache and W3 Total Cache.
Check out this manual to see how to set up the plugins for that to work; https://ajdg.solutions/support/adrotate-manuals/caching-support/
Personally I prefer Borlabs cache (https://borlabs.io) as it’s much easier to set up.January 11, 2022 at 11:51 pm #147218
WellWellBadges:Arnan…I dont believe this is related to caching. There is a problem with how AdRotate is displaying this specific group. Please see the attached screen captures. Ive pasted a copy of the CSS thats in the head of my page html and have highlighted in red the code being used for this group (g22). I have also attached a copy of the group configuration showing that the size is set to block with a max width of 300×300 for each advert.
The lines above that show 500×500 are dynamic groups. The one Im having problems with is a block…a single row with 3 columns sized at max 300×300 and an total row width of 960px for which 3 blocks of 300×300 should all appear on the same line. The adverts are not being resized t fit this specification
can you please help me understand whats happening here. Everything in the code reflects that I should be seeing what I expect to see. There’s nothing cached thats causing this to not display properly. The plugin is not sizing my adverts to 300×300 when placing them in the block
Thanks
January 12, 2022 at 3:16 pm #147288
Arnan de GansBadges:Hello,
Ah yes, group 22. I took another look. And it looks fine to me. banners of 300x300px.
See: https://disk.stor.fit/index.php/s/NiPgoRdZFe36xTMHowever, the original banner images are much larger. The Mavi Brand image is 2560x2560px.
See: https://disk.stor.fit/index.php/s/BaoWyLAdwQoziFBThis is of-course way too large and a waste of bandwidth. Resizing the image size to 300x300px should help with the issue if not resolve it.
Other than that I see nothing wrong with the group.
January 12, 2022 at 3:39 pm #147291
Arnan de GansBadges:Moved to ‘Adverts and Banners’.
January 12, 2022 at 8:35 pm #147295
WellWellBadges:Hi Arnan…sorry to be a bother. I have sized these adverts using html parameters in the advert code so that they fit the layout. But this is my point. In order for them to work I need to specifically assign them a size and that effects how they display in other areas of the website where, for exaple I have dynamic blocks that are 500×500. In that case the advert uses the assigned 300×300 and is too small for the box. Shouldnt the plugin be sizing these to the specified size
If I pass you my logon info can you please take a look. You will see that in the Advert code for these specific ads, I have done a height / width parameter that sets them to 300×300
January 13, 2022 at 1:21 am #147298
Arnan de GansBadges:I know you did, I saw that. And it works fine.
I really don’t see what the problem is other than that your banner images are ridiculously large at 2560x2560px.
Clearly the size IS being applied as shown.January 13, 2022 at 9:40 am #147345
WellWellBadges:Why is the plugin not sizing these images for me at 300×300? Why do I need to do it manually through the Advert code? Why isn’t the max size of 300×300 being applied to images that are larger. i need them larger for other areas of the site. Not 2500 large but I need them to fluctuate between 300 and 500 depending on where they are placed? Is there a solution to this or. not? Is the plugin going to size the adverts to the size i specify for the group?
January 13, 2022 at 9:42 am #147346
WellWellBadges:The advert group has an area that allows me to specify what size I want each advert sized to. If I do this in the advert code it shrinks the advert to this size for EVERY group that I put these adverts n regardless of if the group is et to display them at 500x500x 1000×1000 or 300×300. If i do it through the Advert code…it’s 300×300 everywhere I plug in the advert on the site
January 13, 2022 at 2:59 pm #147379
Arnan de GansBadges:AdRotate is not an image editor – If you want images to actually resize you have to do that yourself. Either via the WordPress Media Manager or on your computer.
Obviously setting 2 attributes or configuring a group size in HTML won’t resize an image other than make it appear that size. And why would you want to, if you’re using those images in different sizes elsewhere?
The topic ‘Ad Size not being Applied’ is closed to new replies.