Answer the question
In order to leave comments, you need to log in
What is the best way to build your wordpress template?
I found this information on creating themes for wordpress:
1 2 3 who are interested.
I didn’t understand everything yet ... In general .. I created such a template , as I understand it, most people do this in order not to create all these files every time?
I wrote in index.php a few lines that are always needed in the theme , so I filled in functions.php , that is . not everything yet, but I tried to write the code that is found on every WordPress site so as not to write from 0.
Who can share their experience in creating WordPress themes and suggest how best to organize the process?
Should I immediately give the menu and sidebar the classes that are needed in the WordPress theme? Or write directlyecho get_template_directory_uri();
but the link on the LAN will not work like that, so maybe immediately upload the template to WordPress and the folder with the theme and typeset there? I understand that there is a front and end part, but I would like to reduce the integration of the theme to the maximum if I know right away that the site will be on WordPress.
Still with regards to garbage collection after there is an article who knows everything is right there? In order not to bang too much.
wp_head();
Answer the question
In order to leave comments, you need to log in
Usually, the design is done first, then the layout, then this layout is "stretched" onto the engine. Those. topic is created. To create an empty topic, you can use, for example, underscores.me
In general, judging by the question, you have a mess in your head at the moment. I would advise you to start by reading the documentation https://codex.wordpress.org/%D0%A1%D0%BE%D0%B7%D0%...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question