Home › Forums › Support › GenerateBlocks Headline Content Excluded In WP Details Stats in WP Block Editor
- This topic has 5 replies, 2 voices, and was last updated 5 years, 2 months ago by
David.
-
AuthorPosts
-
January 5, 2021 at 11:02 am #1606988
David
Hi Tom,
My website uses WordPress at version 5.6 and the premium version of GeneratePress, theme at version 3.0.2, plugin at version 1.12.3. It uses the GenerateBlocks plugin at version 1.3.0-alpha.1.
I just noticed that within the WP Block Editor to edit a post there is a standard WP “details” icon which shows shows some statistics along with the document outline. The document outline shows header information. However if headers are created using the GenerateBlocks Headline function, they do not show up in this list, nor are they included in the header statistics. The paragraph statistics are also incorrect when the paragraph is created using GenerateBlocks Header paragraph.
One of the WP plugins I use generates a table of contents and this is shown correctly. Shows all the H2s and H3s.
The image included in the above link explains more.
I have included the code below in case that helps.
I have no idea how the standard WP “details” icon determines what is a header and what is a paragraph which I think would be key in resolving this one.
Let me know if you need any more information.
Stay well. Stay safe.
Happy New Year,
DavidPost copied in code editor mode start:
<!– wp:heading –>
<h2>H2 WP Block Editor – Ref 01</h2>
<!– /wp:heading –><!– wp:paragraph –>
<p>Normal WP Paragraph</p>
<!– /wp:paragraph –><!– wp:heading {“level”:3} –>
<h3>H3 WP Block Editor – Ref 02</h3>
<!– /wp:heading –><!– wp:paragraph –>
<p>Normal WP Block Paragraph </p>
<!– /wp:paragraph –><!– wp:generateblocks/headline {“uniqueId”:”597a79cb”} –>
<h2 class=”gb-headline gb-headline-597a79cb gb-headline-text”>H2 GenerateBlocks Headline – Ref 03</h2>
<!– /wp:generateblocks/headline –><!– wp:generateblocks/headline {“uniqueId”:”b8267ed8″,”element”:”p”} –>
<p class=”gb-headline gb-headline-b8267ed8 gb-headline-text”>Paragraph created using GenerateBlocks Headline Paragraph </p>
<!– /wp:generateblocks/headline –><!– wp:generateblocks/headline {“uniqueId”:”ec6e5009″,”element”:”h3″} –>
<h3 class=”gb-headline gb-headline-ec6e5009 gb-headline-text”>H3 GenerateBlocks Headline – Ref 04 </h3>
<!– /wp:generateblocks/headline –><!– wp:generateblocks/headline {“uniqueId”:”92fbdf9f”,”element”:”p”} –>
<p class=”gb-headline gb-headline-92fbdf9f gb-headline-text”>Paragraph created using GenerateBlocks Headline Paragraph. I just noticed that within the WP Block Editor to edit a post there is a standard WP “details” icon which shows shows some statistics along with the document outline. The document outline shows header information. However if headers are created using the GenerateBlocks Headline function, they do not show up in this list, nor are they included in the header statistics. The paragraph statistics are also incorrect when the paragraph is created using GenerateBlocks Header paragraph. See the image below which explains more:- </p>
<!– /wp:generateblocks/headline –><!– wp:generateblocks/container {“uniqueId”:”a4b06c8d”,”backgroundColor”:”#ececeb”,”isDynamic”:true} –>
<!– wp:image {“id”:14650,”sizeSlug”:”large”,”linkDestination”:”none”} –>
<figure class=”wp-block-image size-large”>
</figure>
<!– /wp:image –>
<!– /wp:generateblocks/container –>Post copied in code editor mode end:
January 6, 2021 at 2:36 am #1607674David
StaffCustomer SupportHi there,
the Post Editor only counts the Core Blocks in the Info Panel.
This goes the same for all block plugins i have tested that provided an alternative ‘text’ block.
Something that needs to be resolved in core to allow 3rd party blocks to register its intent in the document details panel.As an aside, the Headline Block was never designed, and neither do we recommend it as a replacement to the core Heading block when it comes to writing long content in posts and page. The block is a design element to be used when custom typography is required ( ie. outside of theme styles ) such as in creating a Call to Action, Pricing Table, Author Block etc.
January 8, 2021 at 2:58 pm #1611569David
Howdy,
Back to the main point, I understand and appreciate that this needs to wait until Core WP has been updated to allow third parties including GenerateBlocks to add their Blocks to this function.
Can I assume that
a) that a request has been passed to the Core WP developers so that the “Something that needs to be resolved in core to allow 3rd party blocks to register its intent in the document details panel” part happens.
b) that when Core WP has been updated to include this that the GenerateBlocks plugin will also be updated?Your earlier reply did not make these 2 points clear.
So I agree that waiting for Core WP to be updated is the best thing to do in this instance. However they may need to know such things as blocks having different roles. For example, One GenerateBlocks Header block might be a H2 header and another GenerateBlocks Header block might be a paragraph. So one block adds 1 to the header count and the other one adds 1 to the paragraph count.
Being realistic, this is something that is not going to be resolved for some time (if ever), unless loads of people have already reported this to the Core WP developers. They might just remove that details information screen completely.
Stay well. Stay safe.
Happy New Year,
DavidJanuary 8, 2021 at 4:47 pm #1611619David
StaffCustomer SupportLooks like no one has reported it on the Gutenberg Github issues before. I have added a comment to one of their latest PR’s ( which is probably the wrong place as that PR is under review but will get the attention of the top developers ). Feel free to comment as its open to all 🙂
https://github.com/WordPress/gutenberg/pull/14956#issuecomment-757064146
Happy New Year to you too.
January 9, 2021 at 7:11 am #1612236David
Great. I have added my comment below yours at Github. Really strange that no one else had reported it.
Stay well. Stay safe.
Happy New Year,
DavidJanuary 9, 2021 at 8:28 am #1612322David
StaffCustomer SupportYou’re welcome.
Happy New Year
-
AuthorPosts
- You must be logged in to reply to this topic.