Web Development

Our forums are currently in maintenance mode and the ability to post is disabled. We will be back up and running as soon as possible. Thanks for your patience!


Where am I going wrong in adding additional stylesheet in child theme

By spencer1621515293 ·
Hi, I have a contact form which I would like to style in a child theme, but have already used the style.css for an animation.
I named the file wpforms.css which is in twentythirteen-child folder.
The code in it is:

@import url("../twentythirteen/wpforms");

#wpforms-78 .wpforms-form {
background-color: red;
padding: 20px 15px;
border: 5px solid #666;
border-radius: 20px;

Then in the functions.php the code is:

function childtheme_parent_styles() {
wp_enqueue_style( 'parent', get_template_directory_uri().'/style.css' );
add_action( 'wp_enqueue_scripts', 'childtheme_parent_styles');

function mytheme_files() {
wp_enqueue_style('mytheme_main_style', get_stylesheet_uri());
wp_enqueue_style('mytheme_wpforms_style' , get_theme_file_uri('wpforms.css'));


add_action( 'wp_enqueue_scripts', 'mytheme_files');
add_action( 'wp_enqueue_scripts', 'wpforms_style', 11);


if anyone could tell me where I am going wrong. Thanks
Thread display: Collapse - | Expand +

All Answers

Related Discussions

Related Forums