krystianergotopia
Forum Replies Created
-
Forum: Plugins
In reply to: [WP YouTube Lyte] Plugin not applying to videosI found a solution ??
adding the shortcode via text-element worked- This reply was modified 4 years, 9 months ago by krystianergotopia.
Forum: Plugins
In reply to: [WP YouTube Lyte] Plugin not applying to videosI’ve added the very first one with a pure html element like this but its not working:
<iframe width=”750″ height=”310″ src=”https://www.youtube-nocookie.com/embed/W0kdyizbcUI?rel=0&iv_load_policy=3″ frameborder=”0″ allow=”accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>The Shortcode like this:
[lyte id=“W0kdyizbcUI“ /]shows up like this: httpv://www.youtube.com/watch?v=“W0kdyizbcUI“
Forum: Plugins
In reply to: [WP YouTube Lyte] Plugin not applying to videosAt Keimster.de they are added in the classic editor and at nikorittenau.com with the wpbakery pagebuilder.
Forum: Plugins
In reply to: [AMP] Internal links to AMP versionThis is doing the job, but maybe you can investigate an option to include it in next update?
/* post link filter */ add_filter( 'post_link', 'change_amp_url', 10, 2 ); function change_amp_url( $url, $postobj ) { static $recursing = false; if ( $recursing ) { return $url; } $recursing = true; if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) { if ( function_exists( 'post_supports_amp' ) && post_supports_amp( $postobj ) ) { $url = amp_get_permalink( $postobj->ID ); } } $recursing = false; return $url; } /* content link filter */ add_filter( 'the_content', 'change_amp_url_content' ); function change_amp_url_content($content) { $dom = new DOMDocument(); $dom->loadHTML($content); $tags = $dom->getElementsByTagName('a'); foreach ($tags as $tag) { $link = $tag->getAttribute('href'); // original url $extralink = ''; if(stristr($link,'#')) { $pagelinktemp = explode("#",$link); $pagelink = $pagelinktemp[0]; $extralink = '#'.$pagelinktemp[1]; } else { $pagelink = $link; } if($pagelink!="") { $postid = url_to_postid($pagelink); $postobj = get_post($postid); // getting appropriate post object if($postobj) { $newlink = change_amp_url( $pagelink, $postobj ); //new url } else { $newlink = $link; } } else { $newlink = $link; } if($link != $newlink) // change if only links are different { $content = str_replace($link, $newlink.$extralink, $content); } } return $content; } /* override canonical link */ add_filter( 'wpseo_canonical', 'amp_override_canonical' ); function amp_override_canonical($url) { global $post; if ( substr(get_permalink($post->ID),-4)=="/amp" ) { $url = substr(get_permalink($post->ID),0,-4); } return $url; }
Forum: Plugins
In reply to: [AMP] Internal links to AMP versionThe code in the referenced link is also applying to the canonical link, which is really bad for SEO as the AMP is saying it is its own canonical. How to prevent this?
I am no programmer, maybe its working with sth like this?
function my_the_content_filter($content)
{
if (function_exists(‘is_amp_endpoint’) && is_amp_endpoint()) {
$patterns = array(
//patterns
);
$replacements = array(
//replacements
);
$content = preg_replace($patterns, $replacements, $content);
}
return $content;
}
add_filter(‘the_content’, ‘my_the_content_filter’);Please answer to [email protected]
I am willing to pay for this if necessary. Its important feature for us! Thank you!Please provide an answer or make an update. I am willing to pay for this, but this is quite important for us!
I tried it with this code to dequeue your script and the oneclick-upsell script from woocurve (they use also stripe). Its working for woocurve but your scripts are still loading on every page. How do I have to adjust this code?
function is_handsome_checkout(){
if( get_post_type() == ‘handsome-checkout’ ){
return true;
}
return false;
}//add_action( ‘wp_enqueue_scripts’, ‘wc_dequeue_scripts’, 10 );
add_action( ‘wp_footer’, ‘wc_dequeue_scripts’, 10 );function wc_dequeue_scripts() {
if ( ! is_checkout() && ! is_account_page() && ! is_handsome_checkout() ) {
wp_dequeue_script( ‘stripe’ );
wp_dequeue_script( ‘ocustripe’ );
}
}I understand, thank you. “hat exactly is the problem with wp-rocket? Because we need both plugins.
I checked again.. only woocommerce, stripe and staging activated. Same error message: On going requests error and retries exhausted. Please see yourself
- This reply was modified 7 years ago by krystianergotopia.
sorry, bulk action didnt work properly. Now 3 are activated. Staging must be as its for the staging-site
- This reply was modified 7 years ago by krystianergotopia.
Have a look now pls.
yes I reactivated everything, as it wasnt changing anything. I will do it again and make it in english for you.
As its our staging-site and this is only for admins available (pw-protected), I cannot give you a link here. But I messaged you about your contactform at your website and gave you credentials.
I did what you suggested, but there was no change. It still didnt work and there was no error in console but this error message from woocommerce (no logfile error in Stripe): “On going requests error and retries exhausted”
I cannot tell you more about this and cant give you access to our live-site, so pls have a look with credentials I sent you via your website contactform. If youre not paid by Stripe, we are willing to hire you to fix this, as it costs us money every day.
- This reply was modified 7 years ago by krystianergotopia.
still same problem