Is wp3.8 / twenty fourteen’s Sticky Nav & Responsive – core or theme based
The sidebar navigation is entirely theme based. The admin toolbar at the top is native to WP 3.8.
The sidebar navigation is entirely theme based. The admin toolbar at the top is native to WP 3.8.
You would have to get all the posts but the current one with a wp_query then loop through them and output their thumbnail. Something like this (Should work but untested) <?php //Set the current page id $current_id = get_the_id(); // Get all posts of a post type but the current post $the_query = new WP_Query( … Read more
Seems to be good old-fashioned css-problem: The top level li is 93 px high (by the link in it: 38px padding top, 16px line-height, 39px padding-bottom), the sub-navigation starts at top: 96px. Now for the backgrounds of your problem: The subnavigation is shown while your mouse hovers over the li (or something within the li). … Read more
next_post function is deprecated. You should try this instead: next_post_link and previous_post_link The basic way to use it is like so: This will link to the next post or prev post. <?php next_post_link( ‘%link’, ‘%title’ ); previous_post_link( ‘%link’, ‘%title’ ); ?> If you would like to link to the next post in the same category, … Read more
You could use the nav_menu_item_id filter like this: add_filter( ‘nav_menu_item_id’, function( $menu_id, $item, $args, $depth ) { if( ‘menu-item-27’ === $menu_id ) $menu_id = ‘nava’; return $menu_id; }, 10, 4 ); but I this is “unstable” regarding the menu ID, if you delete and re-insert menu items. You might also want to target a specific … Read more
Just work including that code in the functions file: function mod_query($query){ $entradas = get_category_by_slug(‘anuncios’); if ((!is_admin() && $query->is_main_query())){ $query->set(‘posts_per_page’,”2″); $query->set(‘cat’,’8′); } } add_action(‘pre_get_posts’,’mod_query’); The file to show the content of the category is a normal file (without extra configuration) Thanks to @Pieter Groosen for the orientation.
If you wanted to have a greyed out link, you could swap out posts_nav_link for something like this: <?php if ( ! get_previous_posts_link() ) : ?> <div class=”inactive post-link post-link__previous”>« Previous Posts</div> <?php else : ?> <div class=”post-link post-link__previous”><?php previous_posts_link(); ?></span> <?php endif; ?> And just set the inactive class in your CSS to be … Read more
Why not use a navwalker to create your bootstrap menu? Try https://github.com/wp-bootstrap/wp-bootstrap-navwalker You can get the fixed-top to add to the menu <nav class=”navbar navbar-default navbar-fixed-top” temscope=”itemscope” itemtype=”http://schema.org/SiteNavigationElement” role=”navigation”> <div class=”container”> <div class=”navbar-header”> <button type=”button” class=”navbar-toggle” data-toggle=”collapse” data-target=”#navbar”> <span class=”sr-only”>Toggle navigation</span> <span class=”icon-bar”></span> <span class=”icon-bar”></span> <span class=”icon-bar”></span> </button> </div> <div class=”collapse navbar-collapse” id=”navbar”> <ul class=”nav … Read more
You are looking at the wrong element, it is #site-navigation that has the box shadow (and a white background, which also is a problem), so the following worked for me #site-navigation { box-shadow: none; background-color: #fdd4ce; } A vendor prefix should not be necessary.
When you use include parameter of wp_list_pages you are basically telling it to only include these certain Pages in the list. you should use exclude_tree instead, when using this parameter it will exclude a parent and all of that parent’s child Pages. so something like: $top_pages_to_exclude=”1″; // the top page to be excluded ID, you … Read more