I have attempted to add the above line. I don’t really want to mess with the core theme files. I don’t know enough about code that as a general rule I don’t mess with them. Thus I have setup a child theme.
I have added the line in the code of the child theme as shown here. This is the only change I have made to the theme. The child theme other than being setup as one has made no changes to the original theme.
Hopefully I have done this correctly. When I do this I just get a blank page on the website. Similarly I wasn’t sure if it was because I was creating this functions.php file wrong I also attempted to add the line you suggested to the core file with the same result (a blank webpage). Thus I removed it from the core theme files.
<?php
/**
* This is your child theme functions file. In general, most PHP customizations should be placed within this
* file. Sometimes, you may have to overwrite a template file. However, you should consult the theme
* documentation and support forums before making a decision. In most cases, what you want to accomplish
* can be done from this file alone. This isn't a foreign practice introduced by parent/child themes. This is
* how WordPress works. By utilizing the functions.php file, you are both future-proofing your site and using
* a general best practice for coding.
*
* All style/design changes should take place within your style.css file, not this one.
*
* The functions file can be your best friend or your worst enemy. Always double-check your code to make
* sure that you close everything that you open and that it works before uploading it to a live site.
*
* @package MyLifeChild
* @subpackage Functions
*/
/* Adds the child theme setup function to the 'after_setup_theme' hook. */
add_action( 'after_setup_theme', 'picturesque_child_theme_setup', 11 );
/**
* Setup function. All child themes should run their setup within this function. The idea is to add/remove
* filters and actions after the parent theme has been set up. This function provides you that opportunity.
*
* @since 0.1.0
*/
function picturesque_child_theme_setup() {
add_filter( 'jetpack_enable_open_graph', '__return_false', 99 );
/* Get the theme prefix ("picturesque"). */
$prefix = hybrid_get_prefix();
/* Example action. */
// add_action( "{$prefix}_header", 'picturesque_child_example_action' );
/* Example filter. */
// add_filter( "{$prefix}_site_title", 'picturesque_child_example_filter' );
}
?>