Title: thwp's Replies | WordPress.org

---

# thwp

  [  ](https://wordpress.org/support/users/thwp/)

 *   [Profile](https://wordpress.org/support/users/thwp/)
 *   [Topics Started](https://wordpress.org/support/users/thwp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/thwp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/thwp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/thwp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/thwp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/thwp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Elementor Website Builder - more than just a page builder] Video with Lightbox enabled is not accessible](https://wordpress.org/support/topic/video-with-lightbox-enabled-is-not-accessible/)
 *  Thread Starter [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/video-with-lightbox-enabled-is-not-accessible/#post-18157340)
 * Hi (:
   I first have a small correction to my initial ticket:When I wrote: “I have
   an issue in which a Video widget has Lightbox enabled, and when I TAB to it (
   so the Play button gets focus) and then press Enter/Space key, **it doesn’t start
   playing.**“, instead of “it doesn’t start playing” it should have been “**the
   lightbox is not being open**“.
 * Well, I did a conflict test and deactivated all plugins, but the issue still 
   occurred, so it was not a plugin conflict. I then reviewed my custom jQuery code
   in child theme’s functions.php and saw I’ve previously added some code to make
   all buttons accessible, like this:
 *     ```wp-block-code
       // Add keyboard support for all buttons, so they react to both Enter & Space keys:$('*[role=button]').keydown(function (e) {    if ((e.key == 'Enter') || (e.key == ' ')) {	e.preventDefault();  	setTimeout(function () {	    $(this).click();	}, 300);    }});// Some more code here to fix focus handling on Click event...
       ```
   
 * When I changed it like so (i.e. added **the if statement below**) the issue was
   fixed:
 *     ```wp-block-code
       // Add keyboard support for all buttons, so they react to both Enter & Space keys:$('*[role=button]').keydown(function (e) {    if ((e.key == 'Enter') || (e.key == ' ')) {        e.preventDefault();	if ($(this).hasClass('elementor-custom-embed-play') &&            $(this).closest('.elementor-wrapper').hasClass('elementor-open-lightbox')) {                let current_button = $(this);                setTimeout(function () {                   current_button.click();                }, 300);	}	else {	    setTimeout(function () {	        $(this).click();	    }, 300);	}    }});// Some more code here to fix focus handling on Click event...
       ```
   
 * I hope it helps someone.
    -  This reply was modified 1 year, 6 months ago by [thwp](https://wordpress.org/support/users/thwp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Addons for Elementor] Can’t edit the footer anymore, as Elementor editor keeps loading forever](https://wordpress.org/support/topic/cant-edit-the-footer-anymore-as-elementor-editor-keeps-loading-forever/)
 *  Thread Starter [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/cant-edit-the-footer-anymore-as-elementor-editor-keeps-loading-forever/#post-17945620)
 * **Update:**
   – I did a conflict test by deactivating all plugins besides the essential
   ones (Elementor, Elementor Header & Footer Builder) and a few other plugins I
   didn’t feel comfortable deactivating.– I refreshed the Permalinks (twice), refreshed
   Elementor (in Elementor –> Tools I clicked the [Regenerate Files & Data] button
   + [Sync Library] button, and then [Save Changes] button), and cleared WP & hosting
   caches.– I tested to see if now Elelemtor editor will open up and let me edit
   the footer – it did open up, which meant that the above activated plugins were
   not the cause of the issue.– I then re-activated each one of the deactivated 
   plugins, one by one, and after each re-activation I tested if Elementor editor
   opened up, and each time it did!So it was indeed a Permalinks/Caching issue, 
   which was FINALLY solved.I hope this info will help someone (;
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Addons for Elementor] editing footer not loading 404 error](https://wordpress.org/support/topic/editing-footer-not-loading-404-error/)
 *  [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/editing-footer-not-loading-404-error/#post-17931935)
 * Hi,
   I’m having the same issue mentioned above of not being able to edit the footer
   anymore, because Elementor editor is loading forever. I’m using latest versions
   of everything (WP, Elementor, EHFB, etc).
 * I tried the solutions offered by [@bsfherman](https://wordpress.org/support/users/bsfherman/)(
   i.e. deactivating and reactivating this plugin (EHFB), switching themes), but
   they didn’t work. I also tried re-saving the Permalinks and clearing all caches,
   but it didn’t work either.
 * Today I tried the following:
   1) Changing the footer to Draft mode (via Quick 
   Edit) –> Elementor editor did open up.2) Duplicating the footer –> Elementor 
   editor did open up.
 * Hoping for a quick fix for this issue.
   Thank you.
    -  This reply was modified 1 year, 10 months ago by [thwp](https://wordpress.org/support/users/thwp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Native language in language switcher not working](https://wordpress.org/support/topic/showing-native-current-language-in-language-switcher-is-not-working/)
 *  Thread Starter [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/showing-native-current-language-in-language-switcher-is-not-working/#post-17917108)
 * Hey there,
   Any news on this issue?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] JS errors in WooCommerce 8.5.1](https://wordpress.org/support/topic/js-errors-in-woocommerce-8-5-1/)
 *  Thread Starter [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/js-errors-in-woocommerce-8-5-1/#post-17431090)
 * Hey there,
 * I’ve just updated Woocommerce from 8.5.2 to 8.6.0, and then **enabled JS Deferral**
   in SG Optimizer, cleared all caches and tested my site.
   The result: All was back
   to normal – **no JS errors anymore!** (:
 * I had another issue before (in Woo 8.5.2), in which Woo’s notifications had their
   styling corrupted, and this issue has been fixed as well in 8.6.0. (:
 * So thank you, the Woocommerce team.
 * I hope it helps you, [@robobalasko](https://wordpress.org/support/users/robobalasko/),
   and anyone else.
 * Regards,
   thwp
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] JS errors in WooCommerce 8.5.1](https://wordpress.org/support/topic/js-errors-in-woocommerce-8-5-1/)
 *  Thread Starter [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/js-errors-in-woocommerce-8-5-1/#post-17416749)
 * Hi,
 * I’ve deleted my new gist, and I’ll take from here to SG Optimizer’s support forum.
   
   Thank you all for your time and help. (:
 * Kind regards,
   thwp
    -  This reply was modified 2 years, 4 months ago by [thwp](https://wordpress.org/support/users/thwp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] JS errors in WooCommerce 8.5.1](https://wordpress.org/support/topic/js-errors-in-woocommerce-8-5-1/)
 *  Thread Starter [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/js-errors-in-woocommerce-8-5-1/#post-17416722)
 * **Update:**
 * I just did some digging in SG Optimizer’s support forum, and someone reported
   that they were able to resolve a conflict with WooCommerce by disabling the ‘
   Defer Render-blocking JavaScript’ option in SG Optimizer plugin. So I’ve disabled
   this option too, cleared all caches, and tested the site again.
   The error above**
   did not** show up anymore.
    -  This reply was modified 2 years, 4 months ago by [thwp](https://wordpress.org/support/users/thwp/).
    -  This reply was modified 2 years, 4 months ago by [thwp](https://wordpress.org/support/users/thwp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] JS errors in WooCommerce 8.5.1](https://wordpress.org/support/topic/js-errors-in-woocommerce-8-5-1/)
 *  Thread Starter [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/js-errors-in-woocommerce-8-5-1/#post-17416696)
 * Hey [@carolm29](https://wordpress.org/support/users/carolm29/),
 * I just run the conflict test on a staging site, as you’ve suggested, and I found
   out it was the **SG Optimizer** plugin which caused the error. I’m using SG Optimizer(
   now called Speed Optimizer) 7.4.6. Everything is updated to the latest version.
 * Here is my new gist:
   [https://gist.github.com/triyutstudio/7175bf089b07af42b16eea558e4aeacb](https://gist.github.com/triyutstudio/7175bf089b07af42b16eea558e4aeacb)
 * Looking forward to your reply.
 * Kind regards,
   thwp
    -  This reply was modified 2 years, 4 months ago by [thwp](https://wordpress.org/support/users/thwp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] JS errors in WooCommerce 8.5.1](https://wordpress.org/support/topic/js-errors-in-woocommerce-8-5-1/)
 *  Thread Starter [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/js-errors-in-woocommerce-8-5-1/#post-17382703)
 * **Update:**
   I’ve updated Woocommerce to 8.5.2, and now I only get one error in
   Chrome DevTools’ Console, which is different than the original 4 errors: **Uncaught
   TypeError: Cannot read properties of undefined (reading ‘use’)**.
 * The code that throws this error is this:
 *     ```wp-block-code
       <script defer id="wp-data-js-after">
            (function() {
                var userId = 0;
                var storageKey = "WP_DATA_USER_" + userId;
                wp.data.use(wp.data.plugins.persistence, {
                    storageKey: storageKey
                });
             })();
       </script>
       ```
   
 * It mean that ‘wp.data’ above is being undefined…
 * The error is thrown in all pages, and only for **guest/logged-out users**, meaning
   when I view the site in Incognito mode. It doesn’t occur when I view the site
   while being logged in. (Note: users in my store do not create an account, they
   are “guest users”, so this error basically affects all my users)
 * I temporarily switched to the default theme (Twenty Twenty-Four), but the error
   still persisted. So this is not related to the theme.
 * Since there is no such error when being logged in, does it mean no conflict with
   other plugins but instead it’s an issue solely in Woocommerce?
 * Please help me solve it.
 * Kind regards,
   thwp
    -  This reply was modified 2 years, 4 months ago by [thwp](https://wordpress.org/support/users/thwp/).
    -  This reply was modified 2 years, 4 months ago by [thwp](https://wordpress.org/support/users/thwp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] JS errors in WooCommerce 8.5.1](https://wordpress.org/support/topic/js-errors-in-woocommerce-8-5-1/)
 *  Thread Starter [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/js-errors-in-woocommerce-8-5-1/#post-17360246)
 * Hi Zubair,
 * Thank you for your response. (:
 * Here is my gist: [https://gist.github.com/triyutstudio/22a6ce43b78aebfbafa7748aa82ba154](https://gist.github.com/triyutstudio/22a6ce43b78aebfbafa7748aa82ba154)
 * Kind regards,
   thwp
 * PS – gibonwebbuppsala and joy0114 – thank you for replaying too. (:
    -  This reply was modified 2 years, 5 months ago by [thwp](https://wordpress.org/support/users/thwp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Gettext strings exclusion (#!trpst#trp-gettext + #TRPLINKPROCESSED)](https://wordpress.org/support/topic/gettext-strings-exclusion-trpsttrp-gettext-trplinkprocessed/)
 *  Thread Starter [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/gettext-strings-exclusion-trpsttrp-gettext-trplinkprocessed/#post-16694271)
 * **Update: #2**
   Excluding the **parent **element was actually **not OK**, because
   by excluding it I lost translation that was actually needed… So I rolled back
   to previous state and excluded the two elements by their **CSS IDs** again.I 
   then realized that I had some **JS code** that manipulated these two elements’
   parent elements, so I ended up changing stuff in my JS code.Since I **cannot 
   reproduce the issue** I’ll have to **monitor **this website some more, to see
   if the issue happens again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Gettext strings exclusion (#!trpst#trp-gettext + #TRPLINKPROCESSED)](https://wordpress.org/support/topic/gettext-strings-exclusion-trpsttrp-gettext-trplinkprocessed/)
 *  Thread Starter [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/gettext-strings-exclusion-trpsttrp-gettext-trplinkprocessed/#post-16694149)
 * **Update:**
   I just saw that the last two ‘#!trpst#trp-gettext’ instances mentioned
   above were back… So I excluded them in **Exclude selectors from translation**
   option in TP settings by their **parent **element’s **CSS class**.When I refreshed
   the page these instances were gone.
    -  This reply was modified 3 years, 1 month ago by [thwp](https://wordpress.org/support/users/thwp/).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Astra] Error on Latest Version](https://wordpress.org/support/topic/error-on-latest-version-3/)
 *  [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-on-latest-version-3/#post-16366259)
 * Hi,
   I’m having the same issue. I’ve upgraded Astra to version 4.0 today (free
   version), and since then the header is completely missing on mobile view. It’s
   OK on desktop and tablet views.Astra team, please fix this ASAP as the website
   it seriously broken on mobile like this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Essential Addons for Elementor - Popular Elementor Templates & Widgets] An exception in the Shop page and in any Single Product page](https://wordpress.org/support/topic/eexception-in-shop-page-and-in-single-product-pages/)
 *  Thread Starter [thwp](https://wordpress.org/support/users/thwp/)
 * (@thwp)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/eexception-in-shop-page-and-in-single-product-pages/#post-16148884)
 * Hi (-:
    I’ve just updated to latest version (v5.4.2), cleared all caches, and
   tested. The issue is now resolved. Thank you so much.

Viewing 14 replies - 1 through 14 (of 14 total)