Content. Custom Classes. We have added menus capabilities to our webpage and that is excellent. But where is the beef, or more specifically, where are the posts and the pages and everything else: where is the content. To access the content, we need to create a content-loop. On WordPress, this is also known as The…
Category: Wordpress
A WordPress theme from scratch 3
Menus and Menu locations With the new theme set as active, if we open the Dashboard and expand Appearance, we notice that in comparison to other “complete” themes we are missing quite a bit. Let’s begin by activating Menus on our theme. We edit the file functions.php and include the following code: After that, our…
A WordPress theme from scratch 2
Structuring the theme I would like to have different directories for my CSS and JavaScript, so let’s create them. Remember that we start from our installation directory. After doing this, we have created the directories css and js containing the (empty) files my-first-theme.css and my-first-theme.js respectively. We will insert content in these files later. For…
A WordPress theme from scratch 1
Creating the theme I know nothing about WordPress. Like many others, I am just a user. For a long time, I have wanted to understand at least the basics of WordPress themes and perhaps be able to customize those used in my blog. So I set up on a quest to learn more about it….