Forum Replies Created
-
AuthorPosts
-
April 24, 2018 at 3:49 am in reply to: WooCommerce Products built with Avia Layout Builder not displaying after upgrade #945650This reply has been marked as private.March 8, 2018 at 8:03 am in reply to: SEO, Google Page insights, blocking rendering ressources "above the fold" #923629
WOT CACHE
I decided to do some comprehensive testing on the DEVELOPMENT SITE
WOTCACHE After loading the PRESET for ENFOLDS
1. Front page – On page load first render there is a CSS flicker
2. Front page – The full-page Slider – not rendered
3. Front page – Testimonials slider – not rendered
4. Front Page – Gravity Form – not rendered
5. Page Content – Animated images and galleries – not rendered
6. Page Content – Portfolio Grid – not rendered
the list goes on.Reset the WOT Cache Preset to GENERAL
Make the following edits
———————————————
HTML/CSS
Minify [ √ ] HTML / [ √ ] CSS
EXCLUDE CSS
admin-bar.min.css
dashicons.min.css
wp-content/plugins/wordpress-seo/css/dist/adminbar-510.min.css
wp-content/themes/enfold/css/print.css
wp-content/plugins/gravityforms/css/formreset.min.css
wp-content/plugins/gravityforms/css/formsmain.min.css
wp-content/plugins/gravityforms/css/readyclass.min.css
wp-content/plugins/gravityforms/css/browsers.min.cssCOMBINE CSS [ √ ]
Exclude CSS
wp-content/themes/enfold/css/layout.css
wp-content/themes/enfold/css/shortcodes.css
wp-content/uploads/dynamic_avia/enfold_child.css
admin-bar.min.css
dashicons.min.cssASYNC CSS [ ] don’t tick
ASYNC GOOGLE FONTS [ √ ]
REMOVE QUERY STRINGS [ √ ]
EXCLUDE PAGES – empty
———————————————
JAVASCRIPTMINIFY JAVASCRIPT [ √ ]
EXCLUDE JAVASCRIPT
wp-includes/js/jquery/jquery.js
wp-includes/js/admin-bar.min.jsMOVE JS [ √ ]
COMBINE JS [ √ ]
EXCLUDE JS [ ] emptyADD TRY-CATCH WRAPPING [ ] don’t tick
DEFER JAVASCRIPT [ ] don’t tick
EXCLUDE PAGES – empty
———————————————
LAZY LOAD – OFF———————————————
CACHE – ACTIVE
———————————————
Let me know how you go with these settings.
March 8, 2018 at 2:05 am in reply to: SEO, Google Page insights, blocking rendering ressources "above the fold" #923501Back again! Some healthy discussion here.
WOT CACHE
I recently purchased WotCache for a client and tested it out. The default preset for Enfolds was disappointing.
After resetting and doing manual tweaks, I got some impressive results in the high 90’s. However, several other issues surfaced.
1. Admin Bar Disappeared. As per the preset – Be sure to exclude CSS: admin-bar.min.css and dashicons.min.css
2. Minify JS worked fine, however, for whatever reason I could not track down – WotCache also minified some shortcode inline js breaking the JS cookie. It seems to be all or nothing. For now, I have disabled Minify JS. I am working on segmenting the shortcode inline JS to an external file – so that it could be excluded.
3. The compression minify engine – results were good – however, on testing with Pagespeed insights, GTMetrix, WebPageTest and Pingdom. All suggested that the CSS and JS could be reduced further. Most of these sites allow you to download optimised assets. What is the go here? There must be a reason why WotCache is using a particular minify engine.
4. With Cache activated, I soon noticed 404 errors on editing and publishing pages.
5. The WOT CACHE spin icon was always present at the bottom of the page in admin
6. Clearing the Cache would time out and the spinning icon would not go away
7. On publishing an update, the cache for that post was not auto updated. The client found this very annoying – having to constantly manually clear the cache.After dealing with these issues – In this instance – have disabled the WotCache plugin.
I’m not saying that the plugin doesn’t work, but with a few improvements, performance could be better.
Hopefully, the guys at WotCache can resolve these issues with future updates.FIRST BYTE
I currently host over 20 sites with DREAMHOST a USA hosting provider. I am in Australia and so are my clients.
With most speed test from US servers, everything is lightning fast. However, when speed testing with an Australian severs first-byte is the main issue.
The use of a CDN would resolve this issue, however, with Dreamhost, at the moment, there is a restriction with the Cloudflare that the domain must force WWW – which creates the “too many redirects issue”.
And I believe DreamHost has saturated their Shared Server Hosting. With Vanilla install of WordPress and Enfolds with no traffic, the site automatically exceeds Dreamhosts’ CPU usage. Dreamhost is forcing users to upgrade to DreamPress or a VPS.On the back of this, I am trialling hosting with SiteGround – and with a vanilla install of Enfolds out of the box with no CDN, using http://www.webpagetest.org/ Sydney as my speed test server location, For first-byte I get a yellow “C” on Siteground instead of a red”F” from Dreamhost.
SiteGound has built-in server caching solution, SuperCache – https://www.siteground.com/tutorials/supercacher/sgcachepress/I have yet to do further testing with Enfolds on the SiteGound Server. I will report back later with a more resolved conclusion.
I hope this helps.
March 1, 2018 at 7:22 am in reply to: CODE SNIPPET – INLINE POST CONTENT POPUP – MAGNIFIC POPUP – SHORTCODE #919422This reply has been marked as private.March 1, 2018 at 7:00 am in reply to: CODE SNIPPET – INLINE POST CONTENT POPUP – MAGNIFIC POPUP – SHORTCODE #919417This reply has been marked as private.March 1, 2018 at 12:37 am in reply to: CODE SNIPPET – INLINE POST CONTENT POPUP – MAGNIFIC POPUP – SHORTCODE #919328Hi Allia19
Sorry to hear you are having problems.On a child theme, you do not copy the ‘functions.php’ file from the parent ENFOLD theme.
Please go here to download the child theme http://kriesi.at/documentation/enfold/downloads/
FTP – Upload the Child theme to your /wp-content/themes/
WP – Activate the “Enfold Child” Theme in Dashboard>Appearance>Themes
FTP – Open the ‘functions.php’ file in Enfold Child via text editor – Paste in the latest code above from ( February 28, 2018 at 4:03 am) above.
FTP Open ‘style.css’ in Enfold Child via text editor – Paste in the CSS code above.
WP – Add a page and get the ID of the page you wish to pop-up i.e. 4920
WP – On the page for the pop-up, paste in your shortcode like this.
‘[mfp_post_popup post_slug_id=”4920″ popup_id=”popup_1″ link_text=”open me”]’I only posted the new code yesterday – so it fully tested and working on my client website. So it should be right.
Let me know if you have any further problems with your implementation.
February 28, 2018 at 4:12 am in reply to: SHARE – CODE SNIPPET – OBFUSCATE EMAIL ADDRESS SHORTCODE #918781UPDATE
PHP extract() function is being depreciated – so I have updated the code below
https://externals.io/message/100637
/*------------------------------------------------------------------------------- SHORTCODE - obfuscate email [obfuscate_email email=" (Email address hidden if logged out) " subject="Test Subject" body="Message with line returns line 2 line 3" text="Click to Email" class="custom_class"] -------------------------------------------------------------------------------*/ function obfuscate_email_shortcode( $atts ){ //default values $atts = shortcode_atts([ 'email' => ' (Email address hidden if logged out) ', 'subject' => 'Website Email Enquiry', 'text' => 'Email Us', 'body' => '', 'class' => 'email_hide' ], $atts ); //split the email address so it can't be read by spam bots $email_parts = explode( '@', $atts['email'], 2 ); //recreate the js url $url = sprintf( "javascript:window.location.href='mailto:' + [ '%s', '%s' ].join('@') + '?subject=%s&body=%s'", $email_parts[0], $email_parts[1], $atts['subject'], str_replace( '<br />', '%250D%250A', $atts['body'] ) ); //print to screen return sprintf( '<a href="%s" class="%s">%s</a>', $url, $atts['class'], $atts['text'] ); } add_shortcode( 'obfuscate_email', 'obfuscate_email_shortcode' );
February 28, 2018 at 4:03 am in reply to: CODE SNIPPET – INLINE POST CONTENT POPUP – MAGNIFIC POPUP – SHORTCODE #918779UPDATE
PHP extract() function is being depreciated – so I have updated the code below
https://externals.io/message/100637
I have added additional session timer cookie to automatically pop-up after a time period.
shortcode option:popup_delay=""
is optional.example: [mfp_post_popup post_slug_id=’1′ popup_id=’join’ link_text=’Subscribe’ popup_delay=’15’]
/*------------------------------------------------------------------------------- ENFOLD INLINE POP-UP ENABLER -------------------------------------------------------------------------------*/ function inline_popup_enabler(){ ?> <script> /*! * JavaScript Cookie v2.2.0 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */ !function(e){var n;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var t=window.Cookies,o=window.Cookies=e();o.noConflict=function(){return window.Cookies=t,o}}}(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var t=arguments[e];for(var o in t)n[o]=t[o]}return n}return function n(t){function o(n,r,i){if("undefined"!=typeof document){if(arguments.length>1){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(r);/^[\{\[]/.test(c)&&(r=c)}catch(e){}r=t.write?t.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var f="";for(var a in i)i[a]&&(f+="; "+a,!0!==i[a]&&(f+="="+i[a].split(";")[0]));return document.cookie=n+"="+r+f}for(var p={},u=function(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)},s=document.cookie?document.cookie.split("; "):[],d=0;d<s.length;d++){var l=s[d].split("="),C=l.slice(1).join("=");this.json||'"'!==C.charAt(0)||(C=C.slice(1,-1));try{var g=u(l[0]);if(C=(t.read||t)(C,g)||u(C),this.json)try{C=JSON.parse(C)}catch(e){}if(p[g]=C,n===g)break}catch(e){}}return n?p[n]:p}}return o.set=o,o.get=function(e){return o.call(o,e)},o.getJSON=function(){return o.apply({json:!0},arguments)},o.remove=function(n,t){o(n,"",e(t,{expires:-1}))},o.defaults={},o.withConverter=n,o}(function(){})}); (function($){ $( document ).ready( function(){ var popup_link = $('.inline_popup'); var delay = popup_link.data( 'delay'); var cookieName = 'MfpHasDisplayedPopup'; $('.inline_popup').magnificPopup({ type:'inline', midClick: true }); if( typeof Cookies.get( cookieName ) === 'undefined' && typeof delay !== 'undefined' ){ setTimeout( function(){ Cookies.set( cookieName , '1' ); $('.inline_popup').magnificPopup('open'); }, parseInt( delay ) * 1000 ) } } ); })(jQuery); </script> <?php } add_action('wp_footer', 'inline_popup_enabler'); /*------------------------------------------------------------------------------- ENFOLD SHORTCODE - INLINE POST CONTENT POP-UP [mfp_post_popup post_slug_id="" popup_id="" link_text="" custom_class="" popup_delay=""] -------------------------------------------------------------------------------*/ function mfp_post_popup_shortcode( $atts ){ //default values $atts = shortcode_atts( [ 'post_slug_id' => '', 'popup_id' => '', 'link_text' => 'hello', 'mfp_hide' => 'mfp-hide', 'custom_class' => 'mfp_popup_content', 'popup_delay' => false, ], $atts ); //get post content $pop_slug = get_post( $atts['post_slug_id'] ); $content = apply_filters( 'the_content', $pop_slug->post_content ); //output post content into the footer before the closing body tag - content is hidden add_action('wp_footer', function() use( $content, $atts ) { echo sprintf( '<div id="%s" class="%s %s main_color">%s</div>', $atts['popup_id'], $atts['mfp_hide'], $atts['custom_class'], $content ); }); //output popup link return sprintf( '<a class="inline_popup" %s href="#%s">%s</a>', ( $atts['popup_delay'] ) ? 'data-delay="' . esc_attr( $atts['popup_delay'] ) . '"' : '' , $atts['popup_id'], $atts['link_text'] ); } add_shortcode( 'mfp_post_popup', 'mfp_post_popup_shortcode' );
February 20, 2018 at 11:07 am in reply to: SHARE – CODE SNIPPET – OBFUSCATE EMAIL ADDRESS SHORTCODE #914783Update
How to include a Body with multiple lines in a mailto: linkReplace the //default values code section with the code below:
//default values extract( shortcode_atts([ 'email' => ' (Email address hidden if logged out) ', 'subject' => 'Website Email Enquiry', 'text' => 'Email Us', 'body' => '', 'class' => 'custom_class' ], $atts ) );
Then replace the sprintf output with the following:
$url = sprintf( "javascript:window.location.href='mailto:' + [ '%s', '%s' ].join('@') + '?subject=%s&body=%s'", $email_parts[0], $email_parts[1], $subject, str_replace( '<br />', '%250D%250A', $body ) );
Explination
Stackoverflow – insert a line break in mailto body
\r\n
and%0D%0A
within the shortcode body=”line 1 example\r\nline 2 example” OR body=”line 1 example%0D%0Aline 2 example” did not work within the shortcode and in modern email applications.After troubleshooting for 3 hours – I worked out that
urlencode($body)
honoured line returns. However the body output had replaced spaces with a plus’s ‘+’.Not very readable.
So in the updated code we search for <br /> in the body content and replace %0D%0A with the urlencode format %250D%250A to maintain the line returns.
- This reply was modified 6 years, 8 months ago by HuxburyQuinn.
Hi Victoria,
My Problem has nothing to do with language.
Anyhow, I have replaced those 2 files – with no effect.
my problem is with COLOUR SECTION > BACKGROUND VIDEO is not responsive
SOLVED!
added the following to QUICK CSS
.avia-section .mejs-container { height:100% !important; width:100% !important; }
But I shouldn’t have to do this.
Please fix the bug with the next release – thanks ; )
Hi Ismael,
NOV 2017
Colour Background Video Not Responsive
Wordpress 4.0
ENFOLD 4.2 with Child ThemeDeactivated ENFOLD CHILD
Enabled ENFOLD CHILD
Deactivated ENFOLD CHILD
Activated ENFOLD PARENTIn all instances, COLOUR SECTION > BACKGROUND VIDEO is displayed on the left with an element style 480px by 270px
<div id="mep_0" class="mejs-container mejs-container-keyboard-inactive avia_video mejs-video" tabindex="0" role="application" aria-label="Video Player" style="width: 480px;height: 270px;min-width: 0px;"><div class="mejs-inner">
the background video is no responsive
Hi Admin
I had the same issue with IMAGE HOTSPOTS
Notice: Undefined index: index in themes/enfold/config-templatebuilder/avia-shortcodes/image_hotspots.php on line 531
As per above I changed line 531
if($meta['index'] == 0) $params['close'] = false;
TO
if(isset ($meta['index']) == 0) $params['close'] = false;
If you could please make sure this is fixed for the next update thanks!
ENFOLD 4.2
WP 4.8.3Hi Havi,
I am always afraid to install the zip files from Google Page Speed Insights
Your not installing ZIP files.
Do your Page Speed Test here:
https://developers.google.com/speed/pagespeed/insights/Your download the ZIP file, extract the ZIP contents on your local machine, then selecting which JS, CSS, images etc you want to FTP upload and replace on your wordpress site.
check out my post here:
https://kriesi.at/support/topic/seo-google-page-insights-blocking-rendering-ressources-above-the-fold/page/2/#post-848974Then refer to the Hummingbird settings screenshot.
Hi Havi,
My site is running so pretty heavy JS Calculators which slow down the site considerably. I can’t do any thing about that until the original plugin programmer updates how assets are loaded. So desktop is OK but on Mobile, I get a bad result because of “Eliminate render-blocking JavaScript and CSS in above-the-fold content”
If I take out the calculators – everything is clean and works 98%.Please see screenshot of my settings from HummingBird
http://tinypic.com/r/2hoi4yb/9
JS and CSS minification
1. Do a Google PageSpeed Insights on your site
2. Scroll to the bottom of the results page and look for this “Download optimized image, JavaScript, and CSS resources for this page.”
3. Click on the link and a ZIP folder will be download with all your compressed assets. Unzip.
4. Re-upload the minified assets to your site.From memory, using this method, the CSS and JS minification does not concatenate the source – which breaks most AVIA CSS and JS file functionality. The compressed minify file is similar to the results produced by Hummingbird.
Let me know how you go.
And please share any workarounds and fixes that you discover.
June 17, 2017 at 10:43 am in reply to: SEO, Google Page insights, blocking rendering ressources "above the fold" #809252Hi lami4d,
Work through your CSS files one by one and exclude the offending CSS file from minification that is causing the flash.
I tried 5 or so plugins for both CSS and JS minification.
For me, The best results were from WPMU DEV Humming Bird, which compressed without causing too many display errors.
Humming Bird also allows you to defer CSS as JS to the header or footer. I know it’s a paid plugin. But it gave the best results.I also took my speed optimisation one step further by pre-compressing both JS and CSS file in the parent theme. Keeping both the original and a compressed version. However, I would need to repeat this process every time I upgrade ENFOLDS.
I have suggested to Kriesi that precompressed resources should also be available with the theme. There are too many display issues caused by third-party minify plugins for a one click suit all scenario. One day hopefully.I have posted my optimisation results here – https://kriesi.at/support/topic/enfold-vs-avada-speed-test/
I plan at some point to provide an in-depth guide. Don’t hold your breath.1. Don’t minify any existing CSS files that already have
.min.css
Exclude from minify, however, you can still combine these CSS files.2. Don’t minify, but combine.
jquery-core :: wp-includes/js/jquery/jquery.js3. There are 3 main files that I found, that if ‘combined’ caused display issues with ENFOLDS
avia-scs :: enfold/css/shortcodes.css
avia-layout :: enfold/css/layout.css
avia-dynamic :: dynamic_avia/enfold_child.cssTo remove the flash – You could also try – Above the fold CSS.
Remove all CSS minification.
Render the page
Then get your above the fold CSS for the home page.
Try this: https://jonassebastianohlsson.com/criticalpathcssgenerator/
Or there is a chrome extension – Critical Style Snapshot
Move a copy of header.php from themes/enfold/ to themes/enfold-child/ then add the above the fold CSS to the header.php file just before the </head><style type="text/css" id="above_the_fold" media="all"> Insert above the fold css here </style> </head>
All CSS required to render the page successfully has been added to header.php
You can then try to turn your minification back on – to see if you still get the flash.The only other tip I can add … Page Speed Insights.
Leverage browser caching https://www.google-analytics.com/analytics.js (2 hours)
There are a lot of suggestion on how to get around this, but they are all complicated. The easiest method to solve Leverage browser caching for Google Analytics is too….
1. Install Google Tag Manger.
2. Implement Google Analytics via Google Tag Manager
3. Remove your legacy Google Analytics.I found this video series very informative.
Thanks – Julian Juenemann from Measureschool
Let me know how you go
Yigit,
When using BWP-Minify – here is the complete list of css files that need to be excluded or precompressed.
Most important
avia-scs wp-content/themes/enfold/css/shortcodes.css
avia-layout wp-content/themes/enfold/css/layout.cssLess Important
avia-grid wp-content/themes/enfold/css/grid.css
avia-base wp-content/themes/enfold/css/base.css
avia-dynamic wp-content/uploads/dynamic_avia/enfold_child.css
layerslider wp-content/themes/enfold/config-layerslider/LayerSlider/static/layerslider/css/layerslider.cssCan the code snippet example be extended like this…
add_action( 'wp_enqueue_scripts', 'wp_change_layoutcss', 20 ); function wp_change_layoutcss() { wp_dequeue_style( 'avia-scs' ); wp_enqueue_style( 'avia-scs-child', get_stylesheet_directory_uri().'/css/shortcodes.css' ); wp_dequeue_style( 'avia-layout' ); wp_enqueue_style( 'avia-layout-child', get_stylesheet_directory_uri().'/css/layout.css' ); wp_dequeue_style( 'avia-grid' ); wp_enqueue_style( 'avia-grid-child', get_stylesheet_directory_uri().'/css/grid.css' ); wp_dequeue_style( 'avia-base' ); wp_enqueue_style( 'avia-base-child', get_stylesheet_directory_uri().'/css/base.css' ); }
let me know thanks!
It would be nice if Enfolds had a theme option to use pretested / precompressed css and js sources.
FYI.
I tested the following plugins for the ability to compress and minify JS and CSS.
Better WordPress Minify
Autoptimize
Merge + Minify + Refresh
WP-Rocket
Above The Fold OptimizationAll the above plugins with either CSS or JS minification turned on – produced complete loss of animation effect, css flickers and even no content in certain AVIA layout builder elements.
Each plugin – works fine – however you have to go through and systematically excluded js and css files to keep full Enfold functionality.WPMU Humming Bird was the only plugin that was able to minify CSS and JS and keep if not all Enfold animation and CSS styles.
May 21, 2017 at 2:33 am in reply to: SEO, Google Page insights, blocking rendering ressources "above the fold" #797135Hi ,
Thanks so much for this post.
I only discovered this article mid way through my optimisation efforts.
Please refer to my final results and setup here:ENFOLDS – SPEED OPTIMISATION
HOST: AWS Sever | Apache | CPANEL | m3.medium | 3.75G RAM
WORDPRESS: 4.7.5
ENFOLDS: 4.0.2TARGET:
Homepage and other pages with the following ENFOLDS elements, reviewed and tested.- LayerSlider WP
- Avia Layout Builder – Masonry Grid Build Animation and Interaction
- Avia Layout Builder – List icon animation
- Avia Layout Builder – Media – Image Load Animation and Hover
- Google Fonts
- Google Analytics
- Google Map API
Full Page test in Pingdom Tools.
https://tools.pingdom.com/#!/b3wuUu/http://www.acahomeloans.com.au
This specific test was done on May 21 at 09:39:11 from Melbourne, Australia.
The web page took 590 ms to load, used 112 requests, and weighed in at 712.1 kB.
The Google Page Speed performance grade for this web page is 96/100.Final Implementation…
———————————————————–
WP-Rocket
The functionality WP-Rocket adds – is done by updating your .htaccess file. in-depth explanation later.
WP-Rocket | Basic Options | Files optimisation: HTML + Inline CSS + Inline JS
WP-Rocket | Advanced Options
Static Resources: Remove Query Strings – YES
Prefetch DNS requests:- //fonts.googleapis.com
- //maps.googleapis.com
- //ajax.googleapis.com
- //csi.gstatic.com
WP-Rocket | Preload | Activate preload bot: Automatic | Sitemap preloading: Activate the sitemap preloading + Yoast SEO XML sitemap
———————————————————–
WPMU DEV – HUMMING BIRD
CSS and JS Include + Minifiy + Combine + script header footer re-positioning
Why Humming Bird? Humming Bird’s minify script was the only one out of so many minify plugins that did not introduce Enfolds animation and stylings display issues after concatenation – more in-depth explanation coming later.
———————————————————–
VENDI CACHE
This use to be WordFence Falcon Cache – which does an amazing job of serving cached static html version of your pages.
Vendi Cache | Cache Mode : 30 to 50 Times speed increase
———————————————————–
CLOUDFLARE
Free version of CloudFare
CloudFlare | Speed | Auto Minify: Javscript + CSS + HTML
Rocket Loader – OFF
Rocket loader kills LayerSlider WP and other Enfold JS sliders. You can create a page rule so that Rocket Loader is not active on the pages that have sliders – so that the rest of your content pages are not affected.
———————————————————–I’ll try and create a definite guide to ENFOLDS optimisation, which plugins tested, pros and cons.
Back soon.
Let me know if you have any questions.
Hi Rikard,
and the enqueue scripts screen ?
I’m almost there after find this helpful article – which would have been good to know.
Hi Josue,
Is this script still valid to use with the current version of Enfolds?
Page Speed Insights – is telling me to compress Enfold parent JS and CSS files.
I have download the PageSpeed Insight generated compressed versions and temporarily replaced these files in the parent theme to see if anything breaks.
All going well I’d like to add the compressed version of the JS and CSS files and enqueue them from the child Theme overriding the uncompressed version in the parent theme.
THE REASON WHY
If these files are Minified by BWP-Minify plugin – Theme visual elements and functionality start to break.
So then these files need to be excluded (not Minified) via BWP-Minify Manage Enqueued Files.
This leave the existing message in Page Speed Insights.
I think it’s far better to fix these issues at the source – that way any Caching , speed optimisation is going to work much better.I look forward to your response to the usage of the above child functions.php code you created – and if there is an updated method.
Hi Rikard,
You’re in California and the server is in California. now that’s just cheating – how about you try it from Australia.Are you able to share trade secrets and provide a screen shot of Kriesi’s BWP-Minify setting tabs and especially the Manage enqueued JS files?
Which files do I need to keep in the header and which can be deferred and which CSS file should not be minified – so that the page load quickly without affecting Layerslider, Masonry Grid and effects animations?
Would be greatly appreciated.
thanks
May 17, 2017 at 1:04 pm in reply to: Avia Layout Builder and Masonry Gallery not working after upgrade to enfold4.0.5 #794851I see that people are still having issues with Masonry Gallery after upgrading to enfold 4.0.7
As part of my speed optimisation, I have noticed that Masonry Gallery does not dynamically set
<img srcset=
for different device views. i.e the theme resized images are not used and only the original placed sourced image is used.This is decreasing my PageSpeed insights score – optimised images – everything placed in a Masonry Gallery
just wondering if there is a quick fix for this?
- This reply was modified 7 years, 6 months ago by HuxburyQuinn.
April 23, 2017 at 8:15 am in reply to: Avia Layout Builder and Masonry Gallery not working after upgrade to enfold4.0.5 #781900Thanks.
Please also note – Masonry Gallery image order is not working either.
April 20, 2017 at 11:00 am in reply to: CODE SNIPPET – INLINE POST CONTENT POPUP – MAGNIFIC POPUP – SHORTCODE #780440UPDATE
Change this code
'<div id="%s" class="%s %s">%s</div>',
to include additional enfold css class “main_color”
'<div id="%s" class="%s %s main_color">%s</div>',
Then the CSS TWEAKS won’t be required.
The modal widow content will adopt all standard Enfold CSS Styling.
April 12, 2017 at 2:44 pm in reply to: AVIA Advanced layout builder – DEBUG WINDOW – COPY PASTE ERROR #776670Hi Maxndi,
The only thing that worked for me , was to rebuild the whole page again using the avia layout builder elements.
You can open the original page in another tab or window and copy the content from the original and paste it into the new page/post avia builder elements on the new page.Support was unable to replicate this error and did not provide a solution or update.
Thanks Ismael
Hi Ismael,
My client is having a similar issue with his Google Merchant feed with the following :
"Your item's landing page is missing microdata for the item's condition"
Is there an update to this.
We have just implemented the following method:
https://wordpress.org/support/topic/how-to-add-missing-microdata-for-condition-to-products/
`<meta itemprop=”url” content=”https://www.domain.com/shop/product”>
<meta itemprop=”itemCondition” content=”http://schema.org/NewCondition”>`
and also ready through the link
https://feedarmy.com/kb/google-shopping-missing-microdata-for-condition/However feedarmy suggest that the micodata be contained within an “offer”
`<div itemscope itemtype=”http://schema.org/Product”>
<div itemprop=”offers” itemscope itemtype=”http://schema.org/Offer”>
<meta itemprop=”itemCondition” itemtype=”http://schema.org/OfferItemCondition” content=”http://schema.org/NewCondition” />
</div>
</div>`
Enfold Scheme markup does not follow this method.
<meta itemprop="itemCondition" content="http://schema.org/NewCondition">
VS
<meta itemprop="itemCondition" itemtype="http://schema.org/OfferItemCondition" content="http://schema.org/NewCondition" />
the last one includes “OfferItemCondition”
so I have implement this using the wordpress.org method.
However it would be great to get feedback from support as to a Hook or filter to properly implement changes to this
theme > enfold > includes > helper-markup.php
from the child theme.
Interesting article: https://longren.io/add-schema-org-markup-to-woocommerce-products/
I also can’t find any official feedback from woo commerce regarding microdata – I know this is not the right place to comment – but why is “itemCondition” standard with woocommerce ?
March 4, 2017 at 1:50 am in reply to: requested an insecure script 'http://maps.google.com/maps/api/js?sensor=false' #755439Hi Ismael,
Yes the culprit was a plugin “Indeed PopUps”
I have replaced the need for this plugin by using this code
https://kriesi.at/support/topic/code-snippet-inline-post-content-popup-magnific-popup-shortcode/
you can consider this closed.
thanks for the great support.
March 2, 2017 at 3:46 pm in reply to: Remove "related videos" when displaying Youtube videos in lightbox #754383I thought I would share my solution.
It works only for YOUTBE videos and is a GLOBAL FIX for all current Enfold methods of YouTube video playback.
Add the following code to your child-theme functions.php file:
function change_magnific_popup_iframe_setting(){ ?> <script> jQuery(window).load(function(){ jQuery('a[href*="youtube.com/watch"]').magnificPopup({ type: 'iframe', iframe: { patterns: { youtube: { index: 'youtube.com', id: 'v=', /* src: '//www.youtube.com/embed/%id%?rel=0&autoplay=1'*/ src: '//www.youtube.com/embed/%id%?autoplay=1&rel=0&autohide=1&showinfo=0&fs=1&feature=oembed&wmode=opaque' } } } }); }); </script> <?php } add_action("wp_footer", "change_magnific_popup_iframe_setting"); /**/ function remove_related_videos( $html, $url, $args ) { if ( strpos( $html, 'youtube.com/embed/' ) !== false ) { return str_replace( 'feature=oembed','feature=oembed&rel=0', $html ); } else { return $html; } } add_filter( 'embed_oembed_html', 'remove_related_videos', 10, 3 );
Cheers : )
March 2, 2017 at 1:27 am in reply to: requested an insecure script 'http://maps.google.com/maps/api/js?sensor=false' #754024credentials below
- This reply was modified 7 years, 8 months ago by HuxburyQuinn.
-
AuthorPosts