Khang Minh
Forum Replies Created
-
Forum: Plugins
In reply to: [Better WordPress Minify] Google FontsHello, thanks for using BWP Minify.
https://fonts.googleapis.com/css?family=Open+Sansis considered an external asset and will be ignored by the plugin.If you have enqueued the CSS file, you might want to move it to its original position (navigate to BWP Minify >> Manage enqueued files, click “select” and then choose “stay at position”).
Do you notice any javascript error reported in your browser’s console?
You should add the above snippet to your theme’s functions.php, i.e.
/home/matthelm/public_html/wp-content/themes/your-theme/functions.php, NOT/home/matthelm/public_html/wp-includes/functions.php.Can I see your registration page?
Pretty simple I think: http://betterwp.net/wordpress-plugins/google-xml-sitemaps/#exclude-items
Forum: Plugins
In reply to: [Better WordPress Minify] BWP JS and CSS still left on my siteGlad you have it sorted. If you need additional support please feel free to post.
Hello,
Can you post a screenshot of the error you’re seeing?
Thanks.
Hello, thanks for using BWP Google XML Sitemaps.
As stated in the setting page, default values are only used when valid ones can not be calculated. Using a filter is the correct way to go.
Inside your
my_freqfunction you must return a value, for example:function my_freq($freq, $item) { return 'weekly'; }For more info, see: http://api.betterwp.net/bwp-google-xml-sitemaps/master/hooks.html#filter_bwp_gxs_freq
@drriley would you mind sharing what your solution was so future readers can benefit from that?
Can you try enabling
WP_DEBUG(https://codex.wordpress.org/WP_DEBUG) and then refresh the page to see the actual error? I tested the above snippet and it worked for me.Sorry, it should be:
add_action('template_redirect', 'exclude_recaptcha_js'); function exclude_recaptcha_js() { global $bwp_capt; if (!is_singular()) { remove_action('wp_footer', array($bwp_capt->get_captcha_provider(), 'printRecaptchaJS'), 99999); } }You can add the above codes to your theme’s
functions.php. And yes,is_singularis something likeis_page, but it supports custom post types, more info here: https://codex.wordpress.org/Function_Reference/is_singularSearch engines have a daily limit on how many times you can ping them. By default the plugin pings search engines whenever there are newly published posts. 3-6 posts a day is completely normal so the default ping limit should work fine for you.
Hi,
For now you can use the
template_redirectaction hook to NOT print captcha javascript on certain pages, for example:add_action('template_redirect', 'exclude_recaptcha_js'); function exclude_recaptha_js() { global $bwp_capt; if (!is_singular()) { remove_action('wp_footer', array($bwp_capt->get_captcha_provider(), 'printRecaptchaJS'), 99999); } }Forum: Plugins
In reply to: [Better WordPress Minify] breaks css rules using calcHi,
This is a known issue and will be fixed in the next version.