Where to place code in function.php
-
Hello,
I’m using Divi theme with a Divi child theme created by your plugin.
I’d like to place some code in my child theme functions.php file.
I need instructions from you written for code dummies on where exactly to place the code.I did go through your resolved tickets and found where to place code into the file, but I’m still unsure of exactly where it goes. I’ve pasted the code that was automatically inserted into my functions.php file by Child Theme Configurator below. Could you please point to exactly where I should paste my new code? Thank you
<?php
// Exit if accessed directly
if ( !defined( ‘ABSPATH’ ) ) exit;// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED – Do not modify or remove comment markers above or below:if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’ );
}
endif;
add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’ );// END ENQUEUE PARENT ACTION
- The topic ‘Where to place code in function.php’ is closed to new replies.