cant enable theme in multisite

Finally I’ve found that, in wp-sitemeta DB table, allowedthemes record value was incorrectly serialized (dont know why) and there was a:4 (instead of a:3, because actual length of array was: 3 values of s:) a:4:{s:13:”twentysixteen”;b:1; s:5:”meris”;b:1; s:8:”my_theme”;b:1;} I changed a:4 to a:3 and it worked. (also, make sure there is no more allowedthemes rows in … Read more

How to get custom image size for image uploaded in Customizer

Apparently, your mod is storing the complete path to the image as a string. That leaves you little alternative but to do a search and replace on the string: $img = get_theme_mod(‘image-1’); if (!empty ($img)) { $img = preg_replace (‘.(jpg|jpeg|png|gif)$’,’-525×350$0′); if (!file_exists($img)) $img = get_template_directory_uri().’/images/default.jpg’; } else if (!file_exists($img)) $img = get_template_directory_uri().’/images/default.jpg’; In words. Get … Read more

I want to run different WordPress websites under the same database

I believe a multisite solution + WooCommerce plugin (which is multisite compatible) would answer to the specifications you have listed. About the multisite installation I strongly recommend you to read: https://codex.wordpress.org/Before_You_Create_A_Network https://premium.wpmudev.org/blog/how-to-build-a-wordpress-multisite-network-with-multiple-domains/ As explained in the tutorial above, you can set different domain names for each of your sites, it just requires an additionnal plugin … Read more

Being asked to update a theme that I don’t have

Most likely this is caused by interference between the Elementor plugin and the Monstroid 2.0 theme. As you can see from its developer’s page Monstroid comes with a plugin called Kava Extra. This plugin, now discontinued by its developer, contains templates for the Kava Theme, which also depends on Elementor. I’m not 100% sure how … Read more