It happens because the page with the gallery is on a different host than the one where the thumbnails are coming from.
- Go to WordPress dashboard > Plugins > Editor and select Justified Image Grid (or use an FTP client).
- Find timthumb-config.php
- Add the host of your website, or use the wildcards to set it up according to your needs:1234567$ALLOWED_HOTLINKERS = array('SAME_HOST', // SAME_HOST allows child sites (subdomains for WMPL, CDN) e.g. en.example.com or cdn.example.co.uk//'example.com', // allow example.com NOT subdomain.example.com or www.example.com//'*example.com', // allow subdomain.example.com and also example.com and www.example.com//'*.example.com', // allow www.example.com NOT example.com'googleusercontent.com' // Google's cached view);
While possible and easier, it's not recommended to disable the hotlinking protection altogether:
1 | define ('BLOCK_EXTERNAL_LEECHERS', false); // Hotlinking protection |