editing functions.php in child theme
-
I am trying to adjust how my images are being displayed on my blog’s blurbs on my website, the theme support gave me this instruction –
“To make the change in a child theme, add the following to a file named functions.php inside the child theme’s directory:
<?php function my_custom_thumbnail_height($height) { $height = '9999'; return $height; } add_filter( 'et_pb_blog_image_height', 'my_custom_thumbnail_height' ); ?>
so when i go to my child theme editor, i have this for my functions.php –
<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; // BEGIN ENQUEUE PARENT ACTION // END ENQUEUE PARENT ACTION
I tried adding what they told me at the end of this, and my whole site went blank. I disabled the childtheme and reinstalled it created a new one. Any idea of where I have gone wrong in this? I am not at all experienced in using child themes, I am using Child Theme Configurator plug in by Lillea. Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘editing functions.php in child theme’ is closed to new replies.