How to build a Premium Theme for WordPress



So, if you’re here probably it’s because you really really wanna now how to build a Premium Theme for WordPress. Well, good for you because this is the right place.

In this new series of tutorials we’re gonna go deeply into advanced WordPress functions to create a fully customized WordPress theme, with custom made Widgets and a styled Administration section crafted uniquely for our Theme. You can follow this series even if you’re a beginner, but if you have no idea how WordPress works from a developer point of view, I strongly suggest you to follow my previous series before jumping on this one.

Before starting we have to decide what to do, and because our goal is to create a Premium theme, we need a solid base to start our journey. That’s why I created Sunset, a custom WordPress theme made for blogging, perfect in every pixel and with the proper visual styling for us to use it in our tutorial.



Of course, like the entire code of the series that will beย available on GitHub, also Sunset Theme is completely free and easy to download. To get the link, please complete this easy steps and help me growing my audience.


Free Sunset PSD theme for WordPress


I will keep this Download portal constantly open, and if you already completed some steps no worries, the system will recognize that automatically and you will be able to download the file as many time as you want. Also, in case of updates and implementations to the PSD file, the URL will be updated with the new file, for an easy access.

This blog postย will be also constantly updated with video links and new information during the entire length of the entire series, so bookmark this page if you wanna keep an eye on future updates and juicy news.



That’s pretty much everything for now, so, while you download this PSD like crazy, I will go back into my cave to create new and amazing tutorials.

Happy Coding!


  • Tom

    This is a silly question, but I completed 4 of the above things (I don’t have a soundcloud or instagram account) How can I download the theme files associated with this series?


    • Hi Tom, thanks for your comment. The Instagram and Soundcloud shouldn’t be required, but just optional. Are those actions listed as required?
      If so let me know and I will proceed on updating the system.
      Sorry for the issue.

      • Tom

        Thanks for getting back to me. Once I did the 4 those two showed up. They initially were not there though. I’m not seeing anything to download after doing the 4, but maybe I’m just completely missing it?

        • That’s super odd. I set those 2 actions as optionals, not required to download the file.
          Mhhh.. if you want use the contact form on my about page and send me an email. I will send you the link to download it.
          Sorry about that.

          • mat

            Hello Alessandro! I loved your WordPress 101 beginners Tutorial and want to continue with this one. I have the same issue as Tom earlier today, it says I have to complete all 6 steps to download the files.

          • Damn it, I think Glem is buggy. Let me completely remove the last 2 steps. I will let you know when the system is updated!
            I’m really sorry for the issue.

          • Tom

            I contacted you but never heard back is it possible you could email me it – my email is


          • Hi Tom, sorry about that, probably your email disappeared under the pile of my daily emails.
            Can you send it again please?
            Also I think I figured and solved the issue with Gleam.

  • Samia S

    After I make a premium wordpress theme, how should I market it so that it get lot of sales on themeforest? Are there other channels for marketing/selling wordpress themes especially for newbie freelancers?

    • Hi, thanks for the comment.

      There are a bunch of different options to sell your theme, and you can check a good list here:

      In my opinion, it all depends on you and how you advertise your theme. Of course if you publish it on theme forest and you don’t create any sort of advertising, it will remain unknown and it won’t sell.
      You should write some article about it, find a good website or blog about development and ask the owner to review your theme, make a video tutorial about, do a small Facebook campaign, and so on.
      It’s mostly about sharing and keeping the attention high.

      Good Luck!

  • Sasha Kircanski

    Thank you Alessandro!Your tutorials are great!

  • Sasha Kircanski

    You are doing awesome thing!

  • Becca Clark

    I don’t have Twitter. I did 3 out of 5 things..would really like to continue my tutorials with you!!!! ๐Ÿ™‚

    • Hi Becca, thank you for following the series.
      I’m really sorry but the Twitter follow is required, I hope you don’t mind fulfilling this last step.
      If you’re interested in web development Twitter is an amazing source of information, tutorials and other amazing developers way smarter than me. I really suggest you to create an account and start using it.


  • Tweets4Stuff

    Hi, I’ve followed you on twitter and it’s not recognizing the action. Also, you might want to throw in a how to connect to twitter for the 1 click action, because I’m new to twitter and have no idea how to perform this.

    • Hi, sorry for the issue, did you solve it?

      • Jules Verne

        i have same problem, how to connect to twitter ?

        • Do you have a twitter account active and logged in your browser? The widget should prompt you with a popup where it asks to connect with your account.

  • Najib

    Hi, thanks mr Alessandro for the your tutorials are great
    Please send me the download link here : ( ntalikinfo[at] )
    i can’t download it

    • Did you follow all the steps?
      What’s the problem your having?

      • Najib

        Thank you again,
        now it works ๐Ÿ™‚

  • moinuddin

    I have already posted this question but that is not answered…Once again. In lecture 24 when I use media library of wordpress to upload photos then it is not showing up in the posts or gallery only the featured image is showing up…But if i upload from my computer then it is is showing there in the post if inert and in the gallery as well…Please reply alex..I am stuck i have tried many solutions out there but to no avail.

  • Jozef Sedlak

    Hi Alex, I don’t have Twitter account, how could I proceed with unlocking your tutorial? I am subscriber for a while now.
    I did all the other steps as well…
    Thank you.

  • Serkan

    Hi Alex. This tutorials are very awesome. Thanks a lot. But i noticed smth about sunset theme. If we don’t add the featured image and all the images in the code editor the get_attachment function doesn’t retrive the image in the code editor. Function return empty value.That is only retrive post featured image . I there any problem in the function or me ๐Ÿ™‚

    • Hi, thank you so much for following.
      If you don’t have any image to retrieve is normal that the function returns empty. I will, towards the end of the series, do a round of reviews and improvements to tackle all these issues and remove any possible problem caused by missing content.

  • Ahmet CANGIR

    Hi Alex,
    Do you mind publishing a simple demo of latest work.
    thanks for this awesome work

    • Hi, what do you mean by “latest work”?
      Are you referring to the recent websites I developed?

  • Rahuman Bin Hussain

    Thanks for your tutorials, You are super awesome. I need to know something from you. How to install multi language to a wp site? Any tricks?

  • Adrian Simpson

    Hi Alecadd, I came across your tutorials on building a premium theme on YouTube. I not new to WordPress been using it for a while but I am lacking in coding and I always have the desire to develop my own theme. I have follow your 101 tutorial which is great and now going through your premium which is awesome. I have tried to add LinkedIn to code following the same code has Facebook but I can’t get it to show up. I am not getting any error any suggestion. I can send the code that I have for LinkedIn. Keep doing these awesome tutorials. Thanks.

  • Veneet Singh

    Cant download the file. Already shared on twitter many times and it’s not working!

    • So sorry to hear that, I’ll send you the link via email.
      Thank you so much for following!

      • Veneet Singh

        Thank you! for quick response

  • This is nonsensical, because I have completed the “tweet on twitter” section and during verification it says ” Sorry, we’re have trouble communicating with twitter” blsh blah blah… having the same problem as Veneet Singh.

    • Stewart Lynch

      Link to twitter and all will be well