flome
Forum Replies Created
-
Forum: Plugins
In reply to: [m1.MiniWeather] Temperature uses Celsius, Not FahrenheitTo fix this:
Find this code in index.php of the plugin:
echo $args['before_widget']; echo $args['before_title']; echo $settings['m1mw_widget_title']; echo $args['after_title']; if ($m1mw_data->error ===false) { echo '<div class="wi wi-owm-' . $m1mw_data->weather[0]->id .'" title="' . $m1mw_data->weather[0]->description . '" style="font-size: 2em;' . $m1mw_fontColor . '"> <span class="m1mw_temp">' . $m1mw_data->tempC . '°</span>Replace with:
if ($settings['m1mw_value'] == 'C') { $m1mw_data->temp = $m1mw_data->tempC; } else { $m1mw_data->temp = $m1mw_data->tempF; } echo $args['before_widget']; echo $args['before_title']; echo $settings['m1mw_widget_title']; echo $args['after_title']; if ($m1mw_data->error ===false) { echo '<div class="wi wi-owm-' . $m1mw_data->weather[0]->id .'" title="' . $m1mw_data->weather[0]->description . '" style="font-size: 2em;' . $m1mw_fontColor . '"> <span class="m1mw_temp">' . $m1mw_data->temp . '°</span>You can find the index file in /wp-content/plugins/m1miniweather/
Note: If you modify the plugin, it will be overwritten with newer versions. Hopefully the author can implement this code.
- This reply was modified 8 years, 8 months ago by flome. Reason: Added full code snippet
Forum: Plugins
In reply to: [jQuery T(-) Countdown Widget] Disabling animations on mobileSide note: I’m not seeing the cross-domain loading issues you mention when I use the Chrome inspector. I only see one error related to one of my extensions. Can you enlighten me on what you’re seeing? Thanks.
Forum: Plugins
In reply to: [jQuery T(-) Countdown Widget] Disabling animations on mobileWell it took a while but I finally figured it out.
I was loading a box shadow on an H4 tag that was being injected Above the countdown. The shadow was likely being rendered underneath the jquery elements and thus causing the visual lag.
Thanks for trying to work this through with me.
Forum: Plugins
In reply to: [jQuery T(-) Countdown Widget] Disabling animations on mobileActually I JUST migrated to the live domain. Was building on a staging server. You must have seen those errors prior to me running Velvet Blues plugin in order to change URLS in the Database.
It is not a multi-site. I have not tried switching themes, but if I simply navigate to a different page on the site (one that does not have a countdown on the page) the menu opens smoothly as expected.
Forum: Plugins
In reply to: [jQuery T(-) Countdown Widget] Disabling animations on mobileMy responsive hamburger menu is still opening slow. Could it have to do with the fact that both elements (menu and countdown) are visible on the screen, and thus causing the lag when expanding the hamburger menu?
To reproduce, go to the site on a mobile device in portrait mode and open the hamburger menu.
Forum: Plugins
In reply to: [jQuery T(-) Countdown Widget] Disabling animations on mobileThere’s the link. It’s still a work in progress and I did try testing my theory by disabling the length of the animations to zero in Jquery but it’s still doing it. The issue occurs on my iPhone 6S+ (which should have sufficient processing power). I’m inexperienced when it comes to JS, so forgive me.
Thanks for your help,
FlorinHoly smokes, thanks for the rollback feature. Was in the same boat as the OP.
After digging further; the issue is indeed related to elements not being applied a split second after a refresh. I isolated the elements and added them into my own child theme’s style.css and there are no more glitches.
I’ve never seen this before but it’s possible that my lack of experience is at play here.