Main menu donation button

GK User
Wed Jan 07, 2015 11:44 pm
Hello

How can I add to the main menu a " DONATION" button?
I would like to have a btn pop up like the log in mod I using the Joom Donation mod, can I?
User avatar
Junior Boarder

GK User
Thu Jan 08, 2015 7:16 am
Without additional work which is beyond our technical support - no :(. You would need to use same javascript to initialise popup and create the popup (html / css) itself. Sample scripts can be found in gk.scripts.js (//login popup section) and /templates/gk_university/layouts/blocks/tools/login.php
User avatar
Moderator

GK User
Thu Jan 08, 2015 2:50 pm
What about just a button in the main menu?
User avatar
Junior Boarder

GK User
Thu Jan 08, 2015 5:27 pm
You can add normal menu item (for example as last one) and add 'gkLogin' class to it to create look simillar to "log in" button.
User avatar
Moderator

GK User
Tue Mar 10, 2015 7:01 pm
If I create a menu with the Additional class "gkLogin" when I click the login pop's
How can I just have the style for the login menu in another menu item?

Cyberek wrote:You can add normal menu item (for example as last one) and add 'gkLogin' class to it to create look simillar to "log in" button.
User avatar
Junior Boarder

GK User
Thu Mar 12, 2015 5:47 pm
Oh, you need to create a custom class then:
Code: Select all
#gkHeaderNav li.gkCustom {
  border: 1px solid rgba(250, 114, 82, 0.5);
  height: 30px;
  line-height: 30px;
  margin-left: 12px;
  -webkit-transition: border .3s ease-out;
  -moz-transition: border .3s ease-out;
  -ms-transition: border .3s ease-out;
  -o-transition: border .3s ease-out;
  transition: border .3s ease-out;
}
#gkHeaderNav li.gkCustom:hover {
  border-color: #fa7252;
  color: #fff;
}
#gkHeaderNav li.gkCustom a {
  height: 30px;
  line-height: 30px;
  padding: 0 12px!important;
}
#gkHeaderNav li.gkCustom:hover a {
  color: #fff;
}

and use gkCustom class
User avatar
Moderator

GK User
Thu Mar 12, 2015 9:29 pm
I don't understand the code
I applied to the custom CSS But nothing happened
User avatar
Junior Boarder

GK User
Mon Mar 16, 2015 8:43 am
Please edit: /templates/gk_university/css/override.css and add at its end:
Code: Select all
#gkHeaderNav li.gkCustom {
  border: 1px solid rgba(250, 114, 82, 0.5);
  height: 30px;
  line-height: 30px;
  margin-left: 12px;
  -webkit-transition: border .3s ease-out;
  -moz-transition: border .3s ease-out;
  -ms-transition: border .3s ease-out;
  -o-transition: border .3s ease-out;
  transition: border .3s ease-out;
}
#gkHeaderNav li.gkCustom:hover {
  border-color: #fa7252;
  color: #fff;
}
#gkHeaderNav li.gkCustom a {
  height: 30px;
  line-height: 30px;
  padding: 0 12px!important;
}
#gkHeaderNav li.gkCustom:hover a {
  color: #fff;
}

Remember to enable "CSS override" in template settings - advanced section.

Now create a menu item with gkCustom added via gavick additional options tab.
User avatar
Moderator


cron