How to fix this on main page

Posted in: Newspaper
Post count: 7

Hi, so I managed to create an ad space on the main page post list, adding this code https://prnt.sc/inu4cj on “loop.php”. (the code was provided by “acdmin” on this thread https://forum.tagdiv.com/topic/place-ad-in-main-category-grid/)

Here is how it looks on my website:

https://i.imgur.com/aAs4J4g.png

The ad show correctly but as you can see there is a blank space where there is supposedly to be one post. Could someone help me to fix that please? Thank you.

  • This topic was modified 8 years by icee61.
Post count: 20688

Hi,

Try controlling the number of posts displayed, for the latest articles section is here
https://www.screencast.com/t/mYBQfzuiFKW
https://www.screencast.com/t/5UxKtvSjCo
Maybe the code needs modifying as well, I could not say for sure.

Post count: 7

These screenshots are from a static page with tag div composer right? I’m using the regular index page with sidebar and the template “M5”. I already modified the posts displayed with WordPress settings but it wasn’t the solution sadly :'(

  • This reply was modified 8 years by icee61.
Post count: 20688

I have tried that code, for me it looks like this (set every 4 posts for example)
https://www.screencast.com/t/A5xcJ0my
A bigger ad would be more suited maybe
https://www.screencast.com/t/OYVAGoy8X

Post count: 7

Yes it also looked like the 1st screenshot when I tried with every 4 or 6 posts instead of 3 or 5, but what I want to achieve is that the ad look like one regular post within the list of posts displayed, I have noticed the ads gets way more attention from the users that way..

  • This reply was modified 8 years by icee61.
Post count: 20688

That would not be possible, the module layout is by row
https://www.screencast.com/t/XfiNGmPDZC
The ads with this implementation will be outside the row, not part of the row structure and not treated like modules.

Post count: 7

oh I see. Thanks

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