This is a general WordPress question. When I download a theme I want to customize, it comes packed with tons of features (different page layouts, page builders, etc.)
I usually only use a fraction of what is included and have o need for the rest. But I upload the entire theme. So all the pages, functions, etc get put in my ‘head’ tag.
I’ve seen other people who use these themes and only use a small part of their functions, when I look at their head tags only essential pages/.php’s/etc are brought in, not everything even though it says …/themes/themeName/… (doesn’t appear to be a child).
EDIT – Clarification
I have made child themes, and went through numerous function files and ‘unenquened’ and ‘unregistered’ pages and functions, etc. When dealing with a huge theme, its tedious. I was wondering if there is a plugin or technique used that makes it easier. Similar to ‘select all unused’ in adobe programs
Do not remove anything, or you will probably break something. Build a child theme: it’s a theme that inherits all the functions of the theme you bought. To create a child theme, just create a new folder in
wp-content/themes
, create a file namedstyle.css
in it with this comment at the top:Just replace
parent_theme_name
by the name of the theme you bought. Activate that child theme, then start working on that one – you can override all the templates, build your ownfunctions.php
etc.Note that working with a child theme is a good practice: then you don’t touch at all the theme you bought, and then you’re able to upgrade it if there is any security issue about it (which happens honestly a lot).
Read more : https://codex.wordpress.org/Child_Themes
If you’re looking to make extensive changes to a theme, if a child theme doesn’t accomplish everything you’re looking to do, instead of trying to figure out what to suppress from the theme, it’s probably time to start learning how to make your own theme.
Depending on the theme, if it’s an open source theme, and if the developer doesn’t mind, you can use that theme as a starting point to get to what you are trying to accomplish. Or you can use that theme to play around and start learning, and then go make your own theme. This way you’ll know exactly what gets loaded and control everything you need to.
Start here and see where it takes you: https://codex.wordpress.org/Theme_Development