Jump to content


Photo
Navable

Basic Navable Setup?



Best Answer adesouza , 17 April 2013 - 07:17 PM

dragged Navable onto the header in  drag and drop,

 

Setup wordpress menus, assign to navable in Appearence->menus

 

To get a fixed menu i added a class to the PHP and some corresponding LESS in the LESS file:

 

on line 54 of section.php I added the 'ba-fixed' class to container div

 

printf('<div class="navable_wrap fix"><div class="ba-navable-container ba-fixed"> 

 

then in the less file i added:

 

 

.ba-fixed{
position: fixed;
top: 25px;
left: 0;
width: 100%;
}

 

This works fine now... only thing is... menu is somewhat hidden behind admin bar when logged in...no a big deal but would be nice to tweak.

 

is there some way maybe to assign a diff top margin if a user is logged in?

 

 

<?php if ( !is_user_logged_in() ):?>
top: -5px;
<?php else: ?>
top: 25px;
<?php endif; ?>
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 adesouza

adesouza

    Advanced Member

  • Members
  • 51 posts
  • LocationSan Francisco
  • Country: Country Flag

Posted 17 April 2013 - 07:09 PM

Got it sorted.

 

For other folks...Answer below



#2 adesouza

adesouza

    Advanced Member

  • Members
  • 51 posts
  • LocationSan Francisco
  • Country: Country Flag

Posted 17 April 2013 - 07:17 PM   Best Answer

dragged Navable onto the header in  drag and drop,

 

Setup wordpress menus, assign to navable in Appearence->menus

 

To get a fixed menu i added a class to the PHP and some corresponding LESS in the LESS file:

 

on line 54 of section.php I added the 'ba-fixed' class to container div

 

printf('<div class="navable_wrap fix"><div class="ba-navable-container ba-fixed"> 

 

then in the less file i added:

 

 

.ba-fixed{
position: fixed;
top: 25px;
left: 0;
width: 100%;
}

 

This works fine now... only thing is... menu is somewhat hidden behind admin bar when logged in...no a big deal but would be nice to tweak.

 

is there some way maybe to assign a diff top margin if a user is logged in?

 

 

<?php if ( !is_user_logged_in() ):?>
top: -5px;
<?php else: ?>
top: 25px;
<?php endif; ?>


#3 adesouza

adesouza

    Advanced Member

  • Members
  • 51 posts
  • LocationSan Francisco
  • Country: Country Flag

Posted 17 April 2013 - 07:18 PM

// and finally, is it possible for a parent item to be clickable/linkable?

 

Yup... it's default behavior







Also tagged with one or more of these keywords: Navable