Adding Code to functions.php in Child Theme
-
Hi,
I’ve added a snippet of code to my functions.php file in my Twenty-Twelve Child Theme, but it has come up as a parse error. I know I’m doing something wrong, can anyone advise?
I’ve added it like this and saved…<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?> <?php if ( is_search() || is_archive() || is_author() || is_tag() || is_home() ) : // Only display Excerpts ?>
Many thanks in advance,
Stuart
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Adding Code to functions.php in Child Theme’ is closed to new replies.