- This topic has 44 replies, 3 voices, and was last updated 5 years, 1 month ago by
Tom.
-
AuthorPosts
-
September 12, 2019 at 10:25 am #1007961
Leo
StaffCustomer SupportMaybe 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.
September 12, 2019 at 10:50 am #1007998Marius
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?
September 12, 2019 at 11:11 am #1008029Leo
StaffCustomer SupportI 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!
September 12, 2019 at 11:33 am #1008044Marius
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/
September 12, 2019 at 11:37 am #1008046Leo
StaffCustomer SupportBut 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.
September 12, 2019 at 11:58 am #1008067Marius
that was an error, I wrote
<p> </p>
, but here the editor took this away.September 12, 2019 at 12:04 pm #1008078Marius
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.
September 12, 2019 at 5:24 pm #1008242Tom
Lead DeveloperLead DeveloperThe 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 🙂
September 13, 2019 at 9:56 am #1008840Marius
That would be great.
December 10, 2019 at 9:12 am #1100077Michael
Any progress in this area? I’m having the same issue:
Here’s my custom field:
http://prntscr.com/q8xg73Here is my hook:
http://prntscr.com/q8xh3wAnd here’s the output:
http://prntscr.com/q8xafaI 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.
December 10, 2019 at 5:36 pm #1100446Tom
Lead DeveloperLead DeveloperHi 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!
July 30, 2020 at 5:07 am #1381688Marius
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.
July 30, 2020 at 7:27 am #1381779David
StaffCustomer SupportHi 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
July 30, 2020 at 7:49 am #1381973Marius
So I can only use this, if I use Gutenberg? Because I don´t use Gutenberg, and I don´t want to.
July 30, 2020 at 1:19 pm #1382289Tom
Lead DeveloperLead DeveloperThat’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.
-
AuthorPosts
- You must be logged in to reply to this topic.