1. smbluest
  2. Commercial Templates
  3. Wednesday, 05 February 2014
  4.  Subscribe via email
Hi,

I am using the Metropolis template on Joomla 3.1

My client has a very long business title. The entire business title must show on one line for all desktop monitors and tablets. The client is ok with title wrapping on a smart phone screen.

If I type in the title in the logo text field, the title does not behave responsively (that is, the title does not wrap as the screen gets smaller). I would like it to do that. Is this possible? If so, what do I need to do.

Please see attachment for the business name.

Thank you!
Sheri
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Sheri

Try adding the following to the Custom CSS field of your templates parameters which will edit your logo font size depending on the screen size your site is been viewed on. You can edit this to your own taste to best suit your logo text...


/* #Tablet (Portrait)
====================== */
@media only screen and (min-width: 768px) and (max-width: 959px) {
h1.logo-text a {font-size: 34px;}
}

/* #Mobile (Landscape)
====================== */
@media only screen and ( max-width: 767px ) {
h1.logo-text a {font-size: 34px;}
}

/* #Mobile (Portrait)
====================== */
@media only screen and (max-width: 440px) {
h1.logo-text a {font-size: 34px;}
}


Hope this helps

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
That's perfect, Ciaran. Thank you so much for your excellent customer service!
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi again,

Now that I have resized my text logo in Metropolis, I realize that it is not centered vertically in the logo area because my client doesn't want to use a tag line. How can I center my text logo vertically since the y axis parameters only seem to work for an image?

Thank you!
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Sheri

Try adding the following to the Custom CSS field of your templates parameters...


h1.logo-text a {
top: 26px;
}


By default your logo is set to 26px from your top menu so decreasing or increaing this number in the above CSS will move your logo text up or down respectively

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

I'm afraid that this code didn't really work for me. I am trying to make a long business title work properly in responsive mode.

The client requires that the entire business title be on one line for regular screens. She would prefer the title to word wrap and shrink for mobile devices to either 2 lines (preferred) or 3.

2 lines would be:
Law Offices of
Lisa M. Bluestein, LLC

3 lines would be:
Law Offices
of Lisa M.
Bluestein, LLC

If we can do this with the horizontal lines on either side of the logo like on the template, that would be even better but I don't think adjusting an image this way would be possible. I await your expert advice.

Many thanks!
Sheri

P.S. Upon receipt of your answer, I can send you log in info.
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Sheri

Considering the limited space in the logo area of this template your only real option is to reduce the font size of the font logo as there simply is not the available space to wrap the logo to a second line. Placing the above CSS within a media query as described will mean this font change should only effect your logo on smaller screen devices and not your desktop.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

I understand the constraints and will try to make this work using your suggestion. However, when I added the CSS code to the template Custom CSS field, I don't see that the logo changes font on mobile devices. (I was too quick in saying that the code worked earlier in this thread.) Perhaps I have placed the code in the wrong place? Would you be willing to take a look? I pasted all of the code below in the Custom CSS section of the template instance I am using as the default.

Thank you.

-Sheri
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Sheri

Please paste the Custom CSS you are using.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
/* #Tablet (Portrait)
====================== */
@media only screen and (min-width: 768px) and (max-width: 959px) {
h1.logo-text a {font-size: 30px;}
}

/* #Mobile (Landscape)
====================== */
@media only screen and ( min-width: 300px) and max-width: 360px ) {
h1.logo-text a {font-size: 14px;}
}

/* #Mobile (Portrait)
====================== */
@media only screen and ( min-width: 300px) and max-width: 360px ) {
h1.logo-text a {font-size: 12px;}
}

h1.logo-text a {
top: 40px;
}
  1. more than a month ago
  2. Commercial Templates
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
Hi

Your CSS appears to be correct. May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Sheri

I have amended your CSS slightly and it now appears to be working correctly.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 11
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

Thanks for that. The font size seems to be correct on smart phones....BUT the logo is completely pushed to the right. Is there any way that I can now center the logo in responsive mode?

Regards,
Sheri
  1. more than a month ago
  2. Commercial Templates
  3. # 12
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Sheri

I have further amended your CSS, fixing this issue.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 13
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok