This is a simple scaffold of GeneratePress child theme containing most common snippets and corrections.
Go to your themes folder
$ cd wp-content/themes
Clone this repo with following command:
$ git clone https://github.com/adam-aido/generatepress-child.git
And activate it with wp-cli:
$ wp theme activate generatepress-child
There is a method forcing PHP Mailer to use SMTP in functions.php
. I use this method to increase email notifications deliverability and avoid installing third party SMTP plugins. To make it work add custom constants to your wp-config.php
file in your WordPress root folder:
define( 'SMTP_USER', 'user@example.com' );
define( 'SMTP_PASS', 'a-password' );
define( 'SMTP_HOST', 'smtp.example.com' );
define( 'SMTP_FROM', 'user@example.com' );
define( 'SMTP_NAME', 'A user name' );
define( 'SMTP_REPLYTO', 'replyto@example.com' );
define( 'SMTP_REPLYTO_NAME', 'Reply to name' );
define( 'SMTP_PORT', '587' );
define( 'SMTP_SECURE', 'tls' );
define( 'SMTP_AUTH', true );