Last active
August 29, 2015 14:00
-
-
Save pigeonflight/57d718b7a23499929f55 to your computer and use it in GitHub Desktop.
replace the portal-globalnav menu with a tags and classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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