WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 3 months ago

#53805 new enhancement

Widget HTML Personalized no have Title

Reported by: Guillermo77 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.8
Component: Widgets Keywords: reporter-feedback
Focuses: Cc:

Description

The widget HTML Personalized no have one title, we can left the title blank but we need one title if we want use it, like: Note or Publicity etc.
The old HTML personalized has the title...
I don't no if are another widgets who need title, I no check all

I hope can fix it, also is one little slow the section widgets.
I like quit the previsualization, for load more faster.

Change History (13)

#1 @SergeyBiryukov
4 months ago

  • Component changed from General to Widgets

#2 follow-up: @ravipatel
4 months ago

  • Component changed from Widgets to General

@Guillermo77
you can use this plugin for a speed widget issue also easy to use old layout of widgets.
https://wordpress.org/plugins/classic-widgets/

Last edited 4 months ago by ravipatel (previous) (diff)

#3 @Guillermo77
4 months ago

Another problem:
I dont no why add the <p> automatic in the html widget if you put one new line (enter)

<p> code
code</p>

That is one error, I just want one new line or new lines for separate the content
I don't no if are one protocol for use # in new line, but I no like the <p>

And I hope put one title to the widget!

Thanks for the fast answer!

#4 in reply to: ↑ 2 @Guillermo77
4 months ago

Replying to ravipatel:

@Guillermo77
you can use this plugin for a speed widget issue also easy to use old layout of widgets.
https://wordpress.org/plugins/classic-widgets/

Just for say thank you!
I no will use it at this moment, but is one good recommendation.

#5 @Guillermo77
4 months ago

Wow another problem I put my code from publicity and add me <br> in the end of all the lines...

I hope the team solve this...

#6 @Guillermo77
4 months ago

Also add me <br /> and add me double "

async="" src="

when is

async src="

#7 @SergeyBiryukov
4 months ago

  • Component changed from General to Widgets

#8 @andraganescu
4 months ago

Hi there @Guillermo77 and thanks for creating the ticket.

#53778 is an older ticket about the unexpected <p> and <br> tags in the HTML block. Please look there for the incoming solution.

Upstream in the Gutenberg repository there is an issue about adding a title attribute to blocks and some implementation options are explored.

For now you can use a paragraph block or a heading block before in place of a title. To prevent floating issues you can group the heading and the block and they'll behave as a single "widget".

#9 @Guillermo77
4 months ago

Thanks to you @andraganescu and @SergeyBiryukov

Happy to colabore to make WordPress better, I hope the developer team can find one solution.

About the HTML if you no close one <div>, maybe the system can alert to you and change the color of the section, but this is responsibility of the user.

The new lines in my case is for separate the code, and in other case is the publicity code format, (copy paste),

I text in preview, I no save the post, In the html block of gutenberg no add the <br> just in the last line add me one <p></p>

About the title, is important, if you no like just left it blank

#10 @pixolin
4 months ago

@andraganescu

Re: "For now you can use a paragraph block or a heading block before in place of a title."

If you add another block and when using e.g. theme Twenty Twenty, you get an additional line and margin between the two blocks:

https://i.imgur.com/WovB6Lu.jpeg

With each block in it's own <section> other themes will most likely render the two blocks as separate sidebar items, which looks somewhat odd. Adding a paragraph or title seems to be a unsatisfying workaround to me.

#11 @andraganescu
4 months ago

Hi @pixolin :) Indeed blocks that output heading markup do not get styled well by the existing themes of today. They're missing the classes and exact markup that themes control so we get those visual glitches when building sidebars with blocks.

As a good news there is some intense work happening upstream in the Gutenberg repository to offer a solid solution that behaves as expected 100% of the time. I will be either one of having a new title attribute added to blocks in widget areas, a new pattern or a new wrapper-like block. In the end the result should be that one can place any block with a title in their widget area and have it render as expected.

#13 @leecollings
3 months ago

Why hasn't this been reviewed yet? the issue was raised 7 weeks ago, and has been reported by several people (including myself now), and this is now blocking something I'm trying to get deployed.

What's the hold up? This is a bug that needs fixing urgently.

Note: See TracTickets for help on using tickets.