Skip to content
Public Ticket #19257

Insert Adsense ads in the middle of an article's photo collection?

Conversation thread

vutruongdat replied

Customer Reply

Thanks for your guidance,

I did it. A great day!

I used my code like below for the 2 display locations in the photo gallery. I would like to write it here so that someone (who has the same situation as me) can refer:

.post-entry .gallery > .gallery-item:nth-child(7)

AND:

.post-entry .gallery > .gallery-item:nth-child(13)

Now I'm happy that I don't have to replace Soledad with another topic. Soledad is really a great theme.

Sincerely thank you!

vutruongdat replied

Customer Reply

Thank you for your help,

I did it the way you instructed. I see, an ad unit showing multiple times in the photo gallery. And it messed up the photo columns in the post's gallery!

Please teach me,

Is there a way for an ad unit to show only at a location that I want to specify in the photo gallery?

I want to control the performance of each ad unit.

Thank you very much!

PenciDesign Supporter replied

Staff Reply

Hi,

Please config similar to the screenshot below:

image.png

Regards,
PenciDesign.


vutruongdat replied

Customer Reply

Hi,

A snapshot of the ad settings area is shown below. Please help!

PenciDesign Supporter replied

Staff Reply

Hi,

Maybe you've inserted the ad code incorrectly. Please send me a screenshot of the ad settings, I'll check and send you a quick solution.

Regards,
PenciDesign.


vutruongdat started the conversation

Conversation Start

Tell me how can I insert Adsense ads in the middle of a post's photo gallery?

My status is like this:
- I was trying to use "Ad Inserter" plugin to be able to add Adsense code in the middle of my photo collection.

As a result: the ad shows too small on mobile (only 50% - corresponding to the width of the column)
You can check it out (in mobile screen) here:
  https://haycafe.vn/hinh-nen-dien-thoai/

And what I want is the result of inserting the ad into the photo gallery when viewed on mobile like this URL:
https://thuthuatnhanh.com/hinh-nen-dep-nhat-cho-dien-thoai-android-iphone/

Please help, I really don't want to have to replace the Soledad theme with another one!

Thank you very much!

Want to join this conversation or access attachments? Sign in first.