- Posts: 11
- Thank you received: 0
Change alignement on Inset Module heading
-
plpproductions
Inactive member -
Topic Author
- New Member
-
Less
More
12 years 1 month ago #29652
by plpproductions
Replied by plpproductions on topic Change alignement on Inset Module heading
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!
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.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 1 month ago #29657
by ivan.milic
Replied by ivan.milic on topic Change alignement on Inset Module heading
Its " home" <- first char is blank
Please Log in to join the conversation.
-
plpproductions
Inactive member -
Topic Author
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
12 years 1 month ago #29658
by plpproductions
Replied by plpproductions on topic Change alignement on Inset Module heading
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!
Thanks, Ivan!
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 1 month ago #29659
by ivan.milic
Replied by ivan.milic on topic Change alignement on Inset Module heading
change:
.componentheading h1{
text-align: center;
}
to:
.home .componentheading h1{
text-align: center;
}
.componentheading h1{
text-align: center;
}
to:
.home .componentheading h1{
text-align: center;
}
Please Log in to join the conversation.
-
plpproductions
Inactive member -
Topic Author
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
12 years 1 month ago #29661
by plpproductions
Replied by plpproductions on topic Change alignement on Inset Module heading
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.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 1 month ago #29671
by ivan.milic
Replied by ivan.milic on topic Change alignement on Inset Module heading
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 "; } ?>"
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