Appointment-free Child theme
-
Hi
I like the appointment theme but am wanting to create my own child theme based from it. Would this be ok? For a start I would like to and shift the News section to between the Services section and slider and change the theme color – I am aware this is a pro feature but I don’t intend go pro, more to change the theme around and use this as a learning curve. I am completely new at coding!
I have noticed that there are multiple stylesheets and the colors I want to change seem to be affected by default.css… I know that I have to somehow enqueue these so in my child functions.php I have placed this code which I found on a forum…(I’m not sure if it is correct)
`<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’,999 );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/css/bootstrap.css’ );
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/css/cust-style.css’ );
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/css/default.css’ );
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/css/element.css’ );
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/css/media-responsive.css’ );
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/css/theme-menu.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style )
);
}?>`If this isn’t right, what is the correct way to enqueue all the css sheets? And how would I go about color alterations? Next, how would I go about shifting the News section to between the slider and Services section? Would I do that through my child style.css or through creating some other php file?
I’m using Notepad++ code editor, WAMP and have downloaded WP to my computer for this exercise so it isn’t live. But I do have a site I could probably upload it to if you need to see for yourself.
Thanks
The topic ‘Appointment-free Child theme’ is closed to new replies.
