Tag Info

Hot answers tagged

4

As @cybmeta already pointed out, you are too early with your removal. So you have to defer the actual removal, for instance like so: add_action( 'after_setup_theme', 'wpdev_170663_remove_parent_theme_stuff', 0 ); function wpdev_170663_remove_parent_theme_stuff() { remove_action( 'after_setup_theme', 'et_pb_setup_theme' ); }


2

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 ...


2

You are using the same identifier for style.css and style.min.css. Use a different identifier for each one. Better: assuming that style.min.css is the minified version of style.css, enqueue only style.min.css. if (!function_exists('chld_thm_cfg_parent_css')) { function chld_thm_cfg_parent_css() { wp_enqueue_style('chld_thm_cfg_parent', ...


1

I think your problem is how your function is constructed and not your condition as such. You should not be wrapping your function and your action in a condition like this. Page templates are selected really late in the query by the main query, and I probably think that this is way to late for your action to execute. By the time the condition hits true, the ...


1

It seems like you're actually asking three questions here; it's likely your question will be put on hold because of this. Why do you need to add a custom post type? If you're interested in learning how to develop for WP you can skip the plugin for members and instead read the WP Codex entry on user roles and capabilities; this will let you limit who has ...


1

The functions.php file of child themes is loaded right before the parent theme functions.php, so when you run remove_action in child theme, the action you are trying to remove doesn't exist beacuse it is added later.



Only top voted, non community-wiki answers of a minimum length are eligible