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 );

Child theme after CSS modification

As Jacob Peattie mentioned, you’ve made custom CSS changes in a way that does not impact your theme. To expand a bit more, this is the only place you can make changes that will persist through a theme update or change. All other customizations get wiped. So if you find you want to make further … Read more

How can I allow a client to edit certain parts of a static site?

in first you have to know how convert your static html pages into wordpress themes , then about your navbar put this code in your theme function.php function register_my_menu() { register_nav_menu(‘header-menu’,__( ‘Header Menu’ ));}add_action( ‘init’, ‘register_my_menu’ ); then go to your header.php where your navbar is and remove nav and put this code in it … Read more