Menu

April 2014 WordPress Theme
GK User
Fri Jun 06, 2014 5:56 pm
Hello,

Is it possible that the menu appeared earlier, e.g. in middle of banner "John S"? (Now appear in "Checkout my hot works").
User avatar
Junior Boarder

teitbite
Sat Jun 07, 2014 8:21 am
Hi

Please show me Your site.
User avatar
Moderator

teitbite
Mon Jun 09, 2014 1:28 pm
Hi

I'm afraid I still do not understand the request, even after seeing Your site. Do You want to hide the logo when site is scrolled ? Can You please explain ?
User avatar
Moderator

GK User
Mon Jun 09, 2014 2:06 pm
Hi,

So i will try explain:

Yes, i want hide logo, but i tried do it with diffrent solution:

When u open a website, the menu is on the middle of first "screen". When i scroll down, the menu change class from nothing to "active". And menu go up(like in ur oryginal template-in ur template menu just appear). But "active" class start work in the next widget(title="Zakres Badan"). I want change that menu go up after "few scrolls" on the first "screen", not when i scroll down to "Zakres Badan".
User avatar
Junior Boarder

teitbite
Tue Jun 10, 2014 8:28 pm
Hi

I think You have already tried to do this by Yourself, because the 'active' is visible on page load. That's why it was hard for me to understand.

I would just add a new script to /layout/blocks/head.php, something like:

Code: Select all
var $document = $(document),
    $element = $('#gk-menu-wrap'),
    className = 'active';

$document.scroll(function() {
  if ($document.scrollTop() >= 50) {
    $element.addClass(className);
  } else {
    $element.removeClass(className);
  }
});
User avatar
Moderator


cron