How to remove anchor of current menu item in navbar?

Michelle is right. You could create your own walker and override the default method that creates the anchor. Or you can hack it by doing this: jQuery(document).ready(function($) { var current = $(“#nav_menu_id”).find(“.current-menu-item”); $(current).html( $(current).find(“a”).html() ); }); Where “nav_menu_id” is the id of your menu you wish to accomplish this on. Personally, I would invest the … Read more

Category navigation template

WordPress Pagination You can use previous_posts_link and next_posts_link. <nav id=”post-pagination” class=”navigation” role=”navigation”> <div class=”nav-previous”> <?php next_posts_link( ‘← Older’, $the_query->max_num_pages ); ?> </div> <div class=”nav-next”> <?php previous_posts_link( ‘Newer →’ ); ?> </div> </nav> It’s not important but Next and Previous have the opposite classes (.nav-previous on next_posts_link() & .nav-next on previous_posts_link()) because: Because post queries are … Read more

Navigation template

I found the solution. I had to add this in functions.php : add_filter(‘navigation_markup_template’, ‘my_navigation_template’, 10, 2 ); function my_navigation_template( $template, $class ){ return ‘<footer> <nav id=”nav-below” class=”navigation” role=”navigation”>%3$s</nav> </footer>’; } Source : http://wp-kama.ru/function/_navigation_markup

Current Post Parent Category & Child Category Links

Display the categories (or terms from other taxonomies) assigned to a post ordered by parent-child category relationship. Similar to the function get_the_category_list() which orders the categories by name. This example must be used inside the loop. <?php $taxonomy = ‘category’; // Get the term IDs assigned to post. $post_terms = wp_get_object_terms( $post->ID, $taxonomy, array( ‘fields’ … Read more

Superfish Dropdown menu broken after WP 4.9.5 upgrade

This is the wrong place as this is not a wordpress-related question (well, or the answer isn’t wordpress related), but here is what you do: Get all your files through HTTPS (especially extern files) or just download the extern files and host them on your webspace/server/cloudd. This isn’t only more efficient and resistant to unexpected … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)