Schema for SiteNavigationElement
-
The output of the site navigation for Mega Menu doesn’t output the “url” & “name” tags needed for schema in https://schema.org/SiteNavigationElement.
I have edited the code in /megamenu/classes/walker.class.php on lines 130 & 138
original
$item_output .= '<a'. $attributes .'>'; $item_output .= '</a>';
edited
$item_output .= '<a itemprop="url"'. $attributes .'><span itemprop="name">'; $item_output .= '</span></a>';
I don’t want to lose my changes when this plugin updates, what kind of function can I use in my child theme to overwrite the plugin code here?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Schema for SiteNavigationElement’ is closed to new replies.