V
V
Veniamin Smirnov2017-04-05 14:03:39
Python
Veniamin Smirnov, 2017-04-05 14:03:39

How not to get confused in your code when creating a complex WordPress theme?

I took on a difficult task: to make an adaptive theme for Wordpress based on a unique design. The task is not paid, this is a personal project for a more in-depth acquaintance with the internals of Wordpress, the basics of PHP, and the consolidation of adaptive layout skills.
I am doing such a large amount of work for the first time, there are a lot of non-standard moves and elements that are difficult to layout (for me) in the design: everything is drawn according to the bootstrap grid, but many elements seem to “fall out” of the general rhythm, remaining within the grid, plus ideas are planned that I don't even know how to put it into practice.
In fact, there are 4 unique pages: the main page (a mini-landing page with the latest posts), a blog page with a sidebar, a post page, and a separate custom page for the information block.
I made up the main page and I already understand that I'm starting to get confused in the CSS code - a lot of adaptability, almost every element has to be corrected at different resolutions (font sizes, positioning of elements).
What's the best way to do it? Start rewriting the project again or set aside a couple of days to refactor existing code? And how to properly structure and organize work on large projects so as not to get confused in the code, not to pile up a million crutches, garbage and other things?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Mitrakov, 2018-03-10
@igormitrakov

Solved the problem by installing yum install libcurl-devel.x86_64
but a new "Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-110vbxz_/pycurl/setup.py';f=getattr( tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, ' exec'))" install --record /tmp/pip-wpvbpxqt-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-110vbxz_ /pycurl/"))

V
Vasya Petrov, 2017-04-05
@Ingword

Firstly, "theme" and "large project" do not fit in any way. The theme should have only that functionality. which is responsible for the appearance and, if necessary, support for some plugins (eg WC). The functionality of the site should be implemented by plugins (of course, something that is not in the core).
Secondly, google mobilefirst.
Well, if for yourself, and even more so for learning / understanding, then you should take a theme from the catalog and make a daughter for it .
Well man: https://codex.wordpress.org/%D0%A1%D0%BE%D0%B7%D0%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question