I have a bunch of widgets that I load from php files, like so:
I added a PHP CODE widget and inside wrote:
<?php
include '/wp-content/themes/myTheme/parts/block1.php';
?>
This worked well on my localhost, but for some reason it stopped working
when I uploaded that website online (and switched the home and site_url of course).
Any ideas?