Add Another Navigation Bar
Place this code in the functions.php file to add another navigation area to your website 1 2 3 4 5 6 7 8 9 add_action( 'init', 'mk_nav_menu' ); function mk_nav_menu() { register_nav_menus( array(...
View ArticleAdd HTML Elements Using Hooks
You can use hooks to add html elements such as wrapping divs to your templates. Here is an example that I used in a Woo theme. You have to adapt it according to your theme. 1 2 3 4 5 … Continue reading →
View ArticleRemove Unwanted Profile Fields
Below is the code you would use to hide unwanted Profile fields. 1 2 3 4 5 6 7 8 add_filter('user_contactmethods','hide_profile_fields',10,1); function hide_profile_fields( $contactmethods ) {...
View ArticleIs_home: Conditional for Blog Page
It is counter-intuitive, but yes, you have to use is_home if you want to refer to your blog page in a conditional – even if the blog is not in your home page. Lets say you want to add a … Continue...
View ArticleJQuery Tabs Not Working
Adding jQuery tabs to a website doesn’t seem all that hard – until you run into an unexpected problem. First you need to go to the jQuery website and find the source code on the tabs page. Make sure...
View ArticleMaking Layout Easy With Box-sizing
The default CSS box model can be tricky to deal with. The ‘width’ of a box does not include the padding or borders. Those are actually added on to the declared width to make up the final width of what...
View ArticleOne Site, Two Themes, One Login
I have not tested this, but here is a good description of how to use two themes for a site and how to create one single login for both WordPress installations:...
View ArticleDrop Shadow with Transparency
If you use CSS3 dropshadows you can specify the color with a hex-number, but if you need a transparent shadow, use this: box-shadow: 2px 2px 2px rgba(0,0,0,0.5); -moz-box-shadow: 2px 2px 2px...
View ArticleCustom Post Types
Setting up Custom Post Types | Setting up Custom Fields | Templates Setting up Custom Post Types I was recently asked to create a custom post type for members of an association. Each member should be...
View ArticleNavigation for Mobile
The navigation bar often becomes an issue when creating a responsive theme. As the width of the browser window shrinks it gets harder to fit it across the top, and the text and clickable area get...
View Article
More Pages to Explore .....