Customize With Plugins

Besides using a child theme to modify themes, you can also utilize plugins for this purpose. While using plugins is generally easier than creating a child theme, it does have some limitations. Plugins are best suited for simple customizations.

Sometimes you need to insert some code into your website. It is most likely a web analytics code like Google Analytics, a social media script, a CSS stylesheet, or custom fonts. You can use the Header and Footer Scripts plugin for this purpose.

You can use this plugin to:

  • Insert CSS and JavaScript codes into the <head> or before </body>.
  • Insert code into the <head> of any single page, post, or custom post type.

This plugin can’t be used to insert PHP codes.

Add PHP code snippets

Most tutorials suggest adding snippet code to the functions.php file of a child theme (we do too), but if you prefer not to do that, you can use the Code Snippets plugin.

This plugin provides a graphical interface, similar to the Plugins menu, for managing snippets. Snippets can be activated and deactivated just like plugins.