× Support for Joomla 2.5 templates is discontinued. This forum category is read-only.

Center the logo image

More
4 years 8 months ago #6751 by Paine
Paine created the topic: Center the logo image
Hi, I'm wondering if you could help me solve this ; I'd like to center the logo image, ie not align left; I've tried removing logo-bar 2 module position from xml file and template's php file so that I have only one module position and centering the logo within that, but couldn't make that work. Is there a work-around to achieve this. Also I would like that the result when viewing on phones / mobiles, the logo is also centred, but fit width, I'm assuming it would reduce in size but still fill the screen. I cannot provide you with a URL for my site as it's currently on localhost MAMP enviro. Attached is a pic of what I have, and also a pic of what I'd like to achieve. Thanks.
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #6752 by marcin
marcin replied the topic: Center the logo image
Hello,

The simpliest way is to center the whole row including logo, search and cart.
To do that, you need to add the following styles to custom.css file (templates/jm-modern-store/css/):
#jm-logo-sitedesc,
#jm-logo-bar1,
#jm-logo-bar2 {
	width: 100% !important;
	text-align: center;
}

#jm-logo-sitedesc {
	padding-bottom: 0 !important;
}

#jm-logo-sitedesc,
#jm-logo-bar1 .jm-module-raw,
#jm-logo-bar2 .jm-module-raw {
	margin-bottom: 30px !important;
}

The result is:



Regards,
Marcin
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #6764 by Paine
Paine replied the topic: Center the logo image
Thankyou marcin, great result.

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #6765 by marcin
marcin replied the topic: Center the logo image
Glad I could help :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.273 seconds

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2019 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.