Show Site name in commerce kickstart 2.0
Hi,
I was trying to show the site name in the new omega commerce theme
but it's never shown.
I went to
home > administration > site settings > visual & layout > appearance > settings > commerce Kickstart Theme
Then I scrolled down to the toggle display section and I checked the "site name" checkbox. After that I click on "save configuration" but the site name still is hidden
I appreciate any help.
Thanks.
Comments
one solution
I also was looking to display the site name, and found this post. I then found the cause: (it was apparently intentional, so it was not a problem)
The class element-invisible was applied to the site title. Some css fixed that.
I found this code:
My Site Name
and this css: (found in modules/system/system.base.css)
.element-invisible {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
}
I added this css (it works in global.css of the omega kickstart theme)
.site-name-slogan h1.element-invisible {
clip: auto;
}
and now the site name was visible.
another solution
the question is why was that that class applied to the site title. i changed the region--branding.tpl.php of that theme.
to @Line 15
<?php
$class = $site_name_hidden ? '' : '';
?>
So this class wont be applied and it works like it should.
But why dont effect the settings in Appearance for that theme the display settings of the site-name^^
Omega Kickstart has a "special" theme setting that hides name
You don't need to change PHP in your .tpl files or apply any CSS to show site name.
element-invisible
is applied to the site name in Omega Kickstart only when "Site Name" is checked under Choose from the elements below to hide them via CSS section of the Toggle Advanced Elements section of the Omega Kickstart configuration, as finally pointed out in https://drupal.org/comment/8389051#comment-8389051