This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.


Moving mobile nav to open from the left

  • Creator
  • #26284
    Eleven Sites

    Hi Jason,

    We’re trying to move the mobile navigation to open up from the left side of the screen instead of the right. I’ve added the following code to my functions file, but this causes the entire div.tb-mobile-menu-wrapper to be omitted from the HTML that is output. So, clicking on the hamburger icon doesn’t do anything.

     * Slide mobile menu out from the left.
    function cfhh_js_locals( $locals ) {
        $locals['mobile_menu_location'] = 'left';
        return $locals;
    add_filter('themeblvd_js_locals', 'chff_js_locals');
Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
  • #26285
    Jason Bobich


    It looks like there’s a typo in your code there. Your callback function is named cfhh_js_locals, but you’re passing in that chff_js_locals is the name of the callback.

    cfhh_ vs chff_

    Eleven Sites

    Thanks Jason. What an idiot I am! That’s what I get for not just copy/pasting your code originally! I apologize for my stupidity.

    Jason Bobich

    That’s okay. I had to squint realllyyyy hard to see those letters flipped around.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.