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

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)