Home › Forums › Calendar Products › Events Calendar PRO › Embed Ads in Photo View?
- This topic has 11 replies, 2 voices, and was last updated 6 years, 3 months ago by venthi76.
-
AuthorPosts
-
January 11, 2018 at 9:44 pm #1424347venthi76Participant
Hi,
I need to embed add after post no 3 in photo view and it continues with subsequent events in photo view. Which means:
3 events per row in photo view
MY ADS
subsequent 3 events per row in photo viewI manage to modify the template for loop to include ADS after 3 events as needed. Just that cant figure out how to display the ads in between first and second row. More details in private reply.
January 11, 2018 at 9:47 pm #1424348venthi76ParticipantJanuary 12, 2018 at 5:28 pm #1425335VictorKeymasterHi Thirukumary!
Thanks for reaching out to us! Let me try to help you with that.
First, please let me note that we are fairly limited in how much support we can give for custom development questions like that. But, we always like helping out and at least point users into the right direction as much possible.
I think this is a bit tricky as the photo view layout is created using Isotope. So, I guess you will need to tweak the image html structure, add appropriate classes and probably some css to achieve what you are looking for.
I will reach out to the team to see if they can offer some more insight on this and will get back to you as soon as I have something.
Thanks,
VictorJanuary 14, 2018 at 5:18 pm #1426155venthi76ParticipantNoted and looking forward for your reply.
January 15, 2018 at 3:04 pm #1426986VictorKeymasterHi Thirukumary!
Thanks for your patience.
I have been able to achieve what you are looking for by adding the proper class to the code you are already using.
Try adding the ‘tribe-events-photo-event’ class to the div element you are echoing in the loop, like this:
<div class="tribe-events-photo-event photo-view-ad" style="width: 100%;">
<img src="http://via.placeholder.com/600x200">
</div>This will get “picked up” by Isotope and taken as an element in the grid. You will likely need additional styles to make things look good.
I hope that helps! Let me know if you have follow up questions.
Best,
VictorJanuary 20, 2018 at 5:24 pm #1431598venthi76ParticipantHi Victor,
That’s indeed solved the issue and the ads can be displayed as intended. Just one issue, when viewing on mobile, the ads seems overlap on top of some of the events.
Please checkout my next private reply on one of the sample link and view it on mobile please.
Thanks.
January 20, 2018 at 5:27 pm #1431599venthi76ParticipantThis reply is private.
January 22, 2018 at 5:33 am #1432237VictorKeymasterHi There!
Try adding the type-tribe_events class to the div container as well. That worked out for me.
Let me know if that helps.
Best,
VictorJanuary 22, 2018 at 6:14 pm #1433095venthi76ParticipantGreat, that works for me too. Thanks Victor.
January 22, 2018 at 6:37 pm #1433116venthi76ParticipantI guess this thread can be closed now. 🙂
January 22, 2018 at 6:49 pm #1433123VictorKeymasterGreat to hear that! 🙂
Thanks for following up to let me know about it.
I’ll close this now, but feel free to reach us out any time if anything comes up.
Cheers,
Victor -
AuthorPosts
- The topic ‘Embed Ads in Photo View?’ is closed to new replies.