-
AuthorPosts
-
willanga Friend
willanga
- Join date:
- April 2015
- Posts:
- 7
- Downloads:
- 52
- Uploads:
- 0
- Thanked:
- 2 times in 1 posts
July 1, 2015 at 10:52 am #208103Thank you for the wonderful template JA Techzone. A quick question: is it possible to have the vertical menu in normal layout? I’d like to have the menu on the left side of the screen throughout also on a small screen.
ThanksAdam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
July 2, 2015 at 11:06 am #576122Hi @willanga,
The answer is yes, you can but this task require lots of modifications in the code so I can only provide you with instruction.
1. First, open file templatesja_techzonecsstemplate.css
2. Look for CSS rules begin with “ja-vertical-menu” and you will see that they are all wrapped inside
@media (min-width: 1640px)
which mean the vertical menu only available in viewport larger than 1640px.
3. All you have to do is look for the code contains above CSS rules (both rules) then adjust to min-width to make it visible in smaller screen, for example change as below :
@media (min-width: 768px)
1 user says Thank You to Adam M for this useful post
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
July 2, 2015 at 11:06 am #642448Hi @willanga,
The answer is yes, you can but this task require lots of modifications in the code so I can only provide you with instruction.
1. First, open file templatesja_techzonecsstemplate.css
2. Look for CSS rules begin with “ja-vertical-menu” and you will see that they are all wrapped inside
@media (min-width: 1640px)
which mean the vertical menu only available in viewport larger than 1640px.
3. All you have to do is look for the code contains above CSS rules (both rules) then adjust to min-width to make it visible in smaller screen, for example change as below :
@media (min-width: 768px)
1 user says Thank You to Adam M for this useful post
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
July 2, 2015 at 11:06 am #741107Hi @willanga,
The answer is yes, you can but this task require lots of modifications in the code so I can only provide you with instruction.
1. First, open file templatesja_techzonecsstemplate.css
2. Look for CSS rules begin with “ja-vertical-menu” and you will see that they are all wrapped inside
@media (min-width: 1640px)
which mean the vertical menu only available in viewport larger than 1640px.
3. All you have to do is look for the code contains above CSS rules (both rules) then adjust to min-width to make it visible in smaller screen, for example change as below :
@media (min-width: 768px)
1 user says Thank You to Adam M for this useful post
Css Magician FriendCss Magician
- Join date:
- October 2014
- Posts:
- 741
- Downloads:
- 43
- Uploads:
- 53
- Thanks:
- 114
- Thanked:
- 366 times in 263 posts
July 3, 2015 at 8:38 am #576242You can try with my below tweak:
1) Upgrade JA ACM Module to latest version.
2) Open file templates/ja_techzone/less/variables.less
replace
@screen-hd: @container-hd-desktop + @t3-mainnav-width + @grid-gutter-width;
with
@screen-hd: @container-large-desktop + @t3-mainnav-width + @grid-gutter-width;
replace
@container-large-desktop: ((1140px + @grid-gutter-width));
width:
@container-large-desktop: ((850px + @grid-gutter-width));
3) Open file templates/ja_techzone/less/style.less
replace
.ja-vertical-menu {
.t3-wrapper {
> .container {
> .row {
@media screen and (min-width: @screen-hd) {
padding-top: @t3-header-height;
}
}@media (min-width: @screen-hd) {
margin-left: @t3-mainnav-width + 2px;
}
}.container {
@media screen and (min-width: @screen-hd) {
width: @container-hd;
}
}
}
}with:
.ja-vertical-menu {
.t3-wrapper {
> .container {
> .row {
@media screen and (min-width: @screen-hd) {
padding-top: @t3-header-height;
}
}@media (min-width: @screen-hd) {
margin-left: @t3-mainnav-width + 2px;
}
}.container {
@media (min-width: (@container-hd-desktop + @t3-mainnav-width + @grid-gutter-width)) {
width: @container-hd;
}
}
}
}
4) Go to template manager -> JA Techzone template -> Compile Less to Css (remember to backup your site first)
5) Go to Front End, refresh your site, it will have vertical menu in 1200px or higher resolution screen.
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by Adam M 9 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum