# Cloning Template to HTML -- mobile menu missing

**URL:** <https://community.hubspot.com/t/cloning-template-to-html-mobile-menu-missing/10220>\
**Category:** CMS Development\
**Created:** [September 14, 2018, 3:21pm UTC](https://community.hubspot.com/t/cloning-template-to-html-mobile-menu-missing/10220 "2018-09-14T15:21:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [September 14, 2018, 3:21pm UTC](https://community.hubspot.com/t/cloning-template-to-html-mobile-menu-missing/10220/1 "2018-09-14T15:21:11Z")

</div>

Hi all,

I have cloned a template to HTML to set up a hubdb interaction.

All is good except that the mobile menu is missing.

The menu is in a global module which is referenced in the new html file

`{% include 'generated_global_groups/5935866465.html' %}`

The menu items are there (hidden), but the mobile trigger is gone.

are there items that are not copied to html when performing a clone?

Any thoughts on this?

Thanks,

d

---

<div class="post-metadata">

**Author:** ![tjoyce](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tjoyce/32/88832_2.png) [@tjoyce](https://community.hubspot.com/u/tjoyce)\
**Post date:** [September 14, 2018, 10:28pm UTC](https://community.hubspot.com/t/cloning-template-to-html-mobile-menu-missing/10220/2 "2018-09-14T22:28:56Z")

</div>

@dennisedson - can we get a preview link to the page? maybe it’s there but hidden

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [September 17, 2018, 1:16pm UTC](https://community.hubspot.com/t/cloning-template-to-html-mobile-menu-missing/10220/3 "2018-09-17T13:16:12Z")

</div>

@tjoyce-- here you go.

[http://www-averon-com.sandbox.hs-sites.com/about-us/wendell-brown](http://www-averon-com.sandbox.hs-sites.com/about-us/wendell-brown)

---

<div class="post-metadata">

**Author:** ![tjoyce](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tjoyce/32/88832_2.png) [@tjoyce](https://community.hubspot.com/u/tjoyce)\
**Post date:** [September 17, 2018, 1:59pm UTC](https://community.hubspot.com/t/cloning-template-to-html-mobile-menu-missing/10220/4 "2018-09-17T13:59:24Z")

</div>

@dennisedson - There’s 2 things you need to do to fix this.

1. Add the following script to your page:

```auto
$(function() {

 /** 
 * Mobile Nav
 *
 * Hubspot Standard Toggle Menu
 */

 $('.custom-menu-primary').addClass('js-enabled');

 /* Mobile button with three lines icon */
 $('.custom-menu-primary .hs-menu-wrapper').before('<div class="mobile-trigger"><i></i></div>');

 /* Uncomment for mobile button that says 'MENU' 
 $('.custom-menu-primary .hs-menu-wrapper').before('<div class="mobile-trigger">MENU</div>');
 */

 $('.custom-menu-primary .flyouts .hs-item-has-children > a').after(' <div class="child-trigger"><i></i></div>');
 $('.mobile-trigger').click(function() {
 $(this).next('.custom-menu-primary .hs-menu-wrapper').slideToggle(250);
 $('body').toggleClass('mobile-open');
 $('.child-trigger').removeClass('child-open');
 $('.hs-menu-children-wrapper').slideUp(250);
 return false;
 });

 $('.child-trigger').click(function() {
 $(this).parent().siblings('.hs-item-has-children').find('.child-trigger').removeClass('child-open');
 $(this).parent().siblings('.hs-item-has-children').find('.hs-menu-children-wrapper').slideUp(250);
 $(this).next('.hs-menu-children-wrapper').slideToggle(250);
 $(this).next('.hs-menu-children-wrapper').children('.hs-item-has-children').find('.hs-menu-children-wrapper').slideUp(250);
 $(this).next('.hs-menu-children-wrapper').children('.hs-item-has-children').find('.child-trigger').removeClass('child-open');
 $(this).toggleClass('child-open');
 return false;
 });

});

```

2. On your menu wrapper you have a class “cm-hidden-phone” (see screenshot) - you need to remove that class in order for the hamburger to appear.

 ![cm.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/b/2b069c3bbef052f51f2efdd1038a9ec154d9ed72.png)

* * *

If this answer helped, please, mark as solved 😄

* * *

[tim@belch.io](mailto:tim@belch.io) | [forms.belch.io](https://forms.belch.io) | Design your own Beautiful HubSpot Forms; No coding necessary.

Drop by and say Hi to me [on slack](http://slack.belch.io/).

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [September 17, 2018, 3:09pm UTC](https://community.hubspot.com/t/cloning-template-to-html-mobile-menu-missing/10220/5 "2018-09-17T15:09:08Z")

</div>

@tjoyce, why did these not come over from cloning to html?

I will add now and see if it works.

as always, thanks for speedy reply!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [September 21, 2018, 6:23pm UTC](https://community.hubspot.com/t/cloning-template-to-html-mobile-menu-missing/10220/6 "2018-09-21T18:23:59Z")

</div>

@tjoyce, noticed that when i clone to html, the external js scripts are not included in that clone. added my scripts and all is good!

thanks,

d
