Off-canvas Menu Position Changes On Resize - Question | JoomShaper

Off-canvas Menu Position Changes On Resize

C

clausjepsen

Helix Framework 3 years ago

On this site: https://www.egedalweb.dk/dabyfo/

My menu is the off-canvas menu. If I resize the browser window (smaller) or view on smartphone, the offcanvas menu moves into the body instead of staying in the header.

How can I force it to stay on resize?

0
10 Answers
Pavel
Pavel
Accepted Answer
3 years ago #2426

Hi. It looks like your not the right custom code.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 3 years ago #2408

Hi, It looks like this on my end https://prnt.sc/wsxqlw

0
C
clausjepsen
Accepted Answer
3 years ago #2446

Hi, I did some googling and came up with the @media custom css to correct it as shown by Pavel.

Pavel: Please verify if it looks correct now.

0
Pavel
Pavel
Accepted Answer
3 years ago #2470

Hi. It still looks wrong. You should completely remove your code.

/* Adjust Menu position on Smartphones*/
#offcanvas-toggler.offcanvas-toggler-right {
  margin-top: -108px;
  margin-right: 0px;
 width:80px;
}

And instead, adjust the column widths in the Helix Ultimate layout builder. Read the Helix documentation https://www.joomshaper.com/documentation/helix-framework/helixultimate/layout-builder, it is very helpful. Your mobile columns now look like this. You should set it up like this

0
C
clausjepsen
Accepted Answer
3 years ago #2472

... see new comment

0
C
clausjepsen
Accepted Answer
3 years ago #2473

Hi again,

I think I managed it now - at least part of it.

Using Column Options, I could set which bootstrap column to use on Smaller Phones. Had to set both "Logo" to col-1 and "Menu" to col-11 for "phones" in order to work (see image 1).

On tablets, I can do the same, but when fixing the logo at col-1 it squeezes to be within the col-1. How to overcome that? (image 2). I solved it on phone, by decreasing logo size for small screens. Is that the way to do it?

/* Decrease logo-size on Smartphones*/
.logo-image {
  display: block;
  max-width:200px;
  max-height:78px;
  width: auto;
  height: auto;
}

Image 1: Column options to set bootstrap column

Image 2: On larger screens the logo squeezes

0
Pavel
Pavel
Accepted Answer
3 years ago #2524

Hi.

You don't need css code. Just set up the columns.

For exemple:

tablet - logo 6 menu 6

phone (and larger phone) - logo 10 menu 2

0
C
clausjepsen
Accepted Answer
3 years ago #3872

@Pavel Not sure I fully understand you. On my "Logo" I can set column by device, but what do you mean by: "logo 6" and "logo 10" ?

0
Pavel
Pavel
Accepted Answer
3 years ago #3886

Hi. Yes, set column by device. I meant it.

Screen for Menu column

Screen for Logo column

1
C
clausjepsen
Accepted Answer
3 years ago #5523

Thanks Phavel, That made it for me. I really think Joomshaper should inklude a link/explanation or illustration on how these columns are located on the different media. Also provide an option to upload or force scaling of images to ones preferences. Best Claus

0