docbt
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Open Graph duplicates with Ultimate MemberSolved it myself ??
This will remove the URL, Title an Type element added by yoast on UM profile pages.
// Yoast - wpseo add_filter( 'wpseo_opengraph_url', 'filter_wpseo_opengraph_url', 10, 1 ); function filter_wpseo_opengraph_url( $url ) { if( function_exists('um_is_core_page') ){ if ( um_is_core_page('user') && um_get_requested_user() ) { return; } else { return $url; } } else { return $url; } }; add_filter( 'wpseo_opengraph_title', 'filter_wpseo_opengraph_title', 10, 1 ); function filter_wpseo_opengraph_title( $title ) { if( function_exists('um_is_core_page') ){ if ( um_is_core_page('user') && um_get_requested_user() ) { return; } else { return $title; } } else { return $title; } }; add_filter( 'wpseo_opengraph_type', 'yoast_change_opengraph_type', 10, 1 ); function yoast_change_opengraph_type( $type ) { if( function_exists('um_is_core_page') ){ if ( um_is_core_page('user') && um_get_requested_user() ) { return; } else { return $type; } } else { return $type; } };
Forum: Plugins
In reply to: [W3 Total Cache] Some files don′t get minimized and not compressedI could solve my problem.
If you are using nginx as reverseproxy before apache you have to disable options “Smart static files processing” and “Serve static files directly by nginx” (in plesk).
Otherwise the apache gzip compressed files will be uncompressed by nginx and will be served without compression, which slows down your site dramatically!
I could speedup my site from google PageSpeed Insights score 39 to 97 ????
- This reply was modified 5 years ago by docbt.
Forum: Plugins
In reply to: [W3 Total Cache] Duplicate minified filesThanks! That helped ????
Forum: Plugins
In reply to: [W3 Total Cache] Minify setting causing ‘defer parsing of JavaScript’ alertUpdate: The problem was, that I added the files to the child theme. They have to be added in the parent theme to make it work.
Forum: Plugins
In reply to: [W3 Total Cache] Cannot eliminate render blocking JS and CSS@vmajor I would check, if you get errors in your browser developer console.
You will see errors of dependencies and can fix it by reordering or moving required scripts to the header/after the <body> tag…
In my options I also had to disable linebreak removal in the js minify settings. I got an error of the ultimate member pickerdate function with linebreak removal.
For me it works with scripts in the head as renderblocking. All scripts in the body with defer.
Another thing I noticed is, that the manual settings have to be done in the parent theme, if you have a child theme. Otherwise nothing was minified at my site…
- This reply was modified 5 years, 1 month ago by docbt.
Forum: Plugins
In reply to: [W3 Total Cache] Minify setting causing ‘defer parsing of JavaScript’ alertI am having the same issue.
Manuel mode is not working for me, cause I use another plugin to unload unused assets, which creates unique files dynamically after changes.
I tried it, but nothing was minified.The help wizard recognized the original files and not the ones of the other plugin.
In auto mode it works.Is it possible to use regex in the manual mode?
Would be nice to have more defer/async control in the future ??
Greetings
docAnd I found another validator problem, but I am not sure which function addes this…
<div id="um-login-widget-3" class="um-login-widget"> <div class="um um-login um-282 uimob500" style="opacity: 1;"> <div class="um-form">... </div> </div> <style>.um-282.um{max-width:450px}</style> </div>
The “<style>” tag is not allowed within a “<div>” tag.
I think it should be in the style attribute of the div
<div class="um um-login um-282 uimob500" style="opacity: 1;max-width:450px;">
Forum: Plugins
In reply to: [wpForo Forum] change/deactivate 404 page of wpforoI ended up in forcing a correct 404 page for my old permalink.
function force_404() { global $wp; $current_url = home_url( $wp->request ); $pos = strpos($current_url , '/forums'); if($pos > 0){ global $wp_query; $wp_query->set_404(); } } add_action( 'wp', 'force_404' );
This way I could remove the sites in google search console ??
At the beginning of ultimate-member\assets\js\pickadate\picker.date.js
The “if/else if/else” clause fails if you minify (remove) the line breaks.
(function ( factory ) { // AMD. if ( typeof define == 'function' && define.amd ) define( ['./picker', 'jquery'], factory ) // Node.js/browserify. else if ( typeof exports == 'object' ) module.exports = factory( require('./picker.js'), require('jquery') ) // Browser globals. else factory( Picker, jQuery ) }
Obviously because of the missing { }
(function ( factory ) { // AMD. if ( typeof define == 'function' && define.amd ) { define( ['./picker', 'jquery'], factory ) // Node.js/browserify. } else if ( typeof exports == 'object' ) { module.exports = factory( require('./picker.js'), require('jquery') ) // Browser globals. } else { factory( Picker, jQuery ) } }
Greetings doc
- This reply was modified 5 years, 1 month ago by docbt.
I added some min-height attributes for the heading and thumbnails.
It′s also better to use “webkit-line-clamp” to get always the same height for the content.All my boxes have now the same height on all devices.
Example:
.eael-grid-post .eael-post-grid-column { display: flex; height: 100%; } .eael-entry-header { min-height: 3em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; text-overflow: ellipsis } .eael-entry-media { height: 115px; } .eael-entry-thumbnail > img { min-height: 115px; } .eael-grid-post-excerpt > p { visibility: visible; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; text-overflow: ellipsis; }
- This reply was modified 5 years, 1 month ago by docbt.
Forum: Plugins
In reply to: [Asset CleanUp: Page Speed Booster] php error in version 1.3.4.4Line 378 is
if ($strContains === '' || strlen($strContains) < 5) {
From the Manual:
strlen() returns NULL when executed on arrays, and an E_WARNING level error is emitted.
Prior [to 5.3.0] versions treated arrays as the string Array, thus returning a string length of 5 and emitting an E_NOTICE level error.
Forum: Plugins
In reply to: [W3 Total Cache] Some files don′t get minimized and not compressedhttps://gtmetrix.com/reports/pescm.de/VIszwUJ5
The minify is okay – the gzip compession is the bigger problem…
- This reply was modified 5 years, 2 months ago by docbt.
Forum: Plugins
In reply to: [W3 Total Cache] Some files don′t get minimized and not compressedThanks for the quick reply, Marko! I see…
Do you know why those three files are not gzip compressed?
Forum: Plugins
In reply to: [W3 Total Cache] Query String not added to minified css / jsI am having the same problem… all minified files are loaded twice (one with query string one without) when “Rewrite URL structure” is enabled.
Is this bug still not fixed?Greetings doc
- This reply was modified 5 years, 2 months ago by docbt.