A
A
Aljo2021-07-06 07:07:27
Layout
Aljo, 2021-07-06 07:07:27

Why is Wordpress so clumsy?

Can you please explain to me how you make layout on Wordpress? Its text editor is a living hell for typesetting. Some unnecessary p tags, non-breaking spaces, divs, and so on.
In functions.php, I turned off the addition of superfluous and "voila" - the text is basically not displayed. Kaef.
How to work with this CMS? Explain to me please

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Anton Litvinenko, 2021-07-06
@aljo222

Aljo , No need to fight with the editor. There are many approaches, it all depends on what you know how to do, what you don’t mind learning, and what you don’t plan to do.
Let's take as a basic example a landing page of 5 blocks. In one of the blocks there is a slider with the latest blog entries. There are phone numbers and links to social networks in the footer and header.
Even if you think about it, just an editor is not enough to display phone numbers and social networks from the admin panel.
There may be several approaches. The easiest is to use the meta field plugin, I use ACF Pro. With it, you can make a settings page and get phone numbers and social networks from it and display it in a header with a footer. It can also be done through the customizer API. This is a built-in settings system. this is a little more complicated, but also nothing supernatural. The third option is widgets. We register sidebars where necessary and display the layout directly from the widgets.
Let's move on to the body of the landing page.
The easiest way is to create a page template for this landing page if there is a ready-made layout and put the entire layout into it. It can be split into separate files for convenience. Display content through the same metafields.
You can put a page builder and make on it. You can try to implement on the built-in Gutenberg, but since it is rather dull out of the box, you will need to install a couple of plugins that expand its capabilities.
Further, as an option, you can make your own custom blocks for Gutenberg from the finished layout.
We recall that we need to display a slider with the latest entries in one of the blocks. Here you can’t do without knowledge of working with WordPress cycles, and then again, either the code directly in the body of the landing, or we take it out into a function, or we make a block for Gutenberg, or we see if the editor we installed can do such things.
And the deeper, the more interesting. Custom post types and taxonomies, complex menu integration using the wp_walker class, creation of shortcodes and widgets, plugins in the end. Karoch, I wish you good luck

E
Ex1st, 2021-07-06
@Ex1st

Why use a standard editor? Use Sublime Text or any other, locally. And then upload it to the server via FTP or Git.

A
archelon, 2021-07-06
@archelon

The text editor in WordPress is not designed for layout, but for adding and editing content.

E
Eridiant, 2021-07-07
@Eridiant

if you don’t like Gutenberg, that is, the Classic Editor plugin, it will return the old editor
to editable blocks, you can reach out by writing css: .block_selector p .block_selector li and so on
if not at all, then there is a tab with the code in the classic editor

E
Eddie Smith, 2021-07-07
@L33tB0t

Try Gantry5. Drag'n'drop layout + you can create 'particles' and 'atoms' using twig.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question