Jan
Forum Replies Created
-
Guten Morgen Matthias,
danke für die schnelle Rückmeldung!
Ihr k?nntet einmal intern diskutieren, ob Ihr das sinnvoll findet, ich bin garantiert nicht der Einzige, der sich über eine L?sung dafür freuen würde.
Vielleicht einfach eine allgemeine Einstellung für alle Services, sowas wie: “Cookie-Banner für Administratoren deaktivieren”.
(In meinem Fall verf?lschen sich die Daten in einer selbstgehosteten Besucherstatistik.)
Liebe Grü?e
JanForum: Plugins
In reply to: [Germanized for WooCommerce] Internal errorHi Tim,
der Fehler “Call to undefined method” taucht in der Regel auf, wenn z.B. ein Plugin nicht vollst?ndig hochgeladen oder veraltet ist.
Ist deine WooCommerce-Installation auf dem neuesten Stand?
Liebe Grü?e
JanForum: Plugins
In reply to: [Minify HTML] Matomo Images Not LoadingHi Tim,
thanks for your reply.
I replaced the domain with example.com, because I guess my customer does not want to have his domain here. ??
Setting everyting to “No” does not help, images in Matomo are not loading.
Changing the option “Minify HTML” to “Disable” works, all images are loading.
Forum: Plugins
In reply to: [Regenerate Thumbnails] Some sizes not workingThe image sizes are added in this file: /wp-content/themes/Divi/post_thumbnails_divi.php
<?php add_theme_support( 'post-thumbnails' ); global $et_theme_image_sizes; $et_theme_image_sizes = array( '400x250' => 'et-pb-post-main-image', '1080x675' => 'et-pb-post-main-image-fullwidth', '400x284' => 'et-pb-portfolio-image', '510x382' => 'et-pb-portfolio-module-image', '1080x9999' => 'et-pb-portfolio-image-single', '400x516' => 'et-pb-gallery-module-image-portrait', '2880x1800' => 'et-pb-post-main-image-fullwidth-large', ); $et_theme_image_sizes = apply_filters( 'et_theme_image_sizes', $et_theme_image_sizes ); $crop = apply_filters( 'et_post_thumbnails_crop', true ); if ( is_array( $et_theme_image_sizes ) ){ foreach ( $et_theme_image_sizes as $image_size_dimensions => $image_size_name ){ $dimensions = explode( 'x', $image_size_dimensions ); if ( in_array( $image_size_name, array( 'et-pb-portfolio-image-single' ) ) ) $crop = false; add_image_size( $image_size_name, $dimensions[0], $dimensions[1], $crop ); $crop = apply_filters( 'et_post_thumbnails_crop', true ); } } if ( function_exists( 'et_screen_sizes' ) && function_exists( 'et_is_responsive_images_enabled' ) && et_is_responsive_images_enabled() ) { // Register responsive image sizes. $et_screen_sizes = et_screen_sizes(); if ( $et_screen_sizes && is_array( $et_screen_sizes ) ) { foreach ( $et_screen_sizes as $breakpoint => $width ) { $height = round( ( $width * ( 56.25/100 ) ) ); // 16:9 aspect ratio. add_image_size( "et-pb-image--responsive--{$breakpoint}", $width, $height, $crop ); } } }
And this file is loaded in the themes functions.php: /wp-content/themes/Divi/functions.php
function et_setup_theme() { … require_once $template_directory . '/post_thumbnails_divi.php'; … } add_action( 'after_setup_theme', 'et_setup_theme' );
Hope this helps, I am still trying to find a solution. ??
Thank you very much, have a great day!
Forum: Fixing WordPress
In reply to: Double page load because WordPress redirects plus char to percent 20@jaygumanid Thank you very much, this helps a lot!
Do you have PayPal? I want to thank you and contacted you on LinkedIn.
Have a great day.Forum: Plugins
In reply to: [WooCommerce] Send Email To Customer When Order Download Limit ChangesPossible Solution:
function mail_to_customer_on_downloads_remaining_change ( $post_id, $post_data ) { if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || $post_data["post_type"] != "shop_order" ) { return; } global $wpdb; $downloads_remaining_db = $wpdb->get_results( "SELECT
downloads_remaining
FROM{$wpdb->prefix}woocommerce_downloadable_product_permissions
WHEREorder_id
= $post_id", ARRAY_A ); $downloads_remaining_post = $_POST["downloads_remaining"]; for ( $i=0; $i < count($downloads_remaining_db); $i++ ) { if ( !in_array($downloads_remaining_db[$i]["downloads_remaining"], $downloads_remaining_post) ) { $old_text = esc_html( 'We have finished processing your order.', 'woocommerce' ); $new_text = 'we have reset the download limits in your order. You can now download the files again:'; $order = wc_get_order( $post_id ); $order_id = $order->get_id(); $billing_email = $order->get_billing_email(); $mailer = WC()->mailer(); $recipient = $billing_email; $subject = 'Download limits in your order #' . $order_id . ' changed'; $content = wc_get_template_html( 'emails/customer-completed-order.php', array( 'order' => $order, 'email_heading' => 'Order #' . $order_id, 'sent_to_admin' => false, 'plain_text' => false, 'email' => $mailer ) ); $content = str_replace( $old_text, $new_text, $content); $headers = "Content-Type: text/html\r\n"; $mailer->send( $recipient, $subject, $content, $headers ); return; } } } add_action( 'pre_post_update', 'mail_to_customer_on_downloads_remaining_change', 10, 2 );Forum: Developing with WordPress
In reply to: Redirect to custom page on fatal error@benniledl thank you very much, that works!
If anyone is interested, the php-error.php file is loaded from \wp-includes\class-wp-fatal-error-handler.php
if ( defined( 'WP_CONTENT_DIR' ) ) { // Load custom PHP error template, if present. $php_error_pluggable = WP_CONTENT_DIR . '/php-error.php'; if ( is_readable( $php_error_pluggable ) ) { require_once $php_error_pluggable; return; } }
By default you can add a 404.php file to your theme.
If you add this code to the php-error.php file, you can also include a 500.php in your theme:<?php $file = get_stylesheet_directory() . '/500.php'; if ( file_exists( $file ) ) { include( $file ); }
Forum: Fixing WordPress
In reply to: Non-Facebook Like ButtonsHi @terry-odell ,
yes, take a look here: https://www.ads-software.com/plugins/tags/like-button/
Have a great day.Hi @rankmathteam ,
yes, I guess this will help. ??
Thank you very much for your reply!I manually enabled the option “include empty”, so in this case it would make sense to include this sitemap in the main sitemap too.
By “empty” Rank Math SEO means not linked to a post, but in my case content is loaded dynamically.
- example.com/my-taxonomy/term-1
- example.com/my-taxonomy/term-2
- example.com/my-taxonomy/term-3
- …
All these links do have content and are just not connected with a post.
You could discuss internally whether it makes sense to include sitemaps with only “empty” tags, if the user manually activated the “include empty” option.
Anyway, you’ve helped me a lot.
Have a great day! ??
JanForum: Fixing WordPress
In reply to: Plus Char In Url Redirects ToHi @threadi ,
thank you for your reply! I really appreciate it.
I will look sloser into this topic.
Thanks, have a great day. ??
JanHi @rankmathteam ,
thanks for your reply.
Watching the YouTube Video helped me a lot.
I was in basic mode and thats why options were hidden..
Thank you, have a great day! ??Forum: Plugins
In reply to: [WooCommerce] Easy way for 2 variations per productForum: Plugins
In reply to: [WooCommerce] Easy way for 2 variations per productHi @iguanamom ,
you only need 1 variation where you select “Any Fabric #1” and “Any Fabric #2”.
Does this solution work for you?
Jan@jellybean18 Try this:
- Open “/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php”
- go to line 4696
- replace ” ” with “” (1x for prefix and 1x for suffix)
Have a great day ??