Answer the question
In order to leave comments, you need to log in
Editing your own Wordpress template. How to implement?
Welcome all.
I am learning to write my own themes for Wordpress, but I can not understand one thing:
Please tell me how can I create my own theme, in which all texts and pictures will be edited in Wordpress itself?
At the moment, I only get static themes.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
You only need a few required files to create your theme. index.php and style.css. The last will be the title of the topic. This will allow the theme to appear in the settings. Turn it on, and then you need to display content using the functions of WordPress itself in php. See how the standard theme works and copy it for yourself. There for output there are functions of the_content () type. I also advise you to google the wordpress file map. There is a whole hierarchy of files and which one depends on which one.
1. Basic settings, for example, logo, social networks in the footer, maybe some contacts in the header or footer - put in Theme Settings
2. Dynamic data, put in custom post type
3. You can use ready-made plugins for wp to facilitate the output custom content (not post page content), thousands of them, for example, advanced custom fields, there are constructor plugins for flexible theme settings.
Look, everything that was written here is not that. Now, making your own templates on wp is as easy as shelling pears. There is simply the best plugin for this - Elementor (not advertising, because it does not need one - more than 5 million installations). Now that's the only way everyone makes their templates. Why code something when you can just drag and drop ready-made elements and voila.
I leave a link to the plugin on the official wordpress website (it's free): https://ru.wordpress.org/plugins/elementor/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question