Hi,
I installed the X Child Theme that now appears in my Editor. I have the “Theme Functions” with some functions I tried to add over my attempt to make changes work (the first “add_filter” was aleready there).
<?php add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_theme_style’ );
function enqueue_parent_theme_style() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri( ).’/style.css’ );
}
function custom_scripts() {
wp_enqueue_style( ‘child_css’, get_stylesheet_directory_uri().’/custom.css’ );
}
add_action(‘wp_enqueue_scripts’, ‘custom_scripts’, 9999 );
add_filter( ‘get_shortlink’, function( $shortlink ) {return $shortlink;} );
And there is also the Stylesheet with nothing in it.
Was I suppose to add more files from the parent X theme? I’m not sure I understand how this really works… There is a good number of changes I made so far but with some difficulty because all the CSS I put in my stylesheet don’t apply and is overrided by Cornerstone so I have to put the CSS in every specific page in Cornerstone. Even then, there are some things that can change and others that can’t, so I have to manage with both to get the expected results…
I read a lot on the forum and on the internet but it’s alway trials and errors…
In short, I would really like to be able to keep all the codes at the same place in the Child Theme Stylesheet and that it can be applied to the entire website and through the multiple pages so it can be easier to manage. Is there a way to do that? Is there a way that Cornerstone could only serve to put elements in place but without overriding my styles in CSS?
Here is my website so far. https://stephanieberube.com
Thank you so much in advance.