var page = $('body'),
phone = page.find( $('.tel-phone') ),
dropdown = page.find( $('ul#menu-topbar')),
- nav_links = page.find( $(dropdown).children('li').children('a') );
+ nav_links = page.find( $(dropdown).children('li').children('a') ),
+ products_sidebar = page.find($('#main-sidebar'));
+ products_sidebar.find('ul li').each(function(){
+ var link = $(this).children('a');
+ link.prop('href', '#');
+ link.on('click', function(e){
+ e.preventDefault();
+ });
+ link.css('cursor', 'default');
+ });
+
+ console.log(products_sidebar);
+
nav_links.each(function(){
$(this).on('click', function(e){
var page = $('body'),
phone = page.find( $('.tel-phone') ),
dropdown = page.find( $('ul#menu-topbar')),
- nav_links = page.find( $(dropdown).children('li').children('a') );
+ nav_links = page.find( $(dropdown).children('li').children('a') ),
+ products_sidebar = page.find($('#main-sidebar'));
+ products_sidebar.find('ul li').each(function(){
+ var link = $(this).children('a');
+ link.prop('href', '#');
+ link.on('click', function(e){
+ e.preventDefault();
+ });
+ link.css('cursor', 'default');
+ });
+
+ console.log(products_sidebar);
+
nav_links.each(function(){
$(this).on('click', function(e){
if ( in_array( 'label', $classes ) ) {
$item_html = preg_replace( '/<a[^>]*>(.*)<\/a>/iU', '<label>$1</label>', $item_html );
}
+ if ( $depth === 0 && $object->has_children ) {
+ $item_html = preg_replace( '/<a[^>]*>(.*)<\/a>/iU', '<span style="color:white;">$1</span>', $item_html );
+ }
$output .= $item_html;
}