I used the latest version of Elementor 3.11.1 (free and pro). There is an error to display image in the lightbox. You can see this screenshot: https://prnt.sc/cDQCyupXUhOC.
I checked the oldest version there is no problem. Please help me with this issue.
Thank you.
]]>It is important to be able to copy/paste in forum/review replies, in order to include things like code snippets, translated text, and so forth.
]]>screenshot – https://prnt.sc/tlZ9Hv4zV_j1
]]>Seeing other topics that have been placed I saw that it will regenerate the elementor css and js, I already did it. As I said I should clear the browser cache and also the wordpress cache, even delete the cloudflare chache, but the problem persists. The same thing happens to me with the options to show comments and the counter. The rest of the page if the applied design is working
]]>Hope someone can help me out?
I am building a new shop with Woocommerce and elementor and i want to display the SKU of a variable product on the product page, i need a shortcode for this. The default shortcode shows the SKU of the parent product wich is not right.
The SKU needs to change whenever the user changes te dropdown.
I found the code below but i need a shortcode instead.
The code below adds the right sku on the variable product description.
add_action('woocommerce_single_product_summary', 'display_product_sku_and_gtin', );
function display_product_sku_and_gtin() {
global $product;
echo '<p>' . __("SKU:") . ' ' . $product->get_sku() . '</p>';
if( get_post_meta( $product->get_id(), 'barcode', true) )
echo '<p>' . __("GTIN:") . ' ' . get_post_meta( $product->get_id(), 'barcode', true) . '</p>';
}
// Display product variations SKU and GTIN info
add_filter( 'woocommerce_available_variation', 'display_variation_sku_and_gtin', 20, 3 );
function display_variation_sku_and_gtin( $variation_data, $product, $variation ) {
$html = ''; // Initializing
// Inserting SKU
if( ! empty( $variation_data['sku'] ) ){
$html .= '</div><div class="woocommerce-variation-sku">' . __('SKU:') . ' ' . $variation_data['sku'];
}
// Inserting GTIN
if( get_post_meta( $variation->get_id(), 'barcode', true ) ){
$gtin = get_post_meta( $variation->get_id(), 'barcode', true );
$html .= '</div><div class="woocommerce-variation-gtin">' . __('GTIN:') . ' ' . $gtin;
}
// Using the variation description to add dynamically the SKU and the GTIN
$variation_data['variation_description'] .= $html;
return $variation_data;
}
]]>