ErikMitjans
Forum Replies Created
-
Hi!
I traced the problem back to a CSS line, so is fixed!!
For reference:.soliloquy-slides,
.soliloquy-item{
margin: 0 !important;
padding: 0 !important;
}Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Plugin doesn’t work after WordPress UpdateHi Dima!
Many thanks for the checking. The site has been working for ages and I got no report of problems with the SSL.
Mind telling me which Browser/OS are you using?
That’s a problem I should totally address right away, even more than the filters one : )Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Plugin doesn’t work after WordPress UpdateHi Dima!
I tested with FF, Explorer and Chrome and it works fine?
Where did you see this?Cheers!
I chose Template ajax load fix and it got fixed!
Thanks!!Forum: Fixing WordPress
In reply to: Creating a dropdown in menu that lists authorsHi guys!
I got it working by adding the !is_admin() and pasting the code into nav.php and not functions.php. Also, I’m using Roots.io starter theme, thats why the extra classes on link and list elements.
Hope it saves somebody’s ass at some point! : )
function add_last_nav_item($items, $args) { if (!is_admin() && $args->theme_location == 'primary_navigation') { $items .= '<li><a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="#">Autoren <b class="caret"></b></a><ul class="dropdown-menu"><li>' . wp_list_authors('show_fullname=1&optioncount=0&exclude_admin=0&orderby=post_count&order=DESC&number=8&echo=0') . '</li></ul></li>'; } return $items; } add_filter( 'wp_nav_menu_items', 'add_last_nav_item', 10, 2 );
Forum: Fixing WordPress
In reply to: Creating a dropdown in menu that lists authorsOf course, you put an extra li, because “Authors” has to be a new list element in the menu, at the same time containing the ul class submenu and the li elements of the different authors (to make the dropdown). All this makes total sense to me. Is on the pure php part that I get lost… And so far no luck
Forum: Fixing WordPress
In reply to: Creating a dropdown in menu that lists authorsHow to find the theme location? Primary gives no result.
I’ve tried witharray('menu' => 'Project Nav' ));
also, and no result.
Thanks for the help!!
E.Forum: Fixing WordPress
In reply to: Creating a dropdown in menu that lists authorsHi guys!
I’ve been trying to achieve exactly what RaiderKat needs, and so far, no luck!
I’ve added this code to my functions.php, but no luck.
add_filter( 'wp_nav_menu_items', 'wps_nav_authors', 10, 2 ); function wps_nav_authors ( $items, $args ) { if ( $args->theme_location == 'primary') { $items .= '<li><a href="#">Authors</a><ul class="sub-menu"><li>' . wp_list_authors('show_fullname=1&optioncount=0&exclude_admin=0&orderby=post_count&order=DESC&number=8&echo=0') . '</li></ul></li>'; } return $items; }
Was this code customized to work only with your example, or is it supposed to work everywhere?
Thanks!!
Eric