Is it possible to load a child theme from a remote server?
Is it possible to load a child theme from a remote server?
Is it possible to load a child theme from a remote server?
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
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
The issue appears to be that you’re not declaring your theme as a child theme correctly. To be a child theme the theme must declare its Template: in the comment block at the top of style.css, not Child Theme Template. Not declaring your theme as a child theme correctly means that WordPress isn’t falling back … Read more
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
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
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’ );
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
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
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