Buying and customizing Premium WordPress themes have many benefits, especially in avoiding extra time coding a fully custom design. Unfortunately you are then limited to the customization options given by the plugin developer. Often you will want to do something that is not an option given and then you’ll need to manually hardcode some HTML or add some custom CSS styles.

As we are using the Sahifa theme currently here at The Digital Hippies, we are limited to the options it provides in the ‘Sahifa Settings’. While there are several to choose from, it does not allow everything (naturally).

(Hippies' Note: If you enjoy reading our articles, you'll love our newsletter. Receive updates directly to your inbox. Subscribe now!)

We had the idea to use a general skin color to the website as a whole, but then to customize each main section with a completely different skin color.

Step-By-Step


1. Function.PHP


First we need to adjust some code within the function.php file. There are two ways to access this file; 1) download the file via FTP and open it with a text or HTML editor, or 2) access the file within the WordPress Dashboard under Appearance > Editor. (Tip: Keep a copy of the text within this file before you begin working on it, just in case .)

Sahifa Users: You can use this URL structure (http://website.com/wp-admin/theme-editor.php?file=functions.php&theme=sahifa) to quickly access this file. Simply replace the ‘website’ with your domain name.

Inside this file you are looking for the following code. You can find it more quickly by clicking inside the document text box and using the ‘search’ feature of your internet browser (usually by holding Control and F at the same time).

This snippet of code needs to be moved below this line

When you are finished moving the // Custom Functions snippet, this is what it should look like. This reason behind this move was so that our ‘Custom Function’ file will load AFTER all of the themes custom functions.

Custom-Functions.PHP


Next you’ll need to open the custom-function.php file (follow the same instructions as above).

Sahifa Users: You can use this URL structure (http://website.com/wp-admin/theme-editor.php?file=custom-functions.php&theme=sahifa) to quickly access this file. Simply replace the ‘website’ with your domain name.

Sahifa Users: Now, if the file only contains that small code (above), then delete it entirely and paste this code (below). Otherwise it is usually a blank file.

Code Explanation


Here is a quick explanation of the PHP code above and what it is accomplishing. First we needed to define the function (custom_css_theme), which you can name whatever you’d like. When choosing a name for the function you are allowed to use alpha-numeric characters and underscores only. We are loading different style sheets for each section (category) within that function. Basically this is saying:

  • If it’s the Home Page, load the black style sheet.
  • Otherwise, if it’s a post within the Travel section (category), load the default style sheet. In this case it’s orange.
  • Otherwise, if it’s a post within the Lifestyle section (category), load the blue style sheet.
  • Otherwise, if it’s a post within the Digital section (category), load the red style sheet.
  • Otherwise, if it’s a post within the Thoughts section (category), load the green style sheet.


Troubleshooting


Why are some of the sections displaying the wrong skin color? There are two possibilities.


  • The ‘Skin’ selected in the Sahifa Settings NEEDS to be set to default. If another skin is selected, then you might see this problem.
  • You will need to have published content under each section (category) to see the styling changes for that section. If the category is empty, then it does not work.
Read More
Starting your own blog doesn’t have to be complicated or expensive. In fact, more and more people are starting blogs every day. It seems that just about every person or business has a blog these days.

But if you’re like most people, you may not know where to get started. Starting a blog can be intimidating if you don’t have the required technological skills. Not to mention that the number of options available for starting a blog can be just plain confusing.

Ready to start the simple step-by-step tutorial? Click here to go to Step 1
The good news is that the free step-by-step guide on this site removes any confusion from the process, and requires only the most basic computer skills. So whether you’re 8 or 88, you can have your blog ready to go in less than 20 minutes.

Why Should You Use This Guide?


My name is Arthur Azokka, and I am going to be your guide on this journey to building a successful blog. I have been building blogs and websites since 2009. In that time I have launched several of my own blogs, and helped hundreds of others do the same. I created this free guide so that anyone can learn how to blog.
During this time, I have discovered that becoming a successful blogger comes down to 3 things:

1. Setting up your blog correctly


I am going to show you exactly how to start a blog with the WordPress blog platform, which can be used from any computer, tablet, or smartphone. WordPress is the most popular blog platform in the world, and with good reason. In this step-by-step guide I am going to show you EXACTLY how to create a blog and configure WordPress so that you get the most out of it.

2. Having a passion for your topic


What is a blog? At its heart, blogging is about sharing your knowledge with the world. Choosing a topic that you are passionate about makes the process of starting a successful blog so much easier.

3. Learning from others


I am not ashamed to admit that when I was first learning how to build a blog I made a ton of mistakes. You can benefit from more than a decade of my experience so that you don’t repeat these same mistakes.


Why Should You Start a Blog Today?


Starting a blog doesn’t need to be expensive or complicated. In fact, the entire process comes down to just these four steps:

How to Start a Blog in Four Steps


  • Choose a name for your blog
  • Install your blog (takes about 5-10 minutes)
  • Customize your blog design and layout
  • Write your first blog post!


The internet is exploding with growth right now. More people than ever are online. This explosion in growth means more potential readers for your blog. In short, there is no better time than today to start your blog.

By starting a blog you can expect the following benefits:

1. Income


Blogging can be quite lucrative if done correctly. The top bloggers in the world obviously earn quite a bit, but even a part-time blogger can expect to make a nice profit if things are done correctly.

2. Recognition


No, you probably won’t have paparazzi following you around because of your latest blog post. But a successful blog can gain you a ton of recognition in your respective field. Many bloggers are known as experts just because of their blogs.


3. It’s Fun!


Aside from the more tangible benefits like resume-building and income, blogging is a great way to share your ideas with like-minded people.
Read More
Designed by Arthur Azoka | Powered By Wordpress