- This topic has 16 replies, 3 voices, and was last updated 4 months, 1 week ago by
David.
-
AuthorPosts
-
October 30, 2022 at 5:27 am #2393767
eran
Hi,
I want to create a table of content without plugins.Will it hurt my page’s SEO if I use headings as links instead of a list?
October 30, 2022 at 6:49 am #2393836David
StaffCustomer SupportHi there,
a List block will tell assistive technologies there is a List of related items here.
So it’s better for accessibility.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 30, 2022 at 6:55 am #2393840eran
So I’ll need to style it with CSS?
Or there’s a way I can use generateblocks to style it?
October 30, 2022 at 7:06 am #2393854David
StaffCustomer SupportDo you have GenerateBlocks Pro ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 30, 2022 at 7:21 am #2393874eran
Yes
October 30, 2022 at 7:38 am #2393891David
StaffCustomer SupportOk, if you:
1. add a Container Block, and got to Advanced > Add Attribute.
In the first left hand field add:role
In the second right hand field add:list
2. Inside the container add your Headlines. For each headline you add, in Advanced > Add Attribute
And this time it will berole
andlistitem
That in theory will allow assistive technologies and any other HTML tools treat it as a List.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 30, 2022 at 7:48 am #2393903eran
Can you check if I did it right?
Plus, is it possible to make an Indent list item?
October 30, 2022 at 8:09 am #2394159David
StaffCustomer SupportWhere can i see it ? Can you share a link
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 30, 2022 at 8:13 am #2394168eran
Added in private message.
Is it possible to make an Indent list item?
And there’s a way to add a bullet for every item? so when long item take space of 2 lines readers won’t think its a different item.
October 30, 2022 at 8:15 am #2394169David
StaffCustomer SupportSelect the Headline block(s) ( note you can shift click to select multiple ones ) and then in Spacing add some Left Margin.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 30, 2022 at 8:17 am #2394171David
StaffCustomer SupportCan you check if I did it right?
And yes – thats correct 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 30, 2022 at 8:18 am #2394172eran
there’s a way to add a bullet for every item? so when long item take space of 2 lines readers won’t think its a different item.
October 30, 2022 at 8:22 am #2394175David
StaffCustomer SupportYou can add an icon to the Headline block.
Or alternatively use a List Block if its going to make your life easier maintaining the lists.
We can assist with some CSS for styling if you need.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 18, 2022 at 2:58 pm #2422229Justin
David,
I’m not 100% sure my issue is related, but I don’t see the ability to indent text in a post.
Use case: Sometimes we use bullets for unordered lists, but the paragraphs are too long and we want to use a line break. However, there doesn’t appear to be a way for us to keep have a non-bulleted paragraph of text that’s aligned with the bulleted paragraph above it.
We’re in the process of migrating from Squarespace. I looked at our html and this is how they do it <p style=”margin-left:40px;white-space:pre-wrap;” class=””>[post text goes here]</p>
Can you think of a way we can easily accomplish the same thing without having to modify the html tags in the editor?
November 19, 2022 at 3:39 am #2422654David
StaffCustomer SupportHi there,
without messing with the HTML, the core List Block ( and the GB Headline Block ) does support (multiple) soft line-breaks using Shift Enter.
For the list block the margin indent is preserved.
The same goes for the Headline with an Icon, you will need to make sure the Icon alignment is set to Top.Does that help ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.