Aahan Krish
Forum Replies Created
-
?? Sad, but kinda makes sense. Thanks for your time Mika ??
@gooma2 and everyone else who care: It’s been 6 days, since the last update from Joost, and it’s been hard waiting, considering the seriousness of the situation. But here comes some good news…
Joost has released v1.2.4 of WordPress SEO by Yoast plugin, and he says that this is a much needed update that is “required” for the upcoming update to New SEO module / plugin to work. Precisely, Joost tweeted:
needed this fix [v1.2.4] for that, news is next
So, stay patient. ?? Cheers!
PS: No ETA for News sitemap plugin though. But we can expect it soon.
By the way, I also tried using
wp_print_styles
instead ofwp_enqueue_scripts
, still no luck.Yes, in my theme functions.php.
EDIT: I also tried lower priority numbers (as low as 1). Doesn’t change anything.
OR it would be great if you can tell me how to replace this function (from your plugin) with some code in my function.php (sorry, I am not that good with PHP, but I am just into learning it):
function ippy_bcq_add_scripts() { $options = get_option('ippy_bcq_options'); $valuebb = $options['bbpress']; $valueco = $options['comments']; $ippy_bcq_bbp_fancy = get_option( '_bbp_use_wp_editor' ); if ( function_exists('is_bbpress') ) { if ( is_bbpress() && ( $valuebb != '0') && !is_null($valuebb) && ($ippy_bcq_bbp_fancy == '0') ) { wp_enqueue_script("bcq_quicktags", plugin_dir_url(__FILE__) . "quicktags.js", array("quicktags","jquery"), "1.8", 1); wp_enqueue_style("bcq_quicktags", plugin_dir_url(__FILE__) . "quicktags.css", false, "1.8"); wp_print_styles('editor-buttons'); } } if ( comments_open() && is_singular() && ( $valueco != '0') && !is_null($valueco) ) { wp_enqueue_script("bcq_quicktags", plugin_dir_url(__FILE__) . "quicktags.js", array("quicktags","jquery"), "1.8", 1); wp_enqueue_style("bcq_quicktags", plugin_dir_url(__FILE__) . "quicktags.css", false, "1.8"); wp_print_styles('editor-buttons'); } } if( !is_admin() ) { add_action('wp_print_styles', 'ippy_bcq_add_scripts'); }
Yes, that’s what I am asking. How do I do that? Something’s wrong with the way I am doing it. This is what I’ve tried (and some variants of it as well, actually):
add_action('wp_enqueue_scripts','aahan_register_script'); function aahan_register_script(){ wp_deregister_script('quicktags'); wp_register_script('quicktags', 'https://static-domain.com/wp-includes/js/quicktags.js', false, false); wp_enqueue_script( 'quicktags' ); }
Is something wrong with the way I am doing it?
Hello Mika,
I am talking about
wp-includes
and NOTwp-content
directory. And since you asked, I’ve set a different domain for thewp-content
directory by adding this in my wp-config.php:define( 'WP_CONTENT_URL', 'https://static-content.com/wp-content');
But that doesn’t change the URLs of JavaScript files loaded from
wp-includes
to the new domain. And as there’s no such thing asWP_INCLUDES_URL
, I have to manually un/de-register each handle and have it enqueued with the static domain (from the e.g. static-content.com).The handle for
https://example.com/wp-includes/js/quicktags.js
which the Basic Comment Quicktags plugin uses (as a dependency) isquicktags
, and trying to un/de-register the handle and enqueuing it with the static domain somehow breaks the plugin’s CDATA JS output in the footer.What I am asking is, what is the proper way to have this file —
https://example.com/wp-includes/js/quicktags.js
— served from the domain that serves static files, i.e. like this —https://static-domain.com/wp-includes/js/quicktags.js
I would be very helpful if you can give me the proper function/code to un-register and enqueue the handle (quicktags), as my method seems to break the plugin.
Hope I am clear enough this time. ??
Word from Joost:
I’m working on updating that [News SEO module] right now. It’s going to work as a normal plugin that requires WordPress SEO by Yoast installed, instead of as a module, so I can properly update it through wp.org.
Cheers!
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Google News Sitemap no new postsForum: Everything else WordPress
In reply to: Carousel/JetPack coming to self hosted?As of June 7th this is what Michael D Adams (Automattican) said:
We’re working on including WordPress.com’s Carousel feature in Jetpack right now, actually.
Still no ETA. But I’ve found this (yes, it’s the subversion repository for Jetpack that contains the Carousel module, and clearly they are working on it).
@gamingexamier: https://downloads.www.ads-software.com/plugin/wordpress-seo.1.1.9.zip
You can download any version of a plugin from the Developers tab: https://www.ads-software.com/extend/plugins/wordpress-seo/developers/
Okay, there’s a new version. But what we need is an update for the News SEO module I think.
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Google News Sitemap no new postsI believe it’s got nothing to do with the plugin. The fix has to, I think, come from the News SEO module we use — which’s yet to receive the much needed update.
Forum: Plugins
In reply to: [WP-Markdown] How to add a custom button to WP-Markdown?Thanks Stephen, that would be awesome! ??