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/
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.
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:
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!
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.
Hi,
A snapshot of the ad settings area is shown below. Please help!
Hi,
Please config similar to the screenshot below:
Regards,
PenciDesign.
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!
Hi,
If you want to show the ads one time only, please change the HTML selector to:
You should read the detail document here: https://adinserter.pro/documentation/html-element-selection
Regards,
PenciDesign.
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!