TheGame Mobile Menu

Latest Reply from Grace at 2016-06-27 02:17:12
Hello

Mobile menu not working for me at:

http://oreidascavacas.com

Any ideas?
Hi!

Perhaps, some issues are in the functions.php file located in the theme folder. You can try to fix it by replacing the code on the 248-275 strings in this file with the following code:

function block_sec_menu_mobile() {
?>
<script>
jQuery(document).ready(function(){
jQuery('.menu-topmenu li').each(function() {
jQuery('<option />', {
'value':jQuery(this).find('a').attr('href'),
'text':jQuery(this).find('a').html()
}).appendTo(jQuery('#mobile-sec-menu'));
});
});
</script>
<?php
}
function block_main_menu_mobile() {
?>
<script>
jQuery(document).ready(function(){
jQuery('.menu-primary li').each(function() {
jQuery('<option />', {
'value':jQuery(this).find('a').attr('href'),
'text':jQuery(this).find('a').html()
}).appendTo(jQuery('#mobile-main-menu'));
});
});
</script>
<?php
}

Leave a reply

Add codeAdd image