Child theme css not loading when declared in parent functions

Because you’re using a subfolder path that starts with a /. The official WP.org developer doc for add_editor_style has an example of how to add a stylesheet from a subfolder in the comments: /** * Registers an editor stylesheet in a sub-directory. */ function add_editor_styles_sub_dir() { add_editor_style( trailingslashit( get_template_directory_uri() ) . ‘css/editor-style.css’ ); } add_action( … Read more

theme.json should be in the child theme folder when using xxxx.json style located in the styles folder?

Short answer: No Long answer: The child themes theme.json will simply use the TT3 theme.json values if a specific value is not found. So you can make a new theme.json file only with the specific values needed for the child theme. An excellent writeup is available here: https://kinsta.com/blog/twenty-twenty-two-theme/#extending-twenty-twentytwo-with-a-child-theme

How to handle a large child theme

I assume this will be a lot of extra load on the site to have all these extra files? Or are the parent theme files “skipped” and “doesn’t count” if I have them in my child theme? if the child theme file is slower than the parent theme file then yes if the child theme … Read more

Can anyone help me with replace genesis post excerpt with yoast meta description and if there is no meta description show the excerpt?

Remove: add_filter( ‘get_the_excerpt’, ‘replace_post_excerpt_filter’ ); function replace_post_excerpt_filter($output) { return $output; } from your code, and you should find it works. The trouble with nested functions, as you have here, is that once the parent function is called the first time, it defines the inner function, but when the parent function is called the second time … Read more

How to create my own style.css file in an wordpress child-theme

Take a look at the official docs: https://codex.wordpress.org/Child_Themes https://developer.wordpress.org/themes/advanced-topics/child-themes/ Make sure you are within your child theme functions.php and use this code to make sure the function is firing. It will kill the page if it is working correctly. function wpdocs_theme_name_scripts() { wp_die(‘Yep! This is working’); } add_action( ‘wp_enqueue_scripts’, ‘wpdocs_theme_name_scripts’ );

melville and its child theme

According to the codex your file needs to be called childtheme/loop-home-page.php if you did just then <?php get_template_part(‘loop’ ,’home-page’) ?>you would call it loop.php not sure if that helps at all. Another thing is make sure your page is using your custom template file as this could also be your problem. What is the name … Read more

WordPress | enqueue_scripts in a child’s theme returns error

The reason being that: get_template_directory_uri() actually returns the parent’s theme url. To fix it, I simply concatenated the remainder of the path. In this case, the code became: // loading menu toggle function | located in the child’s theme folder function menu_toggle_enqueue_script() { wp_enqueue_script( ‘menu-toggle’, get_template_directory_uri(). ‘-child’ . ‘/assets/js/menu.js’); } add_action(‘wp_enqueue_scripts’, ‘menu_toggle_enqueue_script’); I figured out … Read more

Vague Errors from VIP Scanner Plugin

The first one says that you’re doing an echo or print of one of $GLOBALS, $_SERVER, $_GET, $_REQUEST, or $_POST. This can often lead to Cross-Site-Scripting security issues. It should tell you what line the offending code is on. The second one says that you’re missing the WordPress.com VIP link, which is a link to … Read more