-
AuthorPosts
-
meisner Friend
meisner
- Join date:
- November 2010
- Posts:
- 27
- Downloads:
- 1
- Uploads:
- 3
- Thanks:
- 7
- Thanked:
- 3 times in 1 posts
October 3, 2015 at 5:54 pm #695055I would like to make the menu change to the mobile or collapsed view when shown on the slim/verticle tablet view.
I can’t seem to find any way to do this in the settings, so i’m thinking that i have to go into the files shown in some of the documentation files. But i wasn’t able to find any help for the one page template, so i hope you can help!Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 6, 2015 at 1:18 am #695480Hi meisner,
Let me check and will get back to you.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 6, 2015 at 1:18 am #750676Hi meisner,
Let me check and will get back to you.
meisner Friendmeisner
- Join date:
- November 2010
- Posts:
- 27
- Downloads:
- 1
- Uploads:
- 3
- Thanks:
- 7
- Thanked:
- 3 times in 1 posts
October 14, 2015 at 12:25 am #704906Any news on this? I would love to get this fixed before sending the link to anyone.
meisner Friendmeisner
- Join date:
- November 2010
- Posts:
- 27
- Downloads:
- 1
- Uploads:
- 3
- Thanks:
- 7
- Thanked:
- 3 times in 1 posts
October 14, 2015 at 12:25 am #751569Any news on this? I would love to get this fixed before sending the link to anyone.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 14, 2015 at 3:05 am #704920I’m terribly sorry for this lateness, somehow I missed it.
You will need to change in LESS file in order to have collapse button in tablet view (like mobile view). Here is the tweak:
– Go to file: root/templates/ja_onepage/less/variables.less
– Find the declaration for Navbar, you will see this rule:
@navbarCollapseWidth: 768px;
Just change 768px to the screen size which you want to show collapse button.
– If your site is in Development mode (in template manager section), the change above will affect immediately on your site. But if Development mode is disabled, you will need to backup all current css files first and in template manager section, hit the button <>LESS to CSS to compile less to css. (Remember to backup css files because when compiling less to css, the existing css files will be overridden).
1 user says Thank You to Saguaros for this useful post
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 14, 2015 at 3:05 am #751583I’m terribly sorry for this lateness, somehow I missed it.
You will need to change in LESS file in order to have collapse button in tablet view (like mobile view). Here is the tweak:
– Go to file: root/templates/ja_onepage/less/variables.less
– Find the declaration for Navbar, you will see this rule:
@navbarCollapseWidth: 768px;
Just change 768px to the screen size which you want to show collapse button.
– If your site is in Development mode (in template manager section), the change above will affect immediately on your site. But if Development mode is disabled, you will need to backup all current css files first and in template manager section, hit the button <>LESS to CSS to compile less to css. (Remember to backup css files because when compiling less to css, the existing css files will be overridden).
1 user says Thank You to Saguaros for this useful post
meisner Friendmeisner
- Join date:
- November 2010
- Posts:
- 27
- Downloads:
- 1
- Uploads:
- 3
- Thanks:
- 7
- Thanked:
- 3 times in 1 posts
October 14, 2015 at 9:18 am #704998Hey there, thank you for the reply!
It does work, sorta, but if i set it to what i need, which seems to be at a very high 1200px, the mobile or collapsed version of the menu seems to act up. The button is black and is placed in the right side instead of the left.
meisner Friendmeisner
- Join date:
- November 2010
- Posts:
- 27
- Downloads:
- 1
- Uploads:
- 3
- Thanks:
- 7
- Thanked:
- 3 times in 1 posts
October 14, 2015 at 9:18 am #751636Hey there, thank you for the reply!
It does work, sorta, but if i set it to what i need, which seems to be at a very high 1200px, the mobile or collapsed version of the menu seems to act up. The button is black and is placed in the right side instead of the left.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 14, 2015 at 9:53 am #705003You can try adding style below into the file: root/templates/ja_onepage/navigation-responsive.less
@media (max-width: 1200px){
.t3-mainnav, #ja-header .span10 {
float: left;
}
}
@media (min-width: 768px) and (max-width: 1200px) {
.t3-mainnav {
margin-left: -125px;
}
}you can change to your desired value
1 user says Thank You to Saguaros for this useful post
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 14, 2015 at 9:53 am #751641You can try adding style below into the file: root/templates/ja_onepage/navigation-responsive.less
@media (max-width: 1200px){
.t3-mainnav, #ja-header .span10 {
float: left;
}
}
@media (min-width: 768px) and (max-width: 1200px) {
.t3-mainnav {
margin-left: -125px;
}
}you can change to your desired value
1 user says Thank You to Saguaros for this useful post
meisner Friendmeisner
- Join date:
- November 2010
- Posts:
- 27
- Downloads:
- 1
- Uploads:
- 3
- Thanks:
- 7
- Thanked:
- 3 times in 1 posts
October 14, 2015 at 10:12 am #705005That fixes the positioning issue, but the menu still bugs out, turns back instead of white and displays the first menu item in a strange fashion. It’s not until you get down to a phone size that the menu starts to look normal again.
meisner Friendmeisner
- Join date:
- November 2010
- Posts:
- 27
- Downloads:
- 1
- Uploads:
- 3
- Thanks:
- 7
- Thanked:
- 3 times in 1 posts
October 14, 2015 at 10:12 am #751643That fixes the positioning issue, but the menu still bugs out, turns back instead of white and displays the first menu item in a strange fashion. It’s not until you get down to a phone size that the menu starts to look normal again.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 15, 2015 at 7:05 am #705244You can open above file: root/templates/ja_onepage/navigation-responsive.less
At the beginning of file, you will see this rule:
//
// TABLET
// ------------------------------------------------------------- @media ( max-width: 1024px ) {
.t3-mainnav .navbar .nav > li > a {
margin: 0px 7px;
}.t3-mainnav .dropdown-menu {
right: 0px !important;
left: auto !important;
}.t3-mainnav .dropdown-menu .dropdown-menu {
left: -163px !important;
right: auto !important;
}
}
you can add additional rule as below:
//
// TABLET
// ------------------------------------------------------------- @media ( max-width: 1024px ) {
.t3-mainnav .navbar .nav > li > a {
margin: 0px 7px;
}.t3-mainnav .dropdown-menu {
right: 0px !important;
left: auto !important;
}.t3-mainnav .dropdown-menu .dropdown-menu {
left: -163px !important;
right: auto !important;
}
.t3-mainnav .navbar .btn-navbar {
margin: 15px 0 (@baseLineHeight / 2) 20px;
background: none;
box-shadow: none;
border: solid 1px @grayDarker;
}
}
1 user says Thank You to Saguaros for this useful post
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 15, 2015 at 7:05 am #751780You can open above file: root/templates/ja_onepage/navigation-responsive.less
At the beginning of file, you will see this rule:
//
// TABLET
// ------------------------------------------------------------- @media ( max-width: 1024px ) {
.t3-mainnav .navbar .nav > li > a {
margin: 0px 7px;
}.t3-mainnav .dropdown-menu {
right: 0px !important;
left: auto !important;
}.t3-mainnav .dropdown-menu .dropdown-menu {
left: -163px !important;
right: auto !important;
}
}
you can add additional rule as below:
//
// TABLET
// ------------------------------------------------------------- @media ( max-width: 1024px ) {
.t3-mainnav .navbar .nav > li > a {
margin: 0px 7px;
}.t3-mainnav .dropdown-menu {
right: 0px !important;
left: auto !important;
}.t3-mainnav .dropdown-menu .dropdown-menu {
left: -163px !important;
right: auto !important;
}
.t3-mainnav .navbar .btn-navbar {
margin: 15px 0 (@baseLineHeight / 2) 20px;
background: none;
box-shadow: none;
border: solid 1px @grayDarker;
}
}
1 user says Thank You to Saguaros for this useful post
-
AuthorPosts
This topic contains 23 replies, has 2 voices, and was last updated by Saguaros 9 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum