Jeff Cole
Forum Replies Created
-
Glad you’ve caught it.
I’ve discovered that WP Rocket have a plugin to solve exactly this – see https://docs.wp-rocket.me/article/976-exclude-files-from-defer-js
So in the plugin I replaced the original line to point to your script:
/** * EDIT THIS: * Edit below line as needed to exclude files. * To exclude mupltiple files, copy the entire line into a new line for each file you wish you exclude. */ $excluded_files[] = '/wp-content/plugins/cmp-coming-soon-maintenance/js/vidim.min.js'; // STOP EDITING
And it solves the issue. Thanks!
You could perhaps include the code so that this doesn’t happen for someone else using WP Rocket? https://github.com/wp-media/wp-rocket-helpers/tree/master/static-files/wp-rocket-static-exclude-defer-js
- This reply was modified 6 years, 10 months ago by Jeff Cole.
OK. Here’s a screenshot of the HTML and CSS in inspector https://raw.githubusercontent.com/upekshapriya/forum-images/master/Screen%20Shot%202018-05-17%20at%2015.00.27.png ??
It does look like something created by your theme.
Hi Alex thanks for getting back – here’s a screenshot https://raw.githubusercontent.com/upekshapriya/forum-images/master/Screen%20Shot%202018-05-17%20at%2002.17.25.png
As you can see the main section is slightly greyed out because of the overlay.
Thanks Alex for getting back to me.
I’m not able to show you directly because the site is live but I’ve captured the source html from both the live and preview versions of the site and uploaded them at https://gist.github.com/upekshapriya/433a49c2b0f5179a247c4c69a707fa16
When I open the html files in my browser I have the same result. The same console error is present in the live.html version as is in the real live version ie
ReferenceError: Can't find variable: vidim
Forum: Plugins
In reply to: [Warm Cache] Cron job seeing 500 errorThanks for looking into this. Sorry I didn’t see your message – I was expecting an email!
Something strange is happening now – the information that normally appears above the columns is not showing – even though it is visible in the source code for the plugin page.
Forum: Plugins
In reply to: [Warm Cache] Cron job seeing 500 errorNothing obvious that deletes posts – the site is quite a minimal static site at the moment.
Forum: Plugins
In reply to: [Warm Cache] Cron job seeing 500 errorAny news on this?
Forum: Plugins
In reply to: [Page Templater For Elementor] Compatibility with Sydney themeIs there any news on this?
Forum: Plugins
In reply to: [Page Templater For Elementor] Compatibility with Sydney themeI just updated to the latest version 1.2.4.
However the plugin doesn’t show the code from the inline-style.php /wp-content/plugins/elementor-templater/vendor/codeinwp/full-width-page-templates/themes/sydney/inline-style.php
in the page.
Instead it shows
.page-template-builder-fullwidth-std .page-wrap, .page-template-builder-fullwidth-std .page-wrap .content-wrapper { padding: 0; margin: 0; } .page-template-builder-fullwidth-std .elementor-page .page-wrap .container { width: 100%; overflow: hidden; } .page-template-builder-fullwidth-std .page .entry-header, .page-template-builder-fullwidth-std .page .entry-footer { display: none; }
rather than code derived from the inline-style file
<?php /* Support for Sydney theme */ $sydney = ' .page-template-builder-fullwidth-std .page-wrap, .page-template-builder-fullwidth-std .page-wrap .content-wrapper { padding: 0; margin: 0; width: 100% } .page-template-builder-fullwidth-std.elementor-page .page-wrap .container { width: 100%; overflow: hidden; } .page-template-builder-fullwidth-std .page .entry-header, .page-template-builder-fullwidth-std .page .entry-footer { display: none; } '; wp_add_inline_style( 'sydney-style', $sydney );
ie the width=100% isn’t appearing and so the page isn’t full width
- This reply was modified 7 years ago by Jeff Cole.
Forum: Plugins
In reply to: [PT Addons for Elementor Lite] swal2-container covering admin pagesThanks for letting me know ??
Forum: Plugins
In reply to: [Page Templater For Elementor] Compatibility with Sydney themeI just updated the plugin to 1.2.3 which has the new modular structure but it appears to have broken the support you had for Sydney theme previously.
The code I posted above that worked for me for a Sydney child theme isn’t included in the new plugin in /elementor-templater/vendor/codeinwp/full-width-page-templates/themes/sydney/inline-style.php
But even when I pasted my code from above on top of this it didn’t have any effect and the page wasn’t full width.
If I go back to the previous version (1.2.2) and paste my code instead of that in /elementor-templater/inc/themes/sydney.php it works as it did.
Any ideas why there is this problem?
Forum: Plugins
In reply to: [Warm Cache] Cron job seeing 500 errorThanks for the suggestion.
It appears to have no different result with Development Mode enabled.
However there is a php error in the log which may have something to do with it?
[05-Dec-2017 01:15:04 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_author_permastruct() on null in /srv/users/serverpilot/apps/wordpress/public/wp-includes/author-template.php:337 Stack trace: #0 /srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/cloudflare/src/WordPress/Hooks.php(193): get_author_posts_url('1') #1 /srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/cloudflare/src/WordPress/Hooks.php(153): CF\WordPress\Hooks->getPostRelatedLinks(43607) #2 /srv/users/serverpilot/apps/wordpress/public/wp-includes/class-wp-hook.php(286): CF\WordPress\Hooks->purgeCacheByRevelantURLs(43607) #3 /srv/users/serverpilot/apps/wordpress/public/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #4 /srv/users/serverpilot/apps/wordpress/public/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /srv/users/serverpilot/apps/wordpress/public/wp-includes/post.php(2559): do_action('deleted_post', 43607) #6 /srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/warm-cache/warm_cache_crawl.ph in /srv/users/serverpilot/apps/wordpress/public/wp-includes/author-template.php on line 337
- This reply was modified 7 years, 3 months ago by Jeff Cole.
Forum: Plugins
In reply to: [Warm Cache] Not showing any pages hitFor no apparent reason the Warm Cache is crawling pages as it should now.
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] HTML validation errorsThanks! That’s great. You’ve sorted it.
Fantastically quick support ??
Forum: Plugins
In reply to: [Warm Cache] Doesn’t fetch home pageThanks for sorting it ??