virtualedgesolutions
Forum Replies Created
-
For the record, THIS HAS NOT BEEN RESOLVED.
For the benefit of anyone else who comes across this, here’s the PHP snippet I’m using in Code Snippets to replace the link in the Elementor Pro checkout form:
add_action( 'wp_footer', 'ves_replace_elementor_checkout_login_link', 20 );
function ves_replace_elementor_checkout_login_link() {
// only on WooCommerce checkout & for guests
if ( ! function_exists('is_checkout') || ! is_checkout() || is_user_logged_in() ) {
return;
}
// build the My Account URL with checkout redirect
$account_url = esc_url( add_query_arg(
'redirect_to',
urlencode( wc_get_checkout_url() ),
wc_get_page_permalink( 'myaccount' )
) );
?>
<script>
document.addEventListener('DOMContentLoaded', function(){
// 1) Replace the toggle link HTML
var toggleWrapper = document.querySelector('form[name="checkout"] .woocommerce-form-login-toggle.e-checkout-secondary-title');
if ( toggleWrapper ) {
toggleWrapper.innerHTML =
'Returning customer? ' +
'<a href="<?php echo $account_url; ?>" class="custom-login-link">' +
'Click here to login' +
'</a>';
}
// 2) Hide the inline login fields (so the empty bordered box goes away)
var loginContainer = document.querySelector('form[name="checkout"] .e-woocommerce-login-anchor');
if ( loginContainer ) {
loginContainer.style.display = 'none';
}
});
</script>
<?php
}LOL, that’s what I’m now working on. I’m trying to create a snippet that changes the “Returning customer? Click here to login” link to just redirect to the login screen, and then redirects back to the checkout page. It’s sad that nobody else has this issue to make it worth cloudflare fixing this, and I instead have to work around it like this
Even when I have the turnstile disabled on the checkout page, and when I have it disabled during “Pay for Order”, but enabled for logins, it still doesn’t work. In this case, it doesn’t even display the turnstile on the page, but when I login, it gives the same error, “Please verify that you are human.” Also, changing the widget location on the checkout page doesn’t make a difference. Please advise!
@riversatile Thanks for the advice. However, the checkout widget defaults to inactive caching, and I checked that it is set to inactive. The issue is that the turnstile automatically runs when the page loads, for the checkout. But then, when you click on “click here to login”, it then expects another turnstile check for that field, that doesn’t see the already-existing turnstile that says “success” below that field. The same thing happened before for forms on popups.
This seems to have been an issue people keep mentioning for over a year. Anyone have a solution or work-around?
Forum: Plugins
In reply to: [RSS Feed Retriever] disable duplicate images in podcast feedThanks to chatgpt, I created a code snippet that removes the image from Seriously Simple Podcasting’s podcast feed output, so that there won’t be a duplicate image in the podcast feed. If anyone’s interested, let me know and I’ll provide it.
Forum: Plugins
In reply to: [RSS Feed Retriever] disable duplicate images in podcast feedI don’t know PHP, but this snippet that Rank Math provided me prevents their plugin from adding the duplicate image to the podcast feed, when I enable their plugin to add the images to my RSS feed:
add_filter('rank_math/frontend/rss/before_content', function ($content) {
global $wp;
$current_url = home_url(add_query_arg($_GET,$wp->request));
if ( str_contains( $current_url, '/feed/podcast') ) {
return '';
}
return $content;
}, 10, 1);Can you, or someone else who sees this post, help to adapt it to the site on which I’m using RSS Retriever? Thanks!
Forum: Plugins
In reply to: [Lazy Load Elementor Background Images] Update+1 This is a real disappointment. Hope this gets fixed. This was the best solution for lazyloading background images using WP Rocket and Elementor! FYI, if anyone’s following this issue, the best alternative is to use Optimole, because it lazyloads Elementor background images. For this reason, I had to switch to Optimole even though I like Imagify better.
Trying something else…
Worked with tech support, which was helpful and responsive. I was provided a custom zip file of the plugin which solved my problem, and am told it will be incorporated soon. Thanks!
I don’t want to manually map any categories, but your instructions indicate that at least one category must be manually mapped, and I can’t click continue on the category mapping page without selecting one. When I leave one category checked and manually mapped, only the products in that one category are populated in the feed, and when I have all of them checked and only one mapped, it reverts to having only the one checked and manually mapped. I don’t see how “the plugin sets the default categories”, after which “I can uncheck unwanted categories”.
Submitted
Updated to 1.2.1, deleted the feed, created a new feed, and still the same. Having two checked, one of which has a category specified. Says it successfully creates the feed, but when I go back and look, the map category screen reverts to only having the one with a specified category checked, and the feed won’t populate with the item in the other category.
It was the header for the entire site. I created that temporary url for a short time till I figured out the solution, and then removed the url after figuring it out. The main url, that now has the fix applied is insurancewarehouse.org.