WordPress navigation wont appear with wp_head
You have to call both wp_head and get_header. In your header.php, place a call to wp_head(); inside the <head> tag, then use get_header() inside your templates.
You have to call both wp_head and get_header. In your header.php, place a call to wp_head(); inside the <head> tag, then use get_header() inside your templates.
WordPress is loading jQuery as default. You basicly telling WordPress to load your jquery-js after the jquery script from WordPress. The Nav_Walker class you are using is related to Bootstrap Version 3. Which Version of Bootstrap are you loading? Without knowing your code, I think I’m guessing that the Boostrap version does not cope with … Read more
Well this approach is not remotely close to the proper way to use WordPress, so there is just not going to be a correct way to do this. However the problem is that you’re linking directly to a file in the theme. This is incorrect. To create a page in WordPress you need to create … Read more
Search AJAX Filters – Multiple Query Loops Into One Loop (Optimization)
Check out the WordPress Bootstrap CSS plugin. It seems to contain “handy shortcodes” to insert all sorts of elements. Also check out Obenland’s The Bootstrap WordPress theme that was released a week ago.
I am admittedly out on a limb here because to test this I’d have to install your code and create some menus to test it with, but… Look in the Bootstrap_Walker_Nav_Menu code. Find this: $item_output .= ‘<a’. $attributes .’>’; $item_output .= $args->link_before . apply_filters( ‘the_title’, $item->title, $item->ID ) . $args->link_after; $item_output .= ($args->has_children) ? ‘ … Read more
You are loading jQuery 1.8.3 and jQuery 1.9.1. 1.8.3 loads from wp-includes. 1.9.1 loads from Google. Install JSView on FireFox and right click the page. You will see them. There are two Javascript files, both named jquery.js. You need to work out what is loading those two scripts and make sure that only one jQuery … Read more
Ok so I found out what was wrong : it seems that WordPress adds empty p tags into your code. So I had one of those in my HTML and it was messing up the layout. To tell WordPress to stop doing that, you have to comment this line add_filter( ‘the_content’, ‘wpautop’ ); which is … Read more
I would be careful removing WordPress classes. Some plugins may depend on those classes. You should be able to pretty easily add your own classes though, as explained in the WordPress Codex. You’d use the nav_menu_css_class filter to alter or add those classes. See the Codex for an example of doing so. I don’t know … Read more
The first thing to say would be, you can’t say you haven’t been warned – see codex page paginate_comments_links(), section »Defaults«: These arguments are mostly to make the call of paginate_links() work, so be careful if you change them. It’s true, paginate_comments_links() is pretty much just a already customized version for comments of paginate_links(), with … Read more