Skip to content

Instantly share code, notes, and snippets.

@pigeonflight
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pigeonflight/57d718b7a23499929f55 to your computer and use it in GitHub Desktop.
Save pigeonflight/57d718b7a23499929f55 to your computer and use it in GitHub Desktop.
replace the portal-globalnav menu with a tags and classes
<replace css:theme-children="nav.w-nav-menu">
<xsl:for-each css:select="ul#portal-globalnav li">
<a><xsl:attribute name="class">w-nav-link navlink
</xsl:attribute><xsl:attribute name="href"><xsl:value-of select="./a/@href" /></xsl:attribute>
<xsl:copy-of select="./a/text()" /></a>
</xsl:for-each>
</replace>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment