• I’m a newbie! I have a template that I created using XHTML/CSS. I noticed that all the themes are inside the wp-theme folder. So in order for me to create my own theme I’d have to create a folder inside the theme folder and copy the files into that folder? How about my static files that i created in html Can i copy them into that folder too? I’d like to understand a little better how that transaction works. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • There’s a lot of info on theme development at the Codex:

    https://codex.www.ads-software.com/Theme_Development

    Note that themes deal with WP templating, and anything that works outside of that should not be included with a theme’s files. If you have separate html/PHP documents, they should reside where they normally would on your site.

    Thread Starter jmdesigner81

    (@jmdesigner81)

    In my CSS, Do i have to set the background-images embedded in XHTML or I can set my background-images on my style sheet?

    As was mentioned, all of this information is in the Codex.

    The style sheet controlls the presentation of your site. If you want consistently embedded images in the background, use the style sheet.

    For almost all background images, you should use the style sheet. It is called style.css and located in your Theme folder, which you created, or should have, as you explained in your original post.

    For more information on styling and fixing every part of your Theme and site for beginners, see https://codex.www.ads-software.com/WordPress_Lessons

    Thread Starter jmdesigner81

    (@jmdesigner81)

    I copied all my files including the stylesheet into the wp-content/theme folder but i get a message saying: “Broken Theme. The following themes are installed but incomplete. Themes must have a stylesheet and a template.” I created a stylesheet and copied into that folder, everything is there but i still get message. Could anyone help me?

    They all go into the /wp-content/themes/yourthemename
    folder.

    Have you read the documentation links provided? It goes through this step by step.

    Here is another: https://codex.www.ads-software.com/Using_Themes

    Follow the instructions and you will have all the answers.

    Thread Starter jmdesigner81

    (@jmdesigner81)

    I did exaclty what the documentation says but it still doesnt work. I even deleted and uploaded again.

    Obviously something went wrong. Do you have the minimum basic templates in your theme? Does your stylesheet have the proper heading?

    Thread Starter jmdesigner81

    (@jmdesigner81)

    Well, yes it does. I dont know what’s going on! THis is how i started. I created another folder and called design01. Also inside design01 folder i created another folder called images for my images. I copied all the files from the default theme into design01. I changed all the php files according to my needs, although i didnt change any php code only the html tags. I created my own style sheet and called it styles.css and saved it into design01 folder. After all that, I uploaded the design01 folder into wp-content/themes folder. I really dont know what i did wrong.

    Thread Starter jmdesigner81

    (@jmdesigner81)

    well… i deleted, uploaded again and worked! I dont know what happened!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Template Creation’ is closed to new replies.