Last active
July 31, 2020 03:25
-
-
Save noisysocks/5fcdd2f2c0d467037ba99ca55caf44eb to your computer and use it in GitHub Desktop.
Navigation markup
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
<!-- wp:navigation --> | |
<nav class="wp-block-navigation"> | |
<div role="list"> | |
<!-- wp:link --> | |
<div class="wp-block-link" role="listitem"> | |
<a href="/">Home</a> | |
<div class="wp-block-link__submenu" role="list"> | |
<!-- wp:link --> | |
<div class="wp-block-link" role="listitem"> | |
<a href="/contact-us">Contact Us</a> | |
</div> | |
<!-- /wp:link --> | |
</div> | |
</div> | |
<!-- /wp:link --> | |
<!-- wp:link --> | |
<div class="wp-block-link" role="listitem"> | |
<a href="/">About</a> | |
<div class="wp-block-link__submenu" role="list"> | |
<!-- This would be a dynamic block that renders a <div class="wp-block-pages"> with links in it. The wrapper div would have display: contents. --> | |
<!-- wp:pages { "parent": 123 } /--> | |
</div> | |
</div> | |
<!-- /wp:link --> | |
<!-- wp:link { "submenuWidth": "wide" } --> | |
<div class="wp-block-link" role="listitem"> | |
<span>Services</span> | |
<div class="wp-block-link__submenu is-wide" role="list"> | |
<!-- wp:columns --> | |
<div class="wp-block-columns"> | |
<!-- wp:column --> | |
<div class="wp-block-column"> | |
<!-- wp:link --> | |
<div class="wp-block-link" role="listitem"> | |
<a href="/services/executive-team">Executive Team</a> | |
</div> | |
<!-- /wp:link --> | |
<!-- wp:link --> | |
<div class="wp-block-link" role="listitem"> | |
<a href="/services/creative-and-marketing">Creative and Marketing</a> | |
</div> | |
<!-- /wp:link --> | |
<!-- wp:link --> | |
<div class="wp-block-link" role="listitem"> | |
<a href="/services/location-and-hours">Location and Hours</a> | |
</div> | |
<!-- /wp:link --> | |
<!-- wp:link --> | |
<div class="wp-block-link" role="listitem"> | |
<a href="/services/careers">Careers</a> | |
</div> | |
<!-- /wp:link --> | |
</div> | |
<!-- /wp:column --> | |
<!-- wp:column --> | |
<div class="wp-block-column"> | |
<!-- wp:image --> | |
<figure class="wp-block-image">...</figure> | |
<!-- /wp:image --> | |
</div> | |
<!-- /wp:column --> | |
</div> | |
<!-- /wp:columns --> | |
</div> | |
</div> | |
<!-- /wp:link --> | |
<!-- wp:search --> | |
<form class="wp-block-search">...</form> | |
<!-- /wp:search --> | |
</div> | |
</nav> | |
<!-- /wp:navigation --> |
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
<!-- wp:navigation --> | |
<nav class="wp-block-navigation"> | |
<!-- wp:links --> | |
<ul class="wp-block-links"> | |
<li> | |
<!-- wp:link --> | |
<div class="wp-block-link"> | |
<a href="/">Home</a> | |
<div class="wp-block-link__submenu"> | |
<!-- wp:links --> | |
<ul class="wp-block-links"> | |
<li> | |
<!-- wp:link --> | |
<div class="wp-block-link"> | |
<a href="/contact-us">Contact Us</a> | |
</div> | |
<!-- /wp:link --> | |
</li> | |
</ul> | |
<!-- /wp:links --> | |
</div> | |
</div> | |
<!-- /wp:link --> | |
</li> | |
<li> | |
<!-- wp:link --> | |
<div class="wp-block-link"> | |
<a href="/">About</a> | |
<div class="wp-block-link__submenu"> | |
<!-- This would be a dynamic block that renders a <ul class="wp-block-pages"> with links in it. --> | |
<!-- wp:pages { "parent": 123 } /--> | |
</div> | |
</div> | |
<!-- /wp:link --> | |
</li> | |
<li> | |
<!-- wp:link { "submenuWidth": "wide" } --> | |
<div class="wp-block-link"> | |
<span>Services</span> | |
<div class="wp-block-link__submenu is-wide"> | |
<!-- wp:columns --> | |
<div class="wp-block-columns"> | |
<!-- wp:column --> | |
<div class="wp-block-column"> | |
<!-- wp:links --> | |
<ul class="wp-block-links"> | |
<li> | |
<!-- wp:link --> | |
<div class="wp-block-link"> | |
<a href="/services/executive-team">Executive Team</a> | |
</div> | |
<!-- /wp:link --> | |
</li> | |
<li> | |
<!-- wp:link --> | |
<div class="wp-block-link"> | |
<a href="/services/creative-and-marketing">Creative and Marketing</a> | |
</div> | |
<!-- /wp:link --> | |
</li> | |
<li> | |
<!-- wp:link --> | |
<div class="wp-block-link"> | |
<a href="/services/location-and-hours">Location and Hours</a> | |
</div> | |
<!-- /wp:link --> | |
</li> | |
<li> | |
<!-- wp:link --> | |
<div class="wp-block-link"> | |
<a href="/services/careers">Careers</a> | |
</div> | |
<!-- /wp:link --> | |
</li> | |
</ul> | |
<!-- /wp:links --> | |
</div> | |
<!-- /wp:column --> | |
<!-- wp:column --> | |
<div class="wp-block-column"> | |
<!-- wp:image --> | |
<figure class="wp-block-image">...</figure> | |
<!-- /wp:image --> | |
</div> | |
<!-- /wp:column --> | |
</div> | |
<!-- /wp:columns --> | |
</div> | |
</div> | |
<!-- /wp:link --> | |
</li> | |
</ul> | |
<!-- /wp:links --> | |
<!-- wp:search --> | |
<form class="wp-block-search">...</form> | |
<!-- /wp:search --> | |
</nav> | |
<!-- /wp:navigation --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment