Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Unexpected Actions Menu Behavior with Reboot on Mobile
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 16, 2016 - 1:23 pm

Not vacation...! Working all week. Back in school 

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 20, 2016 - 6:52 am

I seem to have an extra problem Jim. Using the theme as you sent me - I don't get the actions or forum tools menu (mobile) or the forum tools menu (both views) at all. And no errors displayed either...

Actually - I am not seeing ANY Simple;Press scripts being loaded at all which explains the lack of popups and the fact that nothing works - but not the lack of errors...

So i must have something wrong with the theme...

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 20, 2016 - 10:54 am

Well that is certainly interesting...I just confirmed that all SP toolsets are opening as expected, except for that Actions menu, in mobile view, which just loads at the bottom.

I'll send credentials again if you'd like to test on our dev install, or check/compare theme and SP settings etc. I do understand you may have other priorities here, and do appreciate any help.

Thanks again!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 20, 2016 - 12:07 pm

Well I persevered on my dinky little travelling notebook and found that for some reason if I removed the call to display a sidebar from the theme page template then all loaded and displayed again. Leaving it there was actually truncating the display.

So i have tracked down the problem but not the cause of the problem.

If you stop the 'modernizr' script from loading then the menu appears to correct itself. I am puzzled by this as modernizr is a fairly common script to use although I question whether it remains necessary. (It is a third party script that advertisies itelf as - Mobile-friendly - A JavaScript toolkit that allows web developers to use new CSS3 and HTML5 features - most of which seem readily available these days unless they are using something really obscure).

What I can't do away from home is work out why modernizr is causing this.

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 21, 2016 - 6:51 pm

Yellow Swordfish said
...if I removed the call to display a sidebar from the theme page template then all loaded and displayed again.

FYI: We use the full-width page template with no sidebar for our Forums page.

Thanks again for all your efforts!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 21, 2016 - 10:55 pm

believe he said the moderniz was affecting the menu...  more to come...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 29, 2016 - 4:47 pm

Well I am stumped I am afraid.

The modernizr script is responsible on your site for the odd slide up menu behaviour but I can not replicate it on my test site. So this suggests that while it is the cause it is only the cause because of some usage of it within your WP theme,

Would you be willing to ask the theme authors how and where they use this script? Because when I disabled it - everything  still seemed to work and I had no errors reported in the script console.

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 29, 2016 - 5:28 pm

Yellow Swordfish said

Would you be willing to ask the theme authors how and where they use this script?

I have opened a Woo ticket...

Thanks again for the feedback!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 29, 2016 - 8:47 pm

please let us know what they say...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
May 3, 2016 - 4:43 pm

So, I finally got a reply from Woo themes...see below.

I'm not exactly thrilled with the "bunch of tiny things" response to my question about what the theme does with modernizr, but I'm not really surprised with that either.

Hopefully this sheds some light on my stuck Actions menu. I need to look into how to conditionally dequeue or disable modernizr on our /forums pages to see if that works without imploding anything else.

As always, any tips are welcome and the support is greatly appreciated!

Woo Support said:

Modernizr does a lot of things depending on how far back your browser support goes. I used to develop a lot of things back when IE6 & 7 were still pretty popular and Modernizr did a lot.

Where and how is modernizr used within For the Cause?

Assuming most of your users are using modern browsers it probably doesn't do that much (depends on the browser). It tries to make sure all browsers have the latest functionality by using JavaScript to script things that the browser doesn't do natively.

Modernizer does a bunch of tiny things. For a complete list I'd look here:https://modernizr.com/

We're enqueueing it like this:

wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/includes/js/modernizr' . $suffix . '.js', array( 'jquery' ), '2.6.2' );

You can probably disable it entirely with wp_dequeue_script(): https://codex.wordpress.org/Fu.....eue_script

Or you can certainly conditionally enqueue it depending on the page being loaded with a bit of php logic.

For any sort of custom WordPress development work I always recommend Codeable. I really like them because if you write a bad job description they'll ask you to rewrite it until everyone is clear on what needs to get done. I've actually interviewed their CEO here:
http://speakinginbytes.com/201.....ess-tasks/

Either one of the above tasks should be a really quick fix on their end.

And again - if most of your audience uses newer browsers you can probably remove it entirely with little concern.

I hope that helps! 🙂

Cheers

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625