-
Author
-
February 19, 2018 at 17:01 #189167ScorpyonsParticipant
Hi,
How can I change the schema.org structure for the menu and bradcrumb?
February 20, 2018 at 01:00 #189220LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 20, 2018 at 16:24 #189268RaduModeratorHi,
Can you please be more specific ? what you need more exactly to change at code level ?
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 20, 2018 at 17:04 #189272ScorpyonsParticipantHi,
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>
February 21, 2018 at 16:33 #189347RaduModeratorThere is no easy way to do that, i will let you know the files from the menu and breadcrumbs are builded if you really need do it, but you need to have strong php knowledges.
1. Menu : /wp-content/themes/kleo/lib/menu-walker.php to can overwrite this file you can copy the entire code from if ( ! class_exists( ‘kleo_walker_nav_menu’ ) ) { until the end ( .see screenshot )
the code can be copied to wp-content/themes/kleo-child/functions.php2. The breadcrumb class and functions cannot be overwritten on the html level in child, here it’s the markup for the breadcrumb area wp-content/themes/kleo/kleo-framework/lib/function-breadcrumb.php
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.