Tagged: x
-
AuthorPosts
-
November 17, 2016 at 9:06 am #1261081
sguilliardParticipantI have the exact same problem detailed in this, now closed, thread, but none of the solutions work:https://community.theme.co/forums/topic/essential-grid-lightboxpopup-links-wont-work/page/2/
The problem is clearlt demonstrated on this page: http://steppingstones.aardvarky.com/landlords/ – Click ‘Buy To Let’ or ‘Overseas Landlords’ after having previously clicked anythign else on the page to replicate the problem.
The number of ‘extra’ tabs/windows opens seems to correlate directly to the number of ‘clicks’ on the page prior to a link inside a lightbox being clicked.
November 17, 2016 at 9:32 am #1261140
sguilliardParticipantThis reply has been marked as private.November 17, 2016 at 3:58 pm #1261624
Nabeel AModeratorHi There,
Thanks for writing in! I checked your lightbox links and popups are displaying fine but they appear after some delay, to fix this delay issue you can display a loading message with an overlay. To achieve this add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript
jQuery(document).ready(function($){ $('.eg-ajaxclicklistener').click(function(){ var loader = '<div class="loader"></div>'; $('body').append(loader); $(document).ajaxSuccess(function() { if($('.eg-ajax-closer-wrapper').length) { $('.loader').hide(); $('.loader').remove(); } }); }); });Then add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
.loader { position: absolute; width: 100%; height: 100%; top: 0; right: 0; left: 0; bottom: 0; background: #000; z-index: 9999; } .loader:before { position: relative; width: 100%; height: 100%; top: 40%; left: 40%; z-index: 99999; content: 'Please Wait'; font-size: 40px; color: White; text-align: center; } body { position: relative; }Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
November 17, 2016 at 4:16 pm #1261656
sguilliardParticipantThanks, but I think you misunderstand my problem; it’s not the delay with the lightbox opening.
The problem is the hyperlinks inside the lightboxes are opening multiple windows and none of the solutions offered in the other thread I referred to have worked.
November 17, 2016 at 10:02 pm #1262068
Rue NelModeratorHello There,
I am another staff checking on this thread! I went ahead and did some further investigation. I found out that you have inserted an invalid attribute. Please check out this screenshot: http://prntscr.com/d8pne9
And then the other button, you have link it to a pdf file. It would be normal that it will open a new tab because most modern browser will display a pdf file.
Hope this helps.
November 19, 2016 at 9:32 am #1263624
sguilliardParticipantHi, thanks for pointing out the typo.
The problem isn’t that links open in a new window (as you may have spotted from the misstyped ‘target’ attribute, this is exactly what is intended), the problem is that one click opens MULTIPLE windows/tabs.
November 19, 2016 at 8:40 pm #1263975
Rue NelModeratorHello There,
Thanks for the updates! I have tested the page in question again. When I click on the read more, the lightbox opens up. When I click on the read more (within the contents of the lightbox), only one tab is open and it contents the contents of the link of the read more button. Could you please verify and give further clarifications?
Thank you.
November 21, 2016 at 8:35 am #1265448
sguilliardParticipantNo, it definitely opens up more than one tab/window. The more clicks on the page (for example, if clicking on alternative grid boxes such as ‘Overseas Landlords’ and then ‘Buy to Let’) the more tabe/windows will be opened.
November 21, 2016 at 8:53 am #1265477
sguilliardParticipantBy the way, which browser are you using? I have noticed that the ONLY browser where this problem doesn’t occur is Google Chrome (on both PC & Mac). All other browsers exhibit this problem…
November 21, 2016 at 6:02 pm #1266087
RadModeratorHi there,
I checked in all other browsers on my end and I don’t see multiple windows. But does slow displaying the window. Is it the popup or an actual window?
Would you mind providing a video recording? Could it be your browsers are infected by adware or similar? Your grids are configured to display popup and not window, and it’s correctly working on my tests.
Thanks!
November 21, 2016 at 6:20 pm #1266099
sguilliardParticipantOK, this is getting frustrating now…
Please follow these steps…
1. Go to http://steppingstones.aardvarky.com/landlords/
2. From the six grids displayed, select ‘Overseas Landlords’ (click ‘read more’)
3. Inside the ‘lightbox’ (modal window) that pops up, you will see the another button after the text ‘For further information consult HMRC at:’ marked ‘Read more’ – Click this button
4. You will now see that the link in step 3 opens multiple tabs/windows (depending on how your browser is set up to display hyperlinks)
5. Repeat step 2 with the ‘Buy to Let’ gridbox, and the ‘More Info’ button found inside the lighbox that opensIf the above isn’t clear then I’ll screencast a video but I cann;t see how this should be necessary, especially as in my very first post I clearly stated that I was havign the same problem outlined in another post and that the solutions were not working for me (please go back and read the posts properly)
November 21, 2016 at 6:33 pm #1266114
sguilliardParticipantHere’s the screencast…
November 21, 2016 at 6:35 pm #1266117
sguilliardParticipantHere’s the screencast…
November 22, 2016 at 1:23 am #1266502
LelyModeratorHello There,
Thank you for the screencast. Please check this thread:https://community.theme.co/forums/topic/open-new-tabs-from-link-in-ajax-lightbox-on-essential-grid/#post-1134592
November 23, 2016 at 8:38 am #1268234
sguilliardParticipantOk, the problem isn’t with being able to open hyperlinks from within the lightbox (as you can see from the screencast, this already happens). The problem is with trying to prevent multiple windows being opened.
This thread here offered a solution to this (which seemed to work for the original posted) which doesn’t seem to work: https://community.theme.co/forums/topic/essential-grid-lightboxpopup-links-wont-work/page/2/
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1261081 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
