Add a header widget to the twentyfourteen theme?

Each theme has different “Widget areas”, so if the theme you are using doesn’t have the one you would like, there are unfortunately not so many options. Or at least, not without editing the template files. I found this plugin: https://wordpress.org/plugins/custom-widget-area/ which seem to do what you need, although it hasnt been updated in a … Read more

Permalink remain the same on each page

Firstly, you should never use query_posts to construct custom queries. This is not just my emphasis, but the codex as well. The one big problem with query_posts is, it many circumstances, pagination fails Note: This function isn’t meant to be used by plugins or themes. As explained later, there are better, more performant options to … Read more

Activate plugins by a theme’s functions.php?

Write This Code On theme Function.php function run_activate_plugin( $plugin ) { $current = get_option( ‘active_plugins’ ); $plugin = plugin_basename( trim( $plugin ) ); if ( !in_array( $plugin, $current ) ) { $current[] = $plugin; sort( $current ); do_action( ‘activate_plugin’, trim( $plugin ) ); update_option( ‘active_plugins’, $current ); do_action( ‘activate_’ . trim( $plugin ) ); do_action( … Read more

How to Hide Blog Post Author?

I’d use Firebug in Firefox to see the CSS class used for the author name, then disable display. So, assuming that the css class was called ‘author_name’, I would put this in the styles.css of the child theme that I was using, or in the ‘extra CSS’ area of the theme settings (if available); .author_name … Read more

Overwrite template-tags.php in child theme

In functions.php child theme include template-tags.php from parent theme: require_once get_theme_file_path( ‘../parent-theme/inc/template-tags.php’ ); In the child theme template-tags.php remove parent action and add the child action replacing it: remove_action( ‘tag’, ‘parent-function’, 0 ); add_action( ‘tag’, ‘new-child-function’, 10 );