Lukasz
Forum Replies Created
-
Thanks for the resource @takayukister
Forum: Fixing WordPress
In reply to: wp_enqueue_script( ‘jquery-ui-autocomplete’ ) – extra scripts loadedThanks. Those are related to gutenberg.
I’m going to do a custom build instead of using WP scripts, seems more headache then it’s worth.
Hi @robert681,
Sorry, I didn’t see your response but did manage to get it working by reinstalling the plugin and manually entering the code instead of scanning it with my phone, it was failing when I was scanning the barcode on my pixel phone.
Unfortunately it does not.
Also, another error is present but disappears when I deactivate the plugin:
Notice: wp_enqueue_script() was called incorrectly. “wp-editor” script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see Debugging in WordPress for more information. (This message was added in version 5.8.0.)
Forum: Plugins
In reply to: [Contact Form 7] Replacement for filter wpcf7_display_messageThanks for the technical explanation @plantprogrammer,
Looks like I’m out of luck!
What other, more advanced/customizable form plugins do you use @plantprogrammer ?
Through google searching, not possible localize the native html5 date input…so back to text input dates, great.
Omg nvm. This is a html5 default behavior haha..I always made custom date ranges using the text field.
So you are registering jquery ui datepicker as a backup for older browsers?
I still need to look into translating.
Awesome, thank you!
Forum: Plugins
In reply to: [Polylang] Possible to show the user the blog is available in what languages?awesome, glad to hear it!
welcome, correct!
You can use is_plugin_active( ‘polylang/polylang.php’ ) But the author recommends checking if function exists before using it, example
if ( function_exists( 'pll_count_posts' ) ) { }That would be more proper then checking if plugin active every single time.
Forum: Plugins
In reply to: [Polylang] Possible to show the user the blog is available in what languages?Yes It’s possible, I was looking for same thing, I found the pll_get_post_transaltions() function which I used in combination with pll_get_post to get the available languages. You would have to drop this in a relevant template file depending on your theme:
$avilable_languages = pll_get_post_translations(get_the_ID()); echo 'This post is available in: '; foreach($avilable_languages as $slug => $val) { echo '<a href="' . esc_url( get_permalink( pll_get_post( $val, $slug ) ) ) . '">' . pll_get_post_language($val, 'name') . '</a>, '; }Forum: Plugins
In reply to: [Polylang] Block based widgets, no translation per widget?Yes, I just created widget areas for each language but it looks like the latest version of the pro has added this:
Pro: Allow to filter blocks by language in the widget block editor
However this use to be free feature.
In Gutenberg Phase 4, WP core will have a native multilingual solution! They are just not rushing it since there is a bunch of solutions currently on the market that work well.
But this will be good for performance and no longer having to rely on external plugin.
https://wptavern.com/how-will-gutenberg-phase-4-impact-multilingual-solutions-for-wordpress
Forum: Plugins
In reply to: [Disable Lazy Load] disable specific class@saveatrain, it will work only if your image is called hero-image.png, you can replace bolded part with a unique string in your HTML image tag, name of image seems simplest so far in gutenberg block editor since you can’t always add a unique class to an image. Would be nice if you can add skip-lazy class to images you don’t want lazy loaded.
if ( false !== strpos( $image, ‘hero-image.png‘ ) ) {
- This reply was modified 4 years, 10 months ago by Lukasz.