Archived topic
Content below Posts on category page
44 replies · Started by Marius on September 11, 2019
Maybe a service like this would help?
https://wordtohtml.net/
Shouldn't be that difficult to put a <p> tag around each paragraph (not sentence) either.
Sorry I couldn't be more helpful.
Yes, since i know that, this can be done. But it is not very practical.
But my question was, why this is needed in hooks, and why i don´t need this in posts or pages? there must be a reason for that, right?
I believe the main reason is that hooks element is also commonly used to insert things like PHP and javascript so the normal text editor wouldn't work.
Therefore it's using a code editor instead of normal text editor,
The converter I linked above is probably the best solution for now.
Sorry for the inconvenience!
Yes i have looked on the converter. But it makes a <p> </p> on every return. And i don´t need this.
Maybe GPP can implement a feature like i wrote in https://generatepress.com/forums/topic/feature-request-5/
But it makes a <p> </p> on every return. And i don´t need this.
Isn't that what the default text editor does? I'm not sure how it would know when you want/don't want the <p> tag otherwise.
I really can't recall other similar requests for this but I've forwarded that request to Tom.
that was an error, I wrote <p> </p>, but here the editor took this away.
But in general it is like this:
I use always the text editor (no visual, no gutenberg). If i want a line break, i hit the return button. Then in text editor a new line begins. But i don´t see any p tags there.
The P tags are only shown in source code.
In text editor i only use tags like h2, bold, italic and so on. And these tags i see directly in text editor, cause i set them.
The Element editor is somewhat advanced, so it's free from things being automatically added (like <p> elements. It's actually a plus in a lot of scenarios, but it can be a pain for things like this.
We're working on a solution for that :)
That would be great.
Any progress in this area? I'm having the same issue:
Here's my custom field:
http://prntscr.com/q8xg73
Here is my hook:
http://prntscr.com/q8xh3w
And here's the output:
http://prntscr.com/q8xafa
I adding that using the functions.php file and the line breaks worked so maybe I should go back to that. But just curious if there's a solution to my current approach.
Hi there,
Any chance you can open up a new topic? This one is quite long.
A screenshot of the custom field itself all filled out would be useful as well.
Thanks!
Hi Tom,
ist there a solution for that, as you mentioned? I need to put individual text on the bottom of many tag archive pages and want to use the normal text editor to do so.
Hi there,
We just added Block Elements to GP Premium 1.11 which is still in Beta.
Which has the power of the Hooks with the Block editor.
https://generatepress.com/gp-premium-1-11-0-block-elements/
Other wise the hook element will rely on you adding HTML
So I can only use this, if I use Gutenberg? Because I don´t use Gutenberg, and I don´t want to.
That's correct. Since the block editor is the future of WordPress, we decided to go with that. The Classic editor isn't going to be a part of WordPress forever, unfortunately.