background preloader

Wordpress Theming

Facebook Twitter

WP Novavideo - Premium Wordpress Responsive Video Tube Theme. How To Add Icons To Your WordPress Menu. The “not-so-new-anymore” WordPress 3.0+ custom menu feature is not only extremely useful but is also very powerful. I have already written a few posts about editing and customizing the menu (such as how to highlight current page links) and today I will show you how you can add special classes to your themes so you can easily show custom icons next to your navigation links.

In order to better explain how to add icons I will take you through the steps for adding a home type icon next to your homepage link. Step 1: Download a cool home icon For the sake of this preview I just went over and downloaded a simple home icon from Finicons.com – link Step 2: Enable Classes In Your WordPress Menu By default the WordPress menu doesn’t show the “class” attributes in the menu builder, so hit the “screen options” and make sure it is checked. Step 3: Add Style To Homepage Link Now you can browse to or create a homepage link and add a new class to it. Step 4: Add CSS For Home Menu Icon Sample CSS Sample Image. How To Create A Child Theme, And Why You Should Be Using One. According to our recent WordPress Themes Survey, 85% of our customers customize their themes, and only 35% use a child theme when doing so. This may be due to a lack of understanding as to what a child theme is, or due to the perceived difficulty of creating one. In this tutorial, we will go over how to create and use child themes, and why using them is so important.

(A special note for Elegant Themes customers only: If you are only looking to perform simple CSS changes to your theme, then you can use the Custom CSS box in ePanel instead of creating a child theme. For more in-depth changes that require editing php files, a child theme must be used.) Why You Should Be Using Child Themes Creating a child theme when performing adjustments to your theme’s code can save you a lot of future headache. Getting Started In this example, we will be creating a child theme for our Foxy theme. Activating Your Child Theme Modifying Your Theme’s CSS Editing The Functions.php File 1. 2. 3. By Nick Roach. What You Can Expect From Future Versions Of WordPress. Starting with version 3.7, WordPress began a new distributed development process that promises a faster and more nimble release schedule.

New features are broken up into separate plugins and worked on individually until being integrated into core. This gives the community a unique opportunity to explore these updates in plugin form, and to participate and speculate about what features will be included in 3.8. In fact, you can download the plugins right now and play with them before the next WordPress release candidate has even been announced!

I would not recommend installing these plugins on your production website. Below are the plugins that have been pitched for 3.8, and we can expect that most of them will make their way into future versions of WordPress in some form or another. A Re-Designed Dashboard The MP6 project, which has long been in development under the “top secret” MP6 plugin (No, it’s not really top secret!) Widget Area Chooser Ditches Drag & Drop Global Admin Search. Extend WordPress With Custom Fields. Getting Started with WordPress Post Formats.

Since WP 3.1, we’ve had post formats. Most people don’t know what that is and most developers don’t make use of this great tool. You should know about it since we’ll probably have a great increase on post formats usage with the upcoming WP 3.6 version. There we’ll find a better post formats UI, and certainly a big incentive for users to understand and use it accordingly. Post Formats vs. Custom Post Types Post formats allows you to select how the content should behave and display, without modifying the content type itself. So in spite of the different presentation they are all in the same big group: posts. Custom post types on the other hand are more suitable, for the cases where you need different sections, you don’t want to mix those with your regular posts. You can see the Post Formats as a standardized way to categorize content.

Here they are: Since they are born to be a standard you just can’t add new post formats. Setting it up And once you’ve done that you’re ready to rock. Summing up. Sidebars in WordPress. Over the past few months, I’ve seen the code for hundreds of WordPress themes. I’ve seen some beautiful code and some downright nasty code. One thing that I’ve seen more often than not is the same few lines for handling sidebars.

This is code from 2007 and most likely copy-pasted from older WordPress themes. I just wanted to clue an extremely large portion of the theme development community in on a little secret: sidebars have been a part of WordPress core and have seen some updates over the last three years. With that in mind, I’m going to walk you through the steps of creating and using sidebars for WordPress themes. Maybe you’ll even pick up on some things you didn’t know about. The goal is to teach theme developers how to properly register sidebars and end this cycle of using outdated code. What are sidebars? The term “sidebar” actually refers to two different things in WordPress: Generally, the term “sidebar” refers to a dynamic sidebar, which is the focus of this article.

<? Id name. WordPress theme - The Anatomy, an Infographic. Index.php – home The index file controls what the homepage of your WordPress theme looks like. By default it is a loop that queries and then displays the most recent blog posts, with a link in the bottom to view previous posts. Alternately, you can specify in wp-admin -> settings -> reading to have the home page be a page you created yourself in WordPress.

In that case, you specify a different page/URL for the regular blog posts to appear on, and that page is generated by index.php. single.php – individual posts The display of individual posts in your WordPress theme is controlled by a little file called single.php. It contains a loop that queries just one post and displays it. You can specify if you want sidebars (and which you want), if you want it to look different than the other pages on the site. page.php – individual pages Page.php controls what pages look like.

WordPress also allows you to create different page templates within your WordPress theme for different types of pages.