Skip Navigation

[Resolved] Load More button and geolocation doesn't work on mobile

This support ticket is created 5 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by Alessandro 5 years, 1 month ago.

Author
Posts
#1337535
Schermata 2019-09-11 alle 11.06.41.png

I have 2 issues

1)

I have included in a view a load more button with an infinite scroll. It works perfectly on chrome for desktop, and also resizing the browser. But when on mobile devices it doesn't work
This is the code i used:

[wpv-layout-start]
	[wpv-items-found]
[wpv-geolocation message_when_missing="Per visualizzare gli Aperitivi più vicino a te consenti di conoscere la tua posizione.  <i class="fas fa-spinner fa-pulse"></i>
"]<h3>Aperitivi vicino a te</h3>	<!-- wpv-loop-start -->
	<wpv-loop wrap="3" pad="true">
		[wpv-item index=1]
		<div class="row">
			<div class="col-sm-4">[wpv-post-body view_template="elemento-del-ciclo-in-locali-homepage"]</div>
		[wpv-item index=2]
			<div class="col-sm-4">[wpv-post-body view_template="elemento-del-ciclo-in-locali-homepage"]</div>
		[wpv-item index=3]
			<div class="col-sm-4">[wpv-post-body view_template="elemento-del-ciclo-in-locali-homepage"]</div>
		</div>
		[wpv-item index=pad]
			<div class="col-sm-4"></div>
		[wpv-item index=pad-last]
			<div class="col-sm-4"></div>
		</div>
	</wpv-loop>
	<!-- wpv-loop-end -->
[/wpv-geolocation]
    [/wpv-items-found]
<ul class="pagination">
	<li class="page-item">
  	[wpv-pager-next-page force="true"][wpml-string context="wpv-views"]Carica Altri ...[/wpml-string][/wpv-pager-next-page]

</ul>
[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]Nessun Aperitivo Trovato[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

2)
When on mobile the browser do no more ask me for geolocation and coordinates remain the same also if go at the opposite part of the city

#1337689

My issue is resolved now. Thank you!