Tag: Pagely

  • Disable image optimisation on Pagely

    PressThumb can be disabled by renaming the pagely-pressthumb.php plugin in the mu-plugins directory to pagely-pressthumb.php.off.

    Pressthumb optimization can be re-enabled by renaming the file back to its original name.

  • Google font not loading / broken after Pagely clone using a Mai Engine powered WordPress theme

    Not sure exactly where the fault lied, but the issue was the font was pointing to domain.com/dom12345/wp-content/fonts/ instead of domain.com/wp-content/fonts/.

    Running pagely-wp search-replace /dom12345/wp-content/fonts/ /wp-content/fonts/ was enough to solve it.

  • Add http basic auth to Pagely website

    http basic auth is handy when you want to add a username and password to stop anyone (including web crawlers) from accessing a website you’re working on, like a staging or development website.

    To add http basic auth in Pagely, go to to the Pagely Dashboard (atomic.pagely.com), go to Apps and choose the site you want to add http basic auth to.

    From there, choose the ARES tab and choose New Access Rule. Set the options you want – including the username and password – hit Save and then choose Deploy Changes.

    Anyone accessing the website in future will need to enter the username and password to proceed.

    Tip: if you’re on a Mac, you can save the username and password in Safari to save you having to re-enter it in future.

  • Run WP-CLI commands on Pagely without errors from PHP version

    I hit an issue on Pagely where I was running a WP-CLI command – via SSH – but I kept hitting a PHP fatal error.

    When I looked into the error it was because the site was running PHP 7.4, but WP-CLI on Pagely was running PHP 7.3 so my code was breaking on the command line.

    Turns out all you need to do is use pagely-wp instead of wp (thanks Kevin!) and the command will run at the correct version of PHP.

    So instead of:

    wp search-replace staging.website.com www.website.com


    pagely-wp search-replace staging.website.com www.website.com
  • Convert .pfx SSL certificate to .cer

    From the command line, replacing the filename as necessary (you will need the password for the certificate, if one is assigned):

    $ openssl pkcs12 -in wildcard.filename.com_2022.pfx -out wildcard.filename.com_2022.cer -nodes

    I needed to do this to convert a .pfx SSL certificate for use with Pagely.