-
AuthorPosts
-
October 22, 2013 at 8:45 am #191605
As I have a very long logo, it does not fit in the mobil version, so I want to have a different logo for the mobil version.
Where can I add that logo? Or is it possible to have the Logo automatically resized?(joomla 3.1.5, Beranis 1.0.3)
I appreciate any help!
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
October 23, 2013 at 10:52 am #509962Hi sobini,
You can try to create a smaller logo image for mobile only and put below overridden css styles into templates/ja_beranis/css/custom.css file:
@media (max-width: 479px) {
.logo-image h1 a {
width: 210px;
height: 100px;
background-size: 100% auto;
background: url('img_path');
}
}Adjust the css properties to fit it..
October 28, 2013 at 7:09 pm #510430Thanks, I did as suggested, but the Logo doesn’t show up.
Do I need to change anything else in addiction to the above code in the custom.css?phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
October 29, 2013 at 2:13 am #510453Hi sobini,
The reason that you uploaded the logo image into Theme tab of the Template Style so that you don’t need to define the logo image path anymore. You can try to open custom.css file, replace lines:
/* mobil logo */
@media (max-width: 479px) {
.logo-image h1 a {
width: 160px;
height: 90px;
background-size: 100% auto;
background: url(http://your_domain.com//images/UWERK_LOGO_MOBIL.png);
}
}
with
/*Mobile logo*/
@media (max-width: 479px) {
#t3-header {
height: 50px;
}.logo-image h1 a {
width: 160px;
height: 40px;
background-size: 100% auto;
}
}The logo will look quite small on mobile but that is a best procedure to keep Off-canvas button, logo and search box stay in one row on mobile.
1 user says Thank You to phong nam for this useful post
November 6, 2013 at 3:15 pm #511373This worked great for me, thanks.
Just in the wide view of a mobil phone the logo doesn’t swith to small, and so it covers almost the whole screen, so that there is only a tiny screen to see and scroll for the rest of the content. Attached is a screeshot.
How can the Logo be resized for the wide screen, or can it be made unsticky, so it scrools with the rest of the content?I appreciate any help.
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
November 6, 2013 at 3:44 pm #511377Hi,
Inside the codes I mentioned you above. You can change:
@media (max-width: 479px) {to
@media (max-width: 568px) {By that way, the logo will switch to small on both portrait and landscape view of iPhone, even also iPhone 5c 🙂
1 user says Thank You to phong nam for this useful post
November 8, 2013 at 8:42 am #511603Thank you so much, it worked perfectly!
AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 2 voices, and was last updated by sobini 11 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum