Welcome To Snipplr
Everyone's Recent Snippets Tagged navigation
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This snippet shows you how to get previous and next post in category URL.
0
987
posted 10 years ago by fedek6
Improved Layered Navigation by Amasty is a premium 5-year-old Magento extension, to which you can entrust your navigation. It includes 7 mods:
Seo layered navigation
Shop by brands
Ajax Layered Navigation
Layered navigation filt...
0
962
posted 10 years ago by Amasty
* A standard multi-level list example for copy and paste in any site. Uses anchors as the default links, to be filled in later.
* Built to work with Bootstrap's default CSS, but also works fine with other CSS
* Pull the "plain" class from the [sta...
0
928
posted 11 years ago by tymartist
Create navigation links without the need of a plugin, using paginate_links function of wordpress core.
0
1977
posted 11 years ago by rudwolf
Manually print out a category-navigation in a magento frontend template. within "stristr" you can enter an array of category-ids that should be hidden from display.
0
955
posted 12 years ago by luxmedia
To specify background and text colors for the secondary nav in the active stack.
0
733
posted 12 years ago by sheilahoff
This will center your navigation in the bar (not the text in each button). Adjust the width to your navbar width
0
739
posted 12 years ago by sheilahoff
Assumes that you have got a #mainnav around your menu. Works nicely with wp_nav_menu inside.
0
777
posted 13 years ago by telltec
This is PURE CSS. Tested in IE7+, Chrome, Firefox, Safari and Opera
0
781
posted 13 years ago by officiallyWise
This is a little function that dynamically resizes the navigation, taking into account the size of the item width as well
0
723
posted 13 years ago by buzzswarbrick
This was for a customer.
Basically it does this:
If a page has no children, it shows ... nothing,
if a page has a parent, it shows all other children of this parent (siblings) and the current page
if a page has a parent AND children (3rd level)...
0
819
posted 13 years ago by zartgesotten
JavaScript
Set links with href to current page as active (or if in subnav set their parent to active)
look through the list items in your main nav and based on href of anchor tags this will set the top level link to have an 'active' class.
0
1141
posted 13 years ago by iammikecohen
usefull navigation stuff works in magento 1.5.0.1
http://www.webdesign-blog.ch/?p=17
http://www.pauldonnellydesigns.com/blog/get-parent-category-name-in-magento/
0
935
posted 13 years ago by nico65
If you have Zend_Navigation in your application, you will use navigation.xml. This code set the page title ($this->view->headTitle()) with the current page title in navigation.xml.
$navigation->current() doesn't work in my opinion.
0
1000
posted 13 years ago by postNuKe
Fügen Sie diesen Codeabschnitt auf allen Seiten die mit der Breadcrumb-Navigation ausgestattet werden sollen, an der gewünschten Position ein.<br><br>
Das Script arbeitet recht einfach:<br><br>
<li>per 'explode("/","$_SERVER[PHP_SELF]")' wird...
0
1153
posted 13 years ago by kopfaction
Copy /modules/mod_menu/tmpl/default.php to /templates/MYTEMPLATE/html/mod_menu/default.php
0
1107
posted 13 years ago by nico65