Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2946275
Insert Adsense ads in the middle of an article's photo collection?
Closed

Comments

  • vutruongdat started the conversation

    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!

  •  2,612
    PenciDesign replied

    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 replied

    Hi,

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

  •  2,612
    PenciDesign replied

    Hi,

    Please config similar to the screenshot below:

    image.png

    Regards,
    PenciDesign.


  • vutruongdat replied

    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!

  •  2,612
    PenciDesign replied

    Hi,

    If you want to show the ads one time only, please change the HTML selector to:

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

    You should read the detail document here: https://adinserter.pro/documentation/html-element-selection

    Regards,
    PenciDesign.

  • vutruongdat replied

    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!