Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1453608

    Hi there,

    I followed your advice to create a dotsmenu as described here

    What I actually want to achieve is creating a menu on the right side of the page similar to the described dotsmenu but it should show icons. I therefore created a new menu with entypo fontello icons and used it as a submenu.

    Which part of the code given in the above mentioned link do I use to simply move the icon menu to the right side of the page? I tried to copy in the single parts of the code given, but it just does not work the way I want it to.

    Your help is highly appreciated.

    Regards
    Daniela

    #1455620

    Hey Daniela,
    I recommend creating a dotsmenu as described in our documentation and create the simple custom menu in the element:
    Enfold Support 6135
    with the custom class dotsmenu:
    Enfold Support 6137
    then to use entypo-fontello icons, go to your icon element and hover over the icons that you want to use and the chrcode will show, always drop the first “U”, so the code that you will use for this screenshot will be \e804
    Enfold Support 6139
    Then use this css, at teh bottom you will see the six icons for the six menu items in my example, add more if you wish:

    #top .dotsmenu {
      background: transparent;
      position: fixed!important;
      right: 10px;
      top: 50%!important;
      transform: translateY(-50%);
      border: none!important;
      max-width: 30px!important;
    }
    
    #top .dotsmenu .av-subnav-menu > li {    
        display: inline!important;
        margin: 10px !important;
    }
    
    #top .dotsmenu .av-subnav-menu li a {
      max-width: 40px;
      max-height:45px;
      border-radius:0; 
      overflow:hidden;
      padding: 0 !important;
      border: none!important;
      background: transparent;
    }
    
    #top .dotsmenu .av-subnav-menu li a .avia-bullet {
      display: none !important;
    }
    #top .dotsmenu .av-subnav-menu li a .avia-menu-text { 
    visibility: hidden;
    }
    
    @media only screen and (max-width: 767px) {
    .responsive #top .dotsmenu {
      background: transparent;
      position: fixed!important;
      right: 0;
      top: 50%!important;
      transform: translateY(-50%);
    }}
    #top .dotsmenu .av-subnav-menu li a:before {
     display: inline-block !important;
     font-size:30px;
     color: #fff;
    }
    #top .dotsmenu .av-subnav-menu li:nth-child(1) a:before {
      content: '\e804';
      font-family: 'entypo-fontello';
    }
    #top .dotsmenu .av-subnav-menu li:nth-child(2) a:before {
      content: '\e82a';
      font-family: 'entypo-fontello';
    }
    #top .dotsmenu .av-subnav-menu li:nth-child(3) a:before {
      content: '\e83d';
      font-family: 'entypo-fontello';
    }
    #top .dotsmenu .av-subnav-menu li:nth-child(4) a:before {
      content: '\e8b3';
      font-family: 'entypo-fontello';
    }
    #top .dotsmenu .av-subnav-menu li:nth-child(5) a:before {
      content: '\e8d2';
      font-family: 'entypo-fontello';
    }
    #top .dotsmenu .av-subnav-menu li:nth-child(6) a:before {
      content: '\e8b9';
      font-family: 'entypo-fontello';
    }

    This is the result:
    Enfold Support 6141

    Best regards,
    Mike

    #1457974

    Hi Mike,

    thank you. It seems to work but somehow I cannot change the color of the icons. I tried to insert the color code in this part of the css:

    #top .dotsmenu .av-subnav-menu li a:before {
     display: inline-block !important;
     font-size:30px;
     color: #fff;
    }

    but nothing changes.

    Regards
    Daniela

    #1457998

    maybe have a look at: https://pureinstall.webers-testseite.de/dot-navigation-with-colored-sections/
    here are all icons the same – but if you like these could be different

    on very small screens the dot-nav goes to the bottom.

    #1458520

    Hi,
    The color is set to white here:
    Enfold Support 6213

    Best regards,
    Mike

    #1458563

    Hi Mike,

    I tried to replace this with another hex code, but it does not change. (I changed it to black yesterday, it was displayed in white yesterday but in black today after logging in again. I want it to be #b51917 but it just does not work.)

    Different question: is it possible to have a box around the icons like a tab in a folder?

    Thanks a lot.

    Regards,
    Daniela

    #1458564

    PS: is it possible to have that menu on every page without inserting it on every single page?

    #1458565

    The display problem is solved. I entered css in style sheet, not in theme options. Now I copied it into the theme options and it works.

    #1459278

    Hi,

    PS: is it possible to have that menu on every page without inserting it on every single page?

    This is possible, but you will need to extract the actual shortcode of the fullwidth submenu element from the shortcode field and use it on a template hook to render it on every page.

    Example:

    add_action('ava_after_content_templatebuilder_page', function() {
      echo do_shortcode("[av_submenu which_menu='center' menu='' position='center' sticky='true' color='main_color' mobile='disabled' mobile_switch='av-switch-768' mobile_submenu='' alb_description='' id='' custom_class='' template_class='' av_uid='' sc_version='1.0']
    [av_submenu_item title='Menu Item 1']
    [av_submenu_item title='Menu Item 2']
    [/av_submenu]");
    }, 10);
    

    In order to enable the shortcode field and extract the shortcode, you need to switch the builder to debug mode.

    // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#debug-mode

    Best regards,
    Ismael

    #1459943

    Different question: is it possible to have a box around the icons like a tab in a folder?

    Can you have a quick look into this question?

    Thanks a lot.

    #1460019

    Hi,
    Do you mean that you want a square border around the icons? Please link to your page so we can examine, I don’t find a link to your page.

    Best regards,
    Mike

    #1461765

    Hi Mike,

    the page is not yet active and still under construction. You can see an example for what I want to achieve here.

    Best regards
    Daniela

    #1461792

    Hi,
    In your example:
    Enfold Support 6279
    each icon links to a different pages, the dots menu above links to different section on the same page, are you still going to use it like this, for links on the same page?

    Best regards,
    Mike

    #1461832

    Hi Mike,

    my version of the dotsmenu is already linked to different pages.

    Regards
    Daniela

    #1461863

    Hi,
    Ok then, does it have to have the exact shape as above, or can it be square?
    I guess you could use a background image for the shape, but it might be a challenge if you change the number of menu items in the future.
    A square shape would be easier since that is the shape of the element.
    To use css to add a background color, add the color to the dotsmenu previous css like this:

    #top .dotsmenu {
        background-color: red;
    }

    and then adjust the previous dotsmenu width css to suit.

    Best regards,
    Mike

    #1463418

    Hi Mike,

    thanks a lot, I figured it out. Topic can be closed.

    Regards,
    Daniela

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Fullwidth Submenu – Onepage Dotsmenu’ is closed to new replies.