Forum Replies Created
-
Author
-
ScorpyonsParticipant
Hi,
as per schema.org documentation (http://schema.org/breadcrumb, http://schema.org/BreadcrumbList), the correct breadcrumb structure should be:
COPY CODE<ol itemscope itemtype="http://schema.org/BreadcrumbList"> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a itemprop="item" href="https://example.com/dresses"> <span itemprop="name">Dresses</span></a> <meta itemprop="position" content="1" /> </li> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a itemprop="item" href="https://example.com/dresses/real"> <span itemprop="name">Real Dresses</span></a> <meta itemprop="position" content="2" /> </li> </ol>
For site menu navigation (http://schema.org/SiteNavigationElement), the structure should be:
COPY CODE<ul itemscope itemtype="http://www.schema.org/SiteNavigationElement"> <li itemprop="name"><a itemprop="url" href="http://www.travelstore.com/our-advantage">Our Advantage</a></li> <li itemprop="name"><a itemprop="url" href="http://www.travelstore.com/our-travel-experts">Travel Experts</a></li> <li itemprop="name"><a itemprop="url" href="http://www.travelstore.com/destinations">Destinations</a></li> <li itemprop="name"><a itemprop="url" href="http://www.travelstore.com/cruises">Cruises</a></li> <li itemprop="name"><a itemprop="url" href="http://www.travelstore.com/interests">Interests</a></li> <li itemprop="name"><a itemprop="url" href="http://www.travelstore.com/explore-your-world/interests/hotels-and-resorts">Hotels</a></li> <li itemprop="name"><a itemprop="url" href="http://www.travelstore.com/travel-guides">Travel Resources</a></li> </ul>
ScorpyonsParticipantHi Radu, Thanks for your response.
I have few familiarity with PHP, so sorry for my stupid questions. Just to confirm, for foruns, should we use:
elseif ( is_singular( ‘forum’ ) ) {
or
elseif ( is_bbpress() ) {
which should I use? Also, I do have suggestions that you guys can include in seventhqueen/schema-org-body-header.php.
You guys could include this forum improvment, and since the theme is multipurpose, you guys could also include schema.org tags related to places (Geodirectory), tags related to contact page (http://schema.org/ContactPage).
These changes would make the theme much more complete.
Regards,
ScorpyonsParticipantHi,
it’s working now! Regarding Forum, how can I include itemtype=”DiscussionForumPosting” to the forum?
Should I include something like this?
elseif ( is_singular( ‘forum’ ) ) {
$type = “DiscussionForumPosting”;Is this correct or should I code something else?
ScorpyonsParticipantHi,
It seems that most of the pages are working now.
I don’t see any changes on the profile page. If you access any profile page (https://www.aquaristz.com/membros/raphael-martins/profile/), you don’t see ProfilePage type. Can you help me with this?
Also, how can I include itemtype=”http://schema.org/DiscussionForumPosting” to the forum?
ScorpyonsParticipantHi,
I followed the instructions, but when I inserted the code in wp-content/themes/kleo-child/functions.php, when I access the site a get the following error message: Fatal error: Cannot redeclare kleo_schema_org_markup() (previously declared in /home/masteraquaristz/aquaristz.com/wp-content/themes/kleo-child/functions.php:56) in /home/masteraquaristz/aquaristz.com/wp-content/themes/kleo/lib/theme-functions.php on line 2522
Here is a screenshot of the issue:
https://gyazo.com/7f101ab624ea11495f0104cc8122f318I reverted the change for now.
Can you help me?
-
AuthorPosts