topnav custom position
Joomla webshop template with CSS3-based animations, VirtueMart support and one-page checkout.
- GK User
- Mon Jul 21, 2014 9:51 am
Apologies for my site has no link yet.
I want to use the space above the mainmenu to position my logo.
I have unpublished modules in the topnav, search and cart positions.
I have place a custom module in the topnav position.
This is what I want to achieve...place a logo center position above the mainmenu.
How do I achieve this?
Many thanks for helping
I want to use the space above the mainmenu to position my logo.
I have unpublished modules in the topnav, search and cart positions.
I have place a custom module in the topnav position.
Problem.jpg
This is what I want to achieve...place a logo center position above the mainmenu.
Goal.jpg
How do I achieve this?
Many thanks for helping
-
- Expert Boarder
- GK User
- Mon Jul 21, 2014 11:22 am
Without access to your live site we can't help much. Perhaps you can post it somewhere live?
-
- Moderator
- GK User
- Mon Jul 21, 2014 1:54 pm
Cyberek wrote:Without access to your live site we can't help much. Perhaps you can post it somewhere live?
As requested - http://www.thegrandliving.co.za/testingsite/index.php
-
- Expert Boarder
- GK User
- Tue Jul 22, 2014 11:04 am
Please edit: /templates/gk_storefront/css/override.css and add at its end:
Remember to enable "CSS override" in template settings - advanced section.
- Code: Select all
#gkTopMenu {float: none;}
#gkHeaderTop > .gkPage {text-align: center;}
#gkHeaderNav {top: 90px;}
Remember to enable "CSS override" in template settings - advanced section.
-
- Moderator
- GK User
- Tue Jul 22, 2014 2:05 pm
Great thank you - last request. How do I add some padding to the logo, it's a bit cramped?
-
- Expert Boarder
- GK User
- Wed Jul 23, 2014 8:25 am
Top and bottom?
-
- Moderator
- GK User
- Wed Jul 23, 2014 8:32 am
Cyberek wrote:Top and bottom?
Yes, top and bottom...
Also when you scroll the background should not be transparent - but rather white.
scroll.jpg
Big thank you already!
-
- Expert Boarder
- GK User
- Wed Jul 23, 2014 8:35 am
I got the background-color / scrolling sorted, it's just the padding top and bottom..
template.css
#gkHeaderTop {height...
template.css
#gkHeaderTop {height...
-
- Expert Boarder
- GK User
- Wed Jul 23, 2014 4:40 pm
Please don't modify template core files, use override.css instead.
To add padding - you need to add padding:
- remember that the sum of top and bottom padding is 20px... now, you need to increase #gkHeaderTop height with the 20px (original value is 90px):
and move menu element bottom 20px (original value 90px):
Ps - creating that big header is not the best option.
To add padding - you need to add padding:
- Code: Select all
#gkTopMenu {
float: none;
padding: 10px 0;
}
- remember that the sum of top and bottom padding is 20px... now, you need to increase #gkHeaderTop height with the 20px (original value is 90px):
- Code: Select all
#gkHeaderTop {
height: 110px;
}
and move menu element bottom 20px (original value 90px):
- Code: Select all
#gkHeaderNav {
top: 110px;
}
Ps - creating that big header is not the best option.
-
- Moderator
- GK User
- Wed Jul 23, 2014 6:19 pm
Cyberek wrote:Ps - creating that big header is not the best option.
Thank you Cyberek...Why would you not suggest the header be sized?
http://www.thegrandliving.co.za/testingsite/
I see the logo disappears when resized - is this the problem with the big header - is the logo not responsive in that position?
-
- Expert Boarder
- GK User
- Thu Jul 24, 2014 5:35 pm
The way this page is designed - putting responsive logo in header is quite impossible. All changes that would need to be made to achieve that are beyond our technical support.
-
- Moderator
- GK User
- Fri Jul 25, 2014 8:15 am
thank you - I understand. Just a question so that I can better understand how to approach this fix.
When the browser frame is resized my logo stays until it eventually disappears because the size is now to small.
I assume it then uses styling contained in tablet.css, small.tablet.css and small.desktop.css
Is it possible to make adjustments so that the logo does not disappear
or if a code is triggered to display another logo (which in size would fit)?
http://www.thegrandliving.co.za/testingsite/
When the browser frame is resized my logo stays until it eventually disappears because the size is now to small.
I assume it then uses styling contained in tablet.css, small.tablet.css and small.desktop.css
Is it possible to make adjustments so that the logo does not disappear
or if a code is triggered to display another logo (which in size would fit)?
http://www.thegrandliving.co.za/testingsite/
-
- Expert Boarder
- GK User
- Fri Jul 25, 2014 4:41 pm
It can stay there, but with reduced width the spacing above fixed menu will increase - and that will not look good. You need to start with something like that:
Next you would need to create a width stop to reduce the spacing:
and one for smaller screens:
This isn't perfect but gives you a little better solution than current.
- Code: Select all
#gkTopMenu .custom img {max-width: 100%;}
@media (max-width: 600px){
#gkTopMenu {
display: block !important;
}
}
Next you would need to create a width stop to reduce the spacing:
- Code: Select all
#gkTopMenu .custom img {max-width: 100%;}
@media (max-width: 600px){
#gkTopMenu {
display: block !important;
}
}
@media (max-width: 480px){
#gkHeaderTop {
height: 86px;
}
#gkHeaderNav {top: 86px;}
}
and one for smaller screens:
- Code: Select all
@media (max-width: 320px){
#gkHeaderTop {
height: 64px;
}
#gkHeaderNav {top: 64px;}
}
This isn't perfect but gives you a little better solution than current.
-
- Moderator
- GK User
- Sun Jul 27, 2014 9:00 am
Thank you Cyberek, I can work with this. Many thanks for exceptional support!
-
- Expert Boarder
- GK User
- Tue Jul 29, 2014 6:29 am
Thanks for words of appreciation .
If you will have any other questions, feel free to post new forum threads.
If you will have any other questions, feel free to post new forum threads.
-
- Moderator
15 posts
• Page 1 of 1