- This topic has 10 replies, 3 voices, and was last updated 7 months ago by
David.
-
AuthorPosts
-
August 22, 2022 at 6:27 pm #2320660
jaypabs
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
Hi Jomar,
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/665
August 22, 2022 at 10:36 pm #2320786jaypabs
Hi Fernando,
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 #2321124David
StaffCustomer SupportHi there,
for the GB issue, we will be adding options for the
article
element tag.The second issue, the
article
element is itself a sectioning element and its perfectly valid to nest anotherarticle
within it.If you want to change the top level tag then you would need to create your own child theme copy of the
content-single.php
or
content-page.php
And update the tag and closing tag as required.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 23, 2022 at 6:37 pm #2321831jaypabs
Hi,
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.php
to 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 #2322132David
StaffCustomer SupportIs that working for you now ?
Documentation: http://docs.generatepress.com/
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
article
element 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 #2322303David
StaffCustomer SupportGlad to hear that.
The
article
template tag will be added to the plugin very soon.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.