GK Menu Extended Parameters - 3 collumn

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Nov 17, 2014 12:45 pm
Reply with quote
Report this post
Hello, I seem to have problem creating a 3 collumn menu.

All I can get is a 2 collum with the second collum have 2 groups stacked on each other.

I followed this tutorial:
https://www.gavick.com/documentation/un ... s-in-menu/

Also, we can't seem to be able to use the [icon-heart] in the menu item titles, nor the ICONS - FONT AWESOME class name. We would like to use those to populate the menu items with visuals.

Any clues?
http://miggg.quebecguitare.com/

(teitbite has full access to this site).
User avatar
Platinum Boarder

teitbite
Wed Nov 19, 2014 3:11 pm
Reply with quote
Report this post
Hi

Add this to override.css for the menu:

Code: Select all
#gkMainMenu .gkMenu > ul li div.childcontent {
    width: auto !important;
}


for icons a syntax as [icon-heart] is not implemented for menu, but using extended parameters for font awsome classes should work. May need a small adjustment, but please try it first like "fa fa-facebook" in extended parameters.
User avatar
Moderator

GK User
Wed Nov 19, 2014 4:30 pm
Reply with quote
Report this post
The override worked. Thank you


For the font-awesome, the element appears but the class is not recongnized.
I've added a simple code as "fa-thumb-tack" in the menu params (Gavick Pro) / additionnal class.

Snippet in attachment.

Regards
User avatar
Platinum Boarder

teitbite
Thu Nov 20, 2014 2:22 pm
Reply with quote
Report this post
Hi

I think You need to use 2 suffixes "fa fa-facebook". The "fa" alone tells to use FontAwsome.

To remove icons from list elements add this to override.css

Code: Select all
#gkMainMenu .gkMenu > ul li:before {
display: none;
}
User avatar
Moderator

GK User
Thu Nov 20, 2014 3:02 pm
Reply with quote
Report this post
The code did the job removing the extra icon.

The fontAwesome still won't work. I tried "fa fa-facebook" with and without the first "fa". Quote, unquote. No luck.

Still have just a square besides the menu element.


regards
User avatar
Platinum Boarder

teitbite
Sun Nov 23, 2014 10:57 am
Reply with quote
Report this post
Hi

Suffixes are correct now. Just the font is overwritten in css to Arial. Please add this to override.css:

Code: Select all
.fa:before {
    font-family: FontAwesome !important;
    margin-right: 5px;
}
User avatar
Moderator

GK User
Mon Nov 24, 2014 7:47 am
Reply with quote
Report this post
It works. The only thing is that the icon ratio is bigger and not as clean as they are in their original size (more aliasing).

See reference and screenshot.
http://demo.gavick.com/joomla25/john/in ... typography


Any clues?

Thank you
User avatar
Platinum Boarder

GK User
Mon Nov 24, 2014 8:16 am
Reply with quote
Report this post
I also noticed that it will alter the font from a top menu item (see contact).
User avatar
Platinum Boarder

teitbite
Wed Nov 26, 2014 6:52 pm
Reply with quote
Report this post
Hi

Looks like You have figured it out with this code:

Code: Select all
.fa:before {
    font-family: FontAwesome !important;
    margin-right: 5px;
}


You can add this to be more accurate and make more changes.

Code: Select all
#gkMainMenu a.fa:before {
    font-family: FontAwesome !important;
    font-size: 25px;
    margin-right: 9px;
}
User avatar
Moderator

GK User
Thu Nov 27, 2014 9:33 am
Reply with quote
Report this post
Hi Teitbite, I tried the code.

What I notice is that when a Font Awesome "additionnal class" is added to a menu item, the font of the menu item changes as well. In other words, not only an icon for "Font Awesome" is added before the menu item, but it also changes the font from "Ubuntu Regular" to "Font Awesome".

I tried changing the code doing the following, but the Font Awesome Icon disapear leaving and unrecongnized symbol (empty square), and the font is unaltered; stays "Font Awesome".

Code: Select all
/* For font-awesome in the main menu */
#gkMainMenu a.fa:before {
    font-family: Ubuntu !important;
    font-size: 14px;
    margin-right: 9px;
}


Any Clues? I would like to keep the original Ubuntu Font that comes with the John Template, using the font Awesome Icons.

Thank you
Regards
User avatar
Platinum Boarder

teitbite
Fri Nov 28, 2014 8:38 pm
Reply with quote
Report this post
Hi

Your code was close, but mistaken. Try this one:

Code: Select all
#gkMainMenu a.fa:before {
    font-family: FontAwesome !important;
}

#gkMainMenu a.fa {
    font-family: Ubuntu !important;
}
User avatar
Moderator

GK User
Sat Nov 29, 2014 5:06 am
Reply with quote
Report this post
Thank you.

It worked but I had to reverse the order of command:

Code: Select all
/* For font-awesome in the main menu */
#gkMainMenu a.fa {
    font-family: Ubuntu !important;
    font-size: 14px;
    margin-right: 9px;
}

#gkMainMenu a.fa:before {
    font-family: FontAwesome !important;
    font-size: 14px;
    margin-right: 9px;
}


Regards
User avatar
Platinum Boarder

GK User
Sat Nov 29, 2014 7:27 am
Reply with quote
Report this post
Now the submenu items are all affected with the Ubuntu font.

I would like to keep the original Font for the tempate with is Arial. I tried the following override but it doesn't have any effect.

I think it's my variable (all submenu items):

Code: Select all
/* For font-awesome in the main menu */

#gkMainMenu a.fa {
    font-family: Ubuntu !important;
    font-size: 14px;
    margin-right: 9px;
}

#gkMainMenu a.fa:before {
    font-family: FontAwesome !important;
    font-size: 13px;
    margin-right: 5px;
}

/* Exclude submenu items */
#gkMainMenu .gkMenu > ul li div.childcontent {
    font-family: Arial, Helvetica, sans-serif;
}

User avatar
Platinum Boarder

teitbite
Sun Nov 30, 2014 10:31 am
Reply with quote
Report this post
Hi

Code: Select all
#gkMainMenu .gkMenu > ul li div.childcontent a.fa {
    font-family: Arial, Helvetica, sans-serif !important;
}

#gkMainMenu .gkMenu > ul li div.childcontent a.fa:before {
    font-family: FontAwesome !important;
}
User avatar
Moderator


cron