Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #1489275

    In layerslider I want a text box center. Whatever I do it snaps to the right of the page. There is only an Position left top option. How do I have a text box that I can position where I want it?
    Thanks

    #1489295

    Hey fanlokbun,

    Thank you for the inquiry.

    In the Layer Settings, go to Style > Size & Position, then click the Position to Horizontal Center and Position to Vertical Center buttons, as shown in the screenshot below.

    Screenshot-2025-09-17-at-11-07-08-AM

    Best regards,
    Ismael

    #1489308

    Hi Ismael,

    Thanks for that I must still be doing something wrong. I can move it using those controls but it changes the font sizes. As soon as I correct the fonts it snaps back to the right. Any changes to the text box shape changes the font size too and it tries to get in one line. I don’t understand the logic of how it is supposed to work. I just want a rectangle box with text in 5 lines that I can position centre top.

    Many thanks

    #1489336

    Hi,

    Thank you for the update.

    We replaced the Text layer with HTML and adjusted the content slightly to break it into multiple lines. You can now try adjusting the styling, and once you’re done, snap it back to vertical and horizontal alignment.

    Best regards,
    Ismael

    #1489355

    Thanks Ismael
    If I try and change the size the top line does it’s own thing. Snapping back to vertical and horizontal didn’t change it. See screenshot.
    Thanks

    #1489383

    Hi,

    Try applying a specific width to the html layer, then enable the Text & Typography > Word Wrap option. You can also set this in the Advanced > Custom CSS field.

    https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_text/Wrapping_breaking_text#breaking_long_words

    Best regards,
    Ismael

    #1489391

    Thanks Ismael I think I have got the hang of it now.
    Quick add on question (sorry). How do I add a transparent navigation menu to the top that is different from the rest of the site?
    Thanks again.

    #1489443

    Hi,

    Thank you for the update.

    Have you tried using the Fullwidth Submenu element? You can also create it manually above the current Layer Slider, but that would require some customization. Let us know if you have more questions.

    Best regards,
    Ismael

    #1489458

    Thanks Ismael that works! How do I change the background transparency 50% so the slider shows through?
    Cheers

    #1489459

    … actually I don’t think it is floating over the sider. It needs to do that too.
    Thanks

    #1489475

    Hi,

    You can add this css code to make the background transparent and have the menu float above the slider.

    @media only screen and (min-width: 768px) {
      /* Add your Desktop Styles here */
    
      #top .av-submenu-container.av-mfuwd2dc-fbfd62110b190173ec9e1a9c9af59e82 {
        position: absolute;
        background-color: #4f5b33a3;
      }
    
      #top .av-submenu-container.av-mfuwd2dc-fbfd62110b190173ec9e1a9c9af59e82 .av-subnav-menu li a {
        background-color: transparent;
      }
    }
    

    Screenshot-2025-09-23-at-11-16-23-AM

    Best regards,
    Ismael

    #1489493

    That’s great thanks Ismael. I tried adding css under /* Add your Desktop Styles here */ but I cant get it to work. Please can you give me a quick example changing the hover colour and I can work it out from there.
    Thanks again

    #1489512

    Hi,

    Are you trying to change the color of the menu items on hover? Try to add this css code:

    #top .av-submenu-container.av-mfuwd2dc-fbfd62110b190173ec9e1a9c9af59e82 .av-subnav-menu li:hover a {
        color: #f3ab29;
    }

    Best regards,
    Ismael

    #1489521

    Great thanks Ismael!
    Good choice of colour.

    #1489522

    Sorry one more thing. When it switches to mobile it loses transparency. How do I keep the same transparency as in full screen?

    #1489551

    Hi,

    Add this css code to adjust the background color on smaller screens:

    @media only screen and (max-width: 989px) {
    
      /* Add your Mobile Styles here */
      .responsive #top .av-submenu-container {
        position: absolute !important;
        background-color: #4f5b33a3;
      }
    
      .responsive #top .socket_color .mobile_menu_toggle {
        color: #ffffff;
        background: transparent;
        border: 0;
      }
    
      .responsive #top .socket_color .mobile_menu_toggle:hover {
        color: #f3ab29;
      }
    }

    Screenshot-2025-09-25-at-12-16-31-PM

    Best regards,
    Ismael

    #1489567

    Sorry Ismael that isn’t working. It is still opaque.
    Thanks

    #1489582

    Hey!

    We adjusted the css selector a bit. It should be working correctly now. Please make sure to purge the cache or remove browser history before checking.

    Regards,
    Ismael

    #1489594

    Thanks Ismael that’s great. There are a couple of places next to where there are submenu items that show the page through the menu in mobile mode. Any idea how to stop this?
    Thanks

    #1489635

    Hi,

    Did you add this css code somewhere? It limits the width of the submenu, which also affects the mobile menu.

    ul.sub-menu {
        width: 270px !important;
    }

    Removing the css rule should make the element display properly.

    Screenshot-2025-09-29-at-12-29-15-PM

    Best regards,
    Ismael

    #1489642

    Well spotted thanks Ismael
    You can close this thread.
    Thanks again

    #1489672

    Hi,

    Glad we could be of help. Please let us know if you have more questions. Have a nice day.

    Best regards,
    Ismael

Viewing 22 posts - 1 through 22 (of 22 total)
  • The topic ‘Layerslider text box right margin’ is closed to new replies.