- This topic has 10 replies, 3 voices, and was last updated 7 months ago by David.
August 22, 2022 at 6:27 pm #2320660jaypabs
I’ve been using Thesis theme before. And the top 10 recent posts in the front page is formatted as Article section as show below:
In GeneratePress query loop, how do I format it to use Article section instead of Div tag as shown below?August 22, 2022 at 9:36 pm #2320762jaypabs
I found that you have some semantic in Query Loop widget but it’s lacking the Article.
Is it possible that you can add it? Or else I have to buy Elementor plugin just because of this.August 22, 2022 at 9:47 pm #2320770Fernando Customer Support
There’s a filter for this. Specifically –
generateblocks_container_tagname. I raised a bug ticket as there might be a bug regarding it and the tag name for the Query Loop Block.
You can find it here: https://github.com/tomusborne/generateblocks/issues/665August 22, 2022 at 10:36 pm #2320786jaypabs
Thank you for acknowledging this. I hope this can be fix ASAP as this is very important for SEO.August 22, 2022 at 10:39 pm #2320788Fernando Customer Support
You’re welcome Jomar! Hopefully it does.August 23, 2022 at 3:19 am #2321064jaypabs
Just an update. We temporarily created a script to add the “article” semantic.
Please see screenshot below.
However, the first “article” above should be change to “div” or maybe “section”?August 23, 2022 at 4:15 am #2321124DavidStaffCustomer Support
for the GB issue, we will be adding options for the
The second issue, the
articleelement is itself a sectioning element and its perfectly valid to nest another
If you want to change the top level tag then you would need to create your own child theme copy of the
And update the tag and closing tag as required.
Adding CSS: http://docs.generatepress.com/article/adding-css/August 23, 2022 at 6:37 pm #2321831jaypabs
I forgot to mention that I am using this page on my frontpage. That’s why I need to change the article element to something like section or div.
I already added
content-page.phpto my child theme and created a condition that if the page is in the frontpage it will change to section else use article.August 24, 2022 at 2:39 am #2322132DavidStaffCustomer Support
Is that working for you now ?
Adding CSS: http://docs.generatepress.com/article/adding-css/August 24, 2022 at 5:38 am #2322274jaypabs
Yes, though I have temporary fix on the first issue which is the options for the
articleelement tag. I still wanted that you integrate it on the next update. This is very important for SEO.August 24, 2022 at 6:26 am #2322303DavidStaffCustomer Support
Glad to hear that.
articletemplate tag will be added to the plugin very soon.
Adding CSS: http://docs.generatepress.com/article/adding-css/
- You must be logged in to reply to this topic.