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
May 3, 2016 - 5:26 pm

It might depend a little on at which point it is enqueued but the first thing to try would be to wrap that enqueue line of code in this:

if ( sp_is_forumpage() == false ) {
.... do the enqueue here
}

I assume you will try this on your sandbox system first so it should be safe. It just depends whether SP has had a chance to initialise the info it needs at the point of the enqueue. If not and the above errors then there are other ways we can investigate...

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
May 3, 2016 - 6:05 pm

Yellow Swordfish said
...the first thing to try would be to wrap that enqueue line of code in this:
if ( sp_is_forumpage() == false ) {
.... do the enqueue here
}

Thanks for that, I actually went the dequeue route. I added the following to the theme functions:

/* *** Dequeue modernizr on Forums. *** */
function woomod_dequeue() {
   if ( is_page( 'forums' ) ) {
   wp_dequeue_script( 'modernizr' );
   }
}
add_action( 'wp_print_scripts', 'woomod_dequeue', 100 );
/* *** END Dequeue modernizr *** */

Any concerns with this?

So far, it seems to do the trick on our dev site. Modernizr loads on other pages but not on forums/ or PM inbox, Profile, etc. And, the toolset slides up within view, as it should!

It's a Band-Aid, but I guess those are sometimes required when not everybody plays nice together in the sandbox...just need to ensure nothing else has imploded with this theme hack before updating our live site, and putting this topic to rest.

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
May 3, 2016 - 6:43 pm

Sure the method you have used is fine.

I would really like to know the reason for this. Modernizr itself is not the cause. It is either a combination of Modernizr and something else or somewhere in the scripts where a Modernizr function is being used. But that is a bit like looking for a needle in a haystack if you don't know the code.

As the guys said - you could probably get away without it although there may be the odd user still using IE6!

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
May 3, 2016 - 6:57 pm

Yellow Swordfish said
I would really like to know the reason for this...

Me too, but that haystack is over my head. Happy to help troubleshoot further, with direction.

Just pushed the dequeue live on our main site. So far so good...

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
May 3, 2016 - 7:34 pm

okay, let us know how it holds up...

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: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17348
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10120
Posts: 79607