Treehouse: Grow your CSS skills. Land your dream job.

WordPress theme not appearing on website

  • # February 7, 2012 at 3:58 pm

    I made a wordpress theme and it’s not showing up at all on the website. I checked the themes section and it says “Stylesheet is missing” but it’s there. I tried changing the Theme name in the style.css and when I updated file an error would come up saying “The requested theme does not exist.”

    I’m using wordpress 3.3.1

    website is

    # February 7, 2012 at 5:33 pm

    ok so I tried installing other themes and they seem to be working. Maybe there something wrong with my coding?

    I deleted the folder and reinstalled the theme and still nothing showed up. I then tried editing the twenty ten theme and put my code in those files and nothing shows up but that theme was working before I switched it with my code.

    # February 7, 2012 at 5:50 pm

    It sounds like you have an issue somewhere that is causing WordPress to not recognise the theme. Start with a copy of the Twenty Ten theme and copy your files across one at a time, each time checking if the theme is still recognised. My guess would be that the problem is somewhere in style.css.

    # February 7, 2012 at 6:08 pm

    Thanks, I’ll try that out

    # February 7, 2012 at 6:08 pm

    @johnjf No worries. Let us know how you go!

    # February 7, 2012 at 7:12 pm

    alright so I reinstalled wordpress and it didn’t do nothing. So what I did was upload a theme I made before, I then switch my files around and everything was working until I deleted a file called home.php. Once I reuploaded that file it was showing up again. so I went back and forth through my code and turns out it was because I didn’t have these codes close to each other

    < ?php if(have_posts()) : ?>
    < ?php while(have_posts()) : the_post(); ?>

    < ?php the_title(''); ?>

    < ?php the_content(''); ?>

    < ?php endwhile; ?>
    < ?php endif; ?>

    < !

    End Of Content_Main


    I had the first 2 php statements just under the get header code and then there was a couple more divs after it then the h2 php title code was there which was in the main content div. I then had the end while php after end content div. So in the end once I put them all in the content_main div everything showed up. I was able to delete home.php file after this and just have the original index.php, page.php files.

    I didn’t know the if statement had to be in the same div? anyway happy I got it working, I’m just a noob when it comes to wordpress.

    Thanks for the help :D

    # February 7, 2012 at 8:09 pm

    Don’t worry, I’m a WordPress noob too. Glad you got it working!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.