css class for menu-item

GK User
Wed Oct 07, 2015 11:06 am
Hey Gavick-Team!
I created a menu-item as category-blog as you can see here:
http://www.tischtennis.msvbautzen04.de/galerie/bilder-von-2015
I don't use an intro-image in the articles of this category, so I don't need the margin-left. Can I use here the full content by editing the css? I found the class item-block (margin-left: 170px), but I need this margin for my frontpage. So I have to different the item-block from the other, but how to?
Thank you in advance!

Best regards,
Holger.
User avatar
Senior Boarder

GK User
Thu Oct 08, 2015 5:09 pm
Can anybody move this topic to the game theme please?
User avatar
Senior Boarder

teitbite
Fri Oct 09, 2015 5:31 pm
Hi

Best way to do this would be by using page class suffix. Here is an example: https://www.gavick.com/documentation/un ... omla-pages

Than lets say this suffix will be called "reduce-margin" so You will have to add this code to override.css to force different value:

Code: Select all
.reduce-margin .itemBlock {
    margin: 0;
}
User avatar
Moderator

GK User
Mon Oct 12, 2015 2:43 pm
Thank you, it works!
I searched for the place to define the page class suffix...
User avatar
Senior Boarder

teitbite
Wed Oct 14, 2015 11:36 am
Hi

An example is here: https://www.gavick.com/documentation/jo ... omla-pages

But simply go to template settings. Select section "Features" and than option called "Suffixes for pages". You need to know an ID of a page You are adding a suffix to.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.