If you are anything like me, wordpress home pages have been a challenge. How do you design the home page that you want? If you don’t want your site’s home page to be just an standard archive of posts, or if you don’t want your site’s homepage to be just a generic page, what do… Continue reading Custom Home Page
Adding a Sidebar In order to add widgets, you must first register them in the functions.php code. Add this directly after the after_theme_setup action; this will be to set up widget locations. We’ll create a function, call it init_widgets() and it will take an id; then, we’ll say register_sidebar. Now, even though this is called register_sidebar, this is used with all… Continue reading Adding Widgets
WordPress uses a template hierarchy to determine which template file to use to display a post or a page. Posts, Posts, and Pages In wordpress there are posts, and then there are posts. In other words, “post” has two completely different meanings in wordpress. A post is any type of content you might add to… Continue reading Adding Page Types
WordPress has a standard set of post formats, like gallery, for example. A Post Format is a piece of meta information that can be used by a theme to customize its presentation of a post. According to the wordpress codec: “The Post Formats feature provides a standardized list of formats that are available to all… Continue reading Add a New Post Format
Our goal here is to add a featured image to a post. The first thing we need to do is add the featured image to our theme’s functions.php file. The complete code snippet is here: If, as is likely, you already have declared the function adv_theme_support(), you must skip that part as you cannot declare… Continue reading Adding a Featured Image
We’ve begun by creating an html template that we are going to turn into a simple theme. What we want to do is turn our html navigation into a wordpress navigation menu. Our simple html theme has this code for the header: <header> <div class=”container”> <h1><a href=”index.html”>Advanced WordPress Theme</a> <small>Another WordPress Theme</small> </h1> <div class=”h_right”>… Continue reading Adding Navigation to Header
We want some site branding, more that just the site name and “Just Another WordPress Site” to show in our header. Enable upload of logo In order to add a logo to the header, you must first be able to upload the logo. This is done using the add_theme_support() function in wordpress, which you can… Continue reading Add a Site Logo to Header
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!