Social Media Images Sizes

Facebook image
1200×1200

Facebook cover
1702 x 630 px

Facebook link
1200 x 627 px

Facebook story
1080 x 1920 px

Instagram post
1080 x 1080 px

Instagram story
1080 x 1920 px

Twitter post
1024 x 512 px

Twitter header
1500 x 500 px

Email header
600 x 300 px

LinkedIn post
1200 x 627 px

YouTube profile image
800 x 800 px

YouTube channel cover photo
2560 x 1440 px

WordPress Elementor Popup issue with WPML translations

I came across with a issue on a WordPress theme, with Elementor and WPML.

The theme is using a POPUP for the some menus.
We have a PT and EN version with WPML.
We have created the translation to EN but it isn’t being printed by WP in the EN version of the site, just the PT version.

So, to use translated POPUPs, you might need to translate them under the default language of the WP.

store-mega-menu-en needs to be created under PT language…

To change instance – for the menu to be written on (the entire site)) this is how to change it

PHP message: PHP Warning: file_get_contents(): SSL operation failed – SSL routines:ssl3_get_server_certificate:certificate verify failed

FastCGI sent in stderr: “PHP message: PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in

$options=array(
    "ssl"=>array(
        "verify_peer"=>false,
        "verify_peer_name"=>false
    ),
); 

$url_request = 'https://www.something.com/else.php';

$html = file_get_contents($url_request, false, stream_context_create($options));;

SQL – Update regular prices on WooCommerce

BACKUP DATABASE BEFORE EXECUTE THE QUERIES

UPDATE wp_postmeta AS t1
INNER JOIN wp_postmeta AS t2 ON
t2.post_id = t1.post_id AND t2.meta_key = '_regular_price' SET t1.meta_value = t2.meta_value
WHERE t1.meta_key = '_price';
DELETE FROM wp_postmeta WHERE meta_key = '_sale_price';
DELETE FROM wp_postmeta WHERE meta_key = '_sale_price_dates_to';
DELETE FROM wp_postmeta WHERE meta_key = '_sale_price_dates_from';

as seen on https://www.webdesign101.net/remove-woocommerce-sale-prices/ by LEONID BEILIS