Custom menu in custom sidebar widget

Viewing 5 posts - 1 through 5 (of 5 total)
  • #20009
    bo-oz
    Participant

    When I make a custom menu and use this in a widget, the links get messed up because there’s a missing hyphen (“) in the HTML source. Example:

    <div class=” role=”navigation” itemscope itemtype=”http://schema.org/SiteNavigationElement”menu-professionals-container&#8221; role=”navigation” itemscope itemtype=”http://schema.org/SiteNavigationElement”><ul id=” role=”navigation” itemscope itemtype=”http://schema.org/SiteNavigationElement”menu-professionals&#8221; role=”navigation” itemscope itemtype=”http://schema.org/SiteNavigationElement&#8221; class=” role=”navigation” itemscope itemtype=”http://schema.org/SiteNavigationElement”menu&#8221; role=”navigation” itemscope itemtype=”http://schema.org/SiteNavigationElement”&gt;

    Is this a wordpress error, theme bug or am I doing something wrong?

    #20013
    bo-oz
    Participant

    I have found the .php in which the ‘itemcope itemtype=”…’ part is being added. I cannot seem to find where the id’s of the div & ul are being set. It seems that the missing closing hyphen is causing the menu to break. Would be great if you can point me in the right direction, still don’t know if this is caused by wordpress or theme, but a google search results in nothing, so I guess the latter.

    #20016
    Daniel Tara
    Keymaster

    You can add this code to your child theme’s functions.php file to remove support for schema markup:

    add_action( 'after_setup_theme', 'enlightenment_child_setup', 50 );
    
    function enlightenment_child_setup() {
    	remove_theme_support( 'enlightenment-schema-markup' );
    }

    Although I doubt the missing hyphen is caused by schema markup. Can you post a link to your page?

    #20417
    bo-oz
    Participant

    Hi,

    Sorry for late reply, I was on a trip. The website is still is development, so it’s not live yet. But this menu thing is still the only hurdle. Any other things I can do or check? I did nothing codewise, just created a custom menu and appointed it to a sidebar.

    Maybe has something to do with the class? Because that is the property with the missing hyphen.

    #20428
    Daniel Tara
    Keymaster

    Until the next release you can find a quick fix here.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.