Gal Baras
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Store “core/interface” is already registeredProbably related to https://github.com/woocommerce/woocommerce/issues/46771, so just add a comment there. I’ve already linked this thread in that issue.
This vulnerability requires Administrator privileges, and those privileges give a user full access to everything anyway, so it’s almost a non-issue, but should be fixed nontheless.
Forum: Plugins
In reply to: [Contact Form 7] Problems with Checkboxes after UpdateI don’t see my code on your site. When I add the following code in the brower console, validation is no longer triggered on your page when the checkbox is checked or unchecked.
jQuery('.wpcf7 input[type="checkbox"]').on('change', function(e) {
e.stopPropagation();
});Try this, because it can work even when
$
is undefined.Disclaimer: I haven’t tried submitting the form, only checking/unchecking the box.
there is a problem after a major update and nobody reacts
This problem has been there long before the recent update, and several people have reported it, but for some reason, @takayukister shoots it down as a “wontfix”.
So great on both counts, @tessawatkinsllc !
@kraemit Other CF7 extensions have also released updates, so once all of the extensions on your site area compliant (as well as any custom code), there should be no more notices.
Good point. @takayukister can you please publish how to use Tag Generator v2?
Some of the plugins you’ve listed may be using the tag generator, and they should get updated soon.
So you have 2 options:
- Await those updates and ignore the messages, while the CF7 still supports the old tag generator
- Revert CF7 to the previous version until all the plugins release compatibility updates
Either way, your site should continue to work for a reasonable while.
Forum: Plugins
In reply to: [Contact Form 7] Problems with Checkboxes after UpdateTry using the following code on pages with forms (requires jQuery – if
$
is undefined, replace withjQuery
):$('.wpcf7 input[type="checkbox"]').on('change', function(e) {
e.stopPropagation();
});The latest release notes state:
6.0 introduces the tag-generator version 2 and rewrites existing generators based on v2. Tag-generator v2 allows you to implement a finer, more solid user interface than ever before.
The previous tag-generator (v1) will continue to work, but an
E_USER_DEPRECATED
level warning will urge users to upgrade to v2.If this is something you maintain, look at how the standard tags are being generated and adjust your code accordingly. Otherwise, refer to the respective developer.
Hopefully, @takayukister will soon publish more details instructions on this.
Try this:
add_filter( 'rank_math/opengraph/facebook/og_title', 'custom_return_post_title' );
add_filter( 'rank_math/opengraph/facebook/twitter_title', 'custom_return_post_title' );
function custom_return_post_title( $content ) {
if ( is_single() ) {
return get_the_title();
}
return $content;
}You can add check for page (
is_page()
) and others as required in theif
statement.Are you changing the SEO title or the post title? I think the variable
%title%
is the post title, which appears as the H1 element on the front end, while the SEO title can be set via the Rank Math snippet settings.If you’re happy to use a filter to set the titles to the post title, try this:
add_filter( 'rank_math/opengraph/facebook/og_title', 'custom_return_post_title' );
add_filter( 'rank_math/opengraph/facebook/twitter_title', 'custom_return_post_title' );
function custom_return_title( $content ) {
return get_the_title();
}This will ensure that no matter what the SEO title is, the social titles will match the post title.
In the Social tab, you can set the Facebook title (og:title) to something specific, then Separate the Twitter snippet from the Facebook one and set a specific Twitter title.
If this doesn’t work on your site, maybe you can share some screenshots.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Fatal Error After UpdateIt would help to see the complete stack trace to ensure there’s no involvement from the theme. Can you test with a standard theme (or Storefront)?
Can you try reinstalling the plugin, just to rule ou an update issue?
Maybe also try flushing the theme cache, removing transients and updating reference tables (WooCommerce > Status > Tools).
Finally, confirm your versions of PHP, WordPress and WooCommerce.
See https://rankmath.com/kb/open-graph-meta-tags/. The plugin already supports overriding these social titles in the Social tab of the post/page SEO settings.
That’s beside the point. The taxonomy should work when active.
I actually posted a reply, but it seems to have been deleted.
From what I can see, the media_tag taxonomy is active on all my sites. I’m not sure when it was added, but I’ve been using the plugin for many years, and never had reason to look for it.
My guess is that it was added active at some point, and the default activation was later changed for new installations, but didn’t affect mine.