admin管理员组文章数量:1026989
I'm studying for SEO purposes how a few WordPress sites (that aren't mine) are organized, link structure architecture and so on.
Therefore I need to know if a specific URL of a website is a post, page, or a taxonomy archive.
Can I do that using Chrome Inspect tool? How?
If no, so any other way to get this information?
Thanks for all help!
I'm studying for SEO purposes how a few WordPress sites (that aren't mine) are organized, link structure architecture and so on.
Therefore I need to know if a specific URL of a website is a post, page, or a taxonomy archive.
Can I do that using Chrome Inspect tool? How?
If no, so any other way to get this information?
Thanks for all help!
Share Improve this question asked Jun 25, 2019 at 14:58 FabioBFabioB 31 bronze badge1 Answer
Reset to default 2WordPress sites usually use body_class()
, which adds CSS classes to the <body>
tag. If you inspect the body element itself, most sites will show you something like
<body class="page-template page-template-tpl-events page-template-tpl-events-php page page-id-1168 page-parent page-child parent-pageid-378">
You can tell from these classes that this is a Page, using a Page Template, it is a Parent, and it is also a Child. You'll see similar classes that tell you when you're on a Post, Archive, etc.
I'm studying for SEO purposes how a few WordPress sites (that aren't mine) are organized, link structure architecture and so on.
Therefore I need to know if a specific URL of a website is a post, page, or a taxonomy archive.
Can I do that using Chrome Inspect tool? How?
If no, so any other way to get this information?
Thanks for all help!
I'm studying for SEO purposes how a few WordPress sites (that aren't mine) are organized, link structure architecture and so on.
Therefore I need to know if a specific URL of a website is a post, page, or a taxonomy archive.
Can I do that using Chrome Inspect tool? How?
If no, so any other way to get this information?
Thanks for all help!
Share Improve this question asked Jun 25, 2019 at 14:58 FabioBFabioB 31 bronze badge1 Answer
Reset to default 2WordPress sites usually use body_class()
, which adds CSS classes to the <body>
tag. If you inspect the body element itself, most sites will show you something like
<body class="page-template page-template-tpl-events page-template-tpl-events-php page page-id-1168 page-parent page-child parent-pageid-378">
You can tell from these classes that this is a Page, using a Page Template, it is a Parent, and it is also a Child. You'll see similar classes that tell you when you're on a Post, Archive, etc.
本文标签: permalinksHow can I say if a URL is a postpageor taxonomy archive
版权声明:本文标题:permalinks - How can I say if a URL is a post, page, or taxonomy archive? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745370546a2147833.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论