R
R
Rinat Haisman2018-03-03 23:43:04
WordPress
Rinat Haisman, 2018-03-03 23:43:04

How to remove everything unnecessary from a WP theme?

Whatever (with rare exceptions) a new theme is installed, a huge number of scripts and styles are loaded, which are essentially not needed. The theme attracts only the conclusion of the blog. Only this page.
Kindly, tell me how to clean up absolutely everything superfluous, insert your own html / css, and display the menu / footer / necessary forms on all pages?
This situation with beautiful themes is very sad.
Screenshots:
joxi.ru/p27Z0POc0zJQJm
joxi.ru/GrqlWpztN5B19A

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Orkhan Hasanli, 2018-03-04
@azerphoenix

General recommendations:
- To disable unnecessary styles use - https://codex.wordpress.org/Function_Reference/wp_...
- To disable unnecessary scripts use - https://codex.wordpress.org/Function_Reference/wp_...
- Install query monitor and see which scripts and styles are used where. You can also use Visual Events ( https://chrome.google.com/webstore/detail/visual-e...
I would generally recommend creating a theme from scratch yourself. Otherwise, there are a lot of trims in the themes, especially in premium themes. For example, frameworks, etc.
Well, leave the theme with a minimum set of templates index.php archive.php single.php page.php
Everything else (depending on your theme) can be merged or demolished, etc. In general, it all depends on the specific topic.

I
irknikitin, 2018-03-04
@irknikitin

Go to the site _ underscores.me
Enter the name of your theme .Download the archive and connect what you need in the footer and header .I do just that

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question