If your ReadyTheme did not come with the default Transfigure Navigation extension pre-installed, you can add it to your site by performing the following steps.
- Navigate to User Interface -> Theme Components -> Navigation Sets -> primary_navigation
- Paste the content from transfigure-navigation.mvt.
- Navigate to User Interface -> Global Settings -> Settings -> Global Header
- Paste the following code where you would like the navigation to appear:
- Note: You may need to modify to fit best in your theme.
<div class="o-wrapper o-wrapper--full o-wrapper--flush t-site-navigation &mvte:global:checkout_hidden;">
<div class="o-layout o-layout--align-center o-layout--flush o-layout--justify-center t-site-navigation__wrap">
<mvt:item name="readytheme" param="navigationset( 'primary_navigation' )" />
</div>
</div>
<!-- end t-site-navigation -->
- Create a new build subdirectory as
build/extensions/transfigure-navigation/
- Add _transfigure-navigation.scss to the directory.
- Update your
build/extensions/extensions.scss
file to include@import "navigation/transfigure-navigation";
- Add transfigure-navigation.js to your
build/extensions/navigation/
subdirectory. - Update your
gulpfile.js
file to includebuildPathExtensions + '/navigation/transfigure-navigation.js'
to yourlet extensions
variable.
Within build/ui/theme.js
, locate init: function () {
and append this code:
/**
* Initialize the Transfigure Navigation extension
*/
$.hook('has-drop-down').transfigureNavigation();