How To Make Divi Blog Grid Posts The Same Height

How To Make Divi Blog Grid Posts The Same Height

Equalize your DIVI Blog Grid column height

Add the following code to your Custom CSS box:

Your Job Done

/*Equalize Blog Columns*/

.et_pb_gutters3 .et_pb_column_4_4
.et_pb_blog_grid .column.size-1of3
.et_pb_post, .et_pb_gutters3.et_pb_row
.et_pb_column_4_4 .et_pb_blog_grid
.column.size-1of3 .et_pb_post 

{

	min-height: 30em !important;
}

How to Turn Off Related YouTube Videos in WordPress websites

How to Turn Off Related YouTube Videos in WordPress websites

How to Disable Related YouTube Videos in WordPress Elementor, Divi, and other page builders

Go to any embedded YouTube video. You should see the YouTube videos URL inside of the link. Instead of the normal YouTube URL, add “?rel=0” or “&rel=0” at the end of the URL. This will fetch the YouTube video, but turn off the related videos at the end of it. For example,a normal YouTube URL:

1
https://www.youtube.com/watch?v=y-TpPP3D33E&t=38s

Here is one with the &rel=0 added in:

1
https://www.youtube.com/watch?v=y-TpPP3D33E&t=38s&rel=0

And here is one with the ?rel=0 added in:

1
https://www.youtube.com/watch?v=y-TpPP3D33E&t=38s?rel=0
How to hide striked out price on Product and Shop page on woocommerce?

How to hide striked out price on Product and Shop page on woocommerce?

When you apply discount to product(s), WooCommerce, by default, shows the sale price with regular price stricken out. This characteristic can be seen in shop page, product page, cart page as well as checkout page. With the code snippet given below, you can choose to hide striked out price on product, shop and category page, with the help of our Dynamic Pricing and Discounts plugin for WooCommerce.

Code snippet to hide strike out price on product and shop page

add_filter('woocommerce_get_price_html', "xa_only_sale_price", 99, 2);

function xa_only_sale_price($price, $product)
{
    if(!is_cart() && !is_checkout() && !is_ajax()){
        if ($product->is_type('simple') || $product->is_type('variation')) {
            return regularPriceHTML_for_simple_and_variation_product($price, $product);
        } 
    }
        return $price;            
    
}

function regularPriceHTML_for_simple_and_variation_product($price, $product){
    return wc_price($product->get_price());
}

Following is a screenshot of how the product price will be shown on product page.WooCommerce Dynamic Pricing and Discounts | Price display in Product page

Price display in Product page

Following is a screenshot of how the price will be shown on cart page.

WooCommerce Dynamic Pricing and Discounts | Price display in Cart page