[solved] How to set the width of *site navigation* menue?

Hi, how and where to set the width of the *site navigation* menue, so it fits the default site width?

I'm using protean template, UNA 12, una cloud hosted. 

  • 450
  • More
Replies (2)
    • Hello Peter !

      It is possible to do via inserting the following Javascript code to the Studio->Designer->Injections->Head area:

      <script>

        function correct_menu()

        {

          var iWidthPage = $(window).width();

          var iWidthCnt  = $(".bx-def-page-width").width();

          var iLeft = (iWidthPage - iWidthCnt) / 2;

          

          var oObj = $("-sliding-menu-sys_site");

          oObj.css("width", iWidthCnt);

          oObj.css("left", iLeft);

        }

        $(document).ready(function () {

          $('-menu-toolbar-1-container a.bx-def-font-contrasted').attr('onclick', 'bx_menu_slide_inline("-sliding-menu-sys_site", this, "site"); correct_menu();');

        });

      </script>

        function correct_menu()

        {

          var iWidthPage = $(window).width();

          var iWidthCnt  = $(".bx-def-page-width").width();

          var iLeft = (iWidthPage - iWidthCnt) / 2;

          

          var oObj = $("-sliding-menu-sys_site");

          oObj.css("width", iWidthCnt);

          oObj.css("left", iLeft);

        }

        $(document).ready(function () {

          $('a.bx-def-font-contrasted').attr('onclick', 'bx_menu_slide_inline("-sliding-menu-sys_site", this, "site"); correct_menu();');

        });

      • Thanks !!!

        Login or Join to comment.