cluster666
Forum Replies Created
-
Forum: Plugins
In reply to: [VS Knowledge Base] search form shortcode?Great, many thanks!
Forum: Fixing WordPress
In reply to: webp support – unsupported browsers?do you think it could work with following converter?
https://codepen.io/priteshk/pen/jaBBrVForum: Networking WordPress
In reply to: selection for path-based network not shownit seems to work after install sub-domain based and switch back to path based
define(‘SUBDOMAIN_INSTALL’, false);Forum: Fixing WordPress
In reply to: how to disable youtube iframe_api?iframe_ap should no longer appear in the html output … so I mean deactivated completely
Forum: Developing with WordPress
In reply to: remove title & description from page template?thanks!
Forum: Developing with WordPress
In reply to: remove title & description from page template?Thanks, I have now replaced is_single w/ is_page ??
But I still can not remove the wp meta title:// remove title from single page add_action('wp_head', 'wp_render_title_tag', 1); function wp_render_title_tag() { if ( is_page ( 5352 ) ) { remove_action( 'wp_head', '_wp_render_title_tag', 1 ); } }
Forum: Developing with WordPress
In reply to: remove title & description from page template?thanks, I was able to remove the yoast meta tags but how do I disable the WP title meta tag in the header of a specific page – if ( is_page ( 5352 ) )
add_action('wp_head', 'remove_one_wpseo_og', 1); function remove_one_wpseo_og() { if ( is_page ( 5352 ) ) { remove_action( 'wpseo_head', array( $GLOBALS['wpseo_og'], 'opengraph' ), 30 ); } /* Use a second if statement here when needed */ } add_filter( 'wpseo_title', 'remove_one_wpseo_title' ); function remove_one_wpseo_title() { if ( is_single ( 5352 ) ) { return false; } /* Use a second if statement here when needed */ }
Forum: Developing with WordPress
In reply to: remove title & description from page template?sorry for missing details, I use the yoast seo plugin
Forum: Plugins
In reply to: [Autoptimize] issues with network siteThanks Frank!
Great, the hardcoded way works without $langlink or subfolder specification, also with official package ??
<script type='text/javascript' src='<?php echo network_site_url(); ?>wp-includes/js/jquery/jquery.js?ver=1.12.4'></script>
Do tyou think disabling of jquery-migrate.min.js is OK if everything else works?
Regards, Ralph
Forum: Plugins
In reply to: [Autoptimize] issues with network sitethanks Frank,
I have checked the functions.php again and found this:// Dequeue jQuery Migrate script in WordPress. function isa_remove_jquery_migrate( &$scripts) { if(!is_admin()) { $scripts->remove( 'jquery'); $scripts->add( 'jquery', false, array( 'jquery-core' ), '1.12.4' ); } } add_filter( 'wp_default_scripts', 'isa_remove_jquery_migrate' );
could this be the reason?
Forum: Plugins
In reply to: [Autoptimize] issues with network sitethe real path is:
wp-includes/js/jquery/…
but for the network sites (I guess there is a WP re-write rule) in place:
for the main site:
https://www.mydomain.tld/wp-includes/js/jquery/…
and for other network sites:
https://www.mydomain.tld/en/wp-includes/js/jquery/…
https://www.mydomain.tld/fr/wp-includes/js/jquery/…All of the jquery links are working by default I can reach the same jquery file with /en, /fr .. or main site /
I do not use a subdomain based multisite, the permalinks are just set to:
en/
fr/
and
/
for the main site- This reply was modified 7 years, 8 months ago by cluster666.
- This reply was modified 7 years, 8 months ago by cluster666.
Forum: Plugins
In reply to: [Autoptimize] issues with network siteOK, I’ve tried with a hardcoded jquery in the header and variables for network_url, it shows the same result as above.
I have checked the link from sourcecode before AO was activated!
$langlink means “/en” “/fr” when change the languages
<script type='text/javascript' src='<?php echo network_site_url(); ?><?php echo $langlink; ?>wp-includes/js/jquery/jquery.js?ver=1.12.4'></script>
2.1:
* jquery.js is removed on all sites
* jquery code is aggregated in main site’s JS, but not other sitesdev-version:
* jquery.js is removed on main site but not on other sites
* jquery code is aggregated on main site, but not on other sitesForum: Plugins
In reply to: [Autoptimize] issues with network sitethank you!
OK, I understand but how do I set a hook for using site_url or wp-content-url … could you please post an example?Regards, Ralph
Forum: Plugins
In reply to: [Autoptimize] issues with network sitemaybe it could be solved by override the enqueue parts for the networksites (site 2, 3, 4) should use the JS output or file from site 1?
Forum: Plugins
In reply to: [Autoptimize] issues with network siteEverything works for the main site
The problem only happens with aditional networksites like domain.tld/en/, the main site domain.tld worksIn Version 2.10 release (not master) this js part is removed correctly:
<script type='text/javascript' src='https://www.mydomain.tld/en/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script>
but jquery part is missing in generated .JS (only for the further networksites /en/, /fr/ …)
With the files from Master this part is not removed and also jquery is not placed into the generated JS file (only for further network sites)
<script type='text/javascript' src='https://www.mydomain.tld/en/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script>
- This reply was modified 7 years, 8 months ago by cluster666.
- This reply was modified 7 years, 8 months ago by cluster666.