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

How to override a theme template file with a child theme template file (of the same name)

Directly from Woocommerce: http://docs.woothemes.com/document/template-structure/ The template files of WooCommerce contain the markup and template structure for the front-end (and HTML emails) of your store. If you open these files you’ll notice they all contain many hooks which will allow you to add / move content without having to edit the template files themselves. This method … Read more

Edit copyright in Hesita Child Theme

You Could Also Try This Cheeky Little Trick 🙂 If you just want a quick and easy, no fuss change, you can do this to the Hestia theme copyright area. Just add the following code to your child theme CSS or to the WordPress Customise > CSS area. .copyright a { display: none; } .copyright:before … Read more

What is __(arguments) in my functions.php

They are the translatable strings. When developing a theme, if you need the theme to be translated to another langauge then you need them. __() — Reference: http://codex.wordpress.org/Function_Reference/_2 and there are many: http://codex.wordpress.org/L10n Learn more: http://codex.wordpress.org/Translating_WordPress http://codex.wordpress.org/I18n_for_WordPress_Developers

Body classes in child theme

Thank you for all the insets with this question. Here is what I come up with working from 1fixdotio’s answer above. I first had to unset the full-width body class and then register a new body class to incorporate my new sidebar. Here is the code // Remove body class and register new body class … Read more