Thanks Leo – anything you can suggest to try and troubleshoot this? I tried using the Code Snippets method on a couple of my other sites. But all of my builds have a standard setup (plugins, code) and it did not work there either.
Same thing: other snippets work fine. Just not this one.
In the meantime I downloaded the child theme zip and tried that method:
<?php
/**
* GeneratePress child theme functions and definitions.
*
* Add your custom PHP in this file.
* Only edit this file if you have direct access to it on your server (to fix errors if they happen).
*/
function generatepress_child_enqueue_scripts() {
if ( is_rtl() ) {
wp_enqueue_style( 'generatepress-rtl', trailingslashit( get_template_directory_uri() ) . 'rtl.css' );
}
}
add_action( 'wp_enqueue_scripts', 'generatepress_child_enqueue_scripts', 100 );
/* Adding excerpt for page */
add_post_type_support( ‘page’, ‘excerpt’ );
The site returns this error:
Warning: Use of undefined constant ‘page’ - assumed '‘page’' (this will throw an Error in a future version of PHP) in /[PATH TO CHILD THEME DIRECTORY]/functions.php on line 31
Thanks