Too tedious to have to install a file management plugin or open FTP to put JS in the child theme…
Consider this improvement
]]>I purged all caches, tried disabling CSS/JS cache options but it didn’t change anything.
Even when I disable the plugin or delete it the problem persists. To display the correct version of my CSS file I have to disable Litespeed Web ADC – LSCache from my Cpannel administration.
Would you have an idea of the problem?
PS : actually i disable litespeed on Cpanel so you can’t see my issue online. I’ve tried all the troubleshooting steps provide in first post forum.
Report number : YVIYFWMG
THANKS
]]>`define( ‘CMDM_THEME_FOLDER’, get_stylesheet_directory() );</p> <p>/* Traducciones<br>============================================================================ */</p> <p>function cmdm_child_theme_setup()<br>{<br>load_child_theme_textdomain( ‘flatsome-child’, CMDM_THEME_FOLDER . ‘/languages’ );<br>}</p> <p>add_action( ‘after_setup_theme’, ‘cmdm_child_theme_setup’ );`
]]>What are the steps to follow considering that I am not an expert girl on the subject?
Can you tell me the steps to follow without using any plugin?
Thank you
I’ve modified the template of Post Kadence gutemberg block.
The template that I’ve personalized is entry-loop-taxonomies.php.
The modifications done to the same file are working nice, but I want to do the mods in the child-theme and overriding the template for not loosing in the updates.
In the header of the same template, says:
“This template can be overridden by copying it to yourtheme/kadence-blocks/entry-loop-taxonomies.php.”
I’ve done exactly what the text says: create a kadence-blocks folder in my child theme folder and storing the modified entry-loop-taxonomies.php.
No luck, and modifications not showing as seems that wordpress don’t load the file in the theme child folder.
I’m using theme Kadence free version and my child folder is called kadence-child-cwp.
Any hints why wordpress is not loading the override?
]]>I created the “themeName-child” folder
I created a stylesheet “style.css as written in the documentation.
After activating the child theme i have create the function.php file.
To load the parent stylesheet i put the following code in the function.php of the child theme folder:
<?php
add_action ('wp_enqueue_scripts', 'my_plugin_add_stylesheet');
function my_plugin_add_stylesheet () {
wp_enqueue_style ('my-style', get_stylesheet_directory_uri (). '/style.css', false, '1.0', 'all');
}
I also tried this:
<?php
add_action ('wp_enqueue_scripts', 'my_theme_enqueue_styles');
function my_theme_enqueue_styles () {
$ parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style ($ parent_style, get_template_directory_uri (). '/style.css');
wp_enqueue_style ('child-style',
get_stylesheet_directory_uri (). '/Style.css',
array ($ parent_style),
wp_get_theme () -> get ( 'Version')
);
}
The parent stylesheet isnt loaded.
What am I doing wrong?
Thank you