Change alignement on Inset Module heading

More
12 years 1 month ago #29652 by plpproductions
Hi Ivan,

I went to Menu>>Top Menu (the menu I'm using) >> Homepage >> Parameters >> Page Setting Suffix >> and entered "home".

Then entered the CSS you provided - but it didn't change anything on the homepage.

Contact page looks great, though!

Do I need to add something about "home" in the CSS or elsewhere? Please advise.

Thanks!

Please Log in to join the conversation.

More
12 years 1 month ago #29657 by ivan.milic
Its " home" <- first char is blank

Please Log in to join the conversation.

More
12 years 1 month ago #29658 by plpproductions
That works - but now all H1 tags are centering. I'd like just the one on the homepage and not the other pages.

Thanks, Ivan!

Please Log in to join the conversation.

More
12 years 1 month ago #29659 by ivan.milic
change:

.componentheading h1{
text-align: center;
}

to:

.home .componentheading h1{
text-align: center;
}

Please Log in to join the conversation.

More
12 years 1 month ago #29661 by plpproductions
For some reason, that didn't work. I tried adding a comma after .home, but that took it back to centering all H1 headings. Must have done something wrong...or not have done something right :dry:

Please Log in to join the conversation.

More
12 years 1 month ago #29671 by ivan.milic
Instead of using page suffix, try this:

In index.php of template find opening of body tag: <body

and add code like this(bold one):

<body class="<?php $menu = JSite::getMenu(); if ($menu->getActive() == $menu->getDefault()) { echo " home "; } ?>"

Please Log in to join the conversation.

Time to create page: 0.103 seconds
Powered by Kunena Forum