This topic has 4 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #189167
     Scorpyons
    Participant

    Hi,

    How can I change the schema.org structure for the menu and bradcrumb?

    #189220
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #189268
     Radu
    Moderator

    Hi,

    Can you please be more specific ? what you need more exactly to change at code level ?

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #189272
     Scorpyons
    Participant

    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>
    
    #189347
     Radu
    Moderator

    There 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.php

    2. 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
Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?