WordPress.org

Ready to get started?Download WordPress

Forums

can template css be mixed between themes (6 posts)

  1. nevermore
    Member
    Posted 8 years ago #

    I found a nice theme but all that was in the download was the background which i really love. Can I drop those css or php files or whatever into another theme i like that has all the bells and whistles.
    I have to tell you, I am an html know how but i feel like an antiquity now. I just got interested in all this blogging and realised the ethernet has moved quickly and I am left not understanding any of this. So many people blogging, there must be an amazing amount of code literate people out there..sigh

  2. moshu
    Member
    Posted 8 years ago #

    Despite the general belief, the template files in a theme are html-based layout. The PHP template tags just call the different WP functions. See more:
    http://mattread.com/archives/2005/04/wordpress-is-not-php/

    Another source about how the template files build up a theme can be seen here (if you are a visual type)
    http://www.transycan.net/blogtest/2005/03/31/visual-anatomy-of-a-wp-15-theme/

    And to answer your question: you can use different files from other themes in a theme or, if you know what are you doing (!), you can implement CSS portions and/or other elements into a theme. I have done many themes where a client had an existing website with a specific layout, and they wanted a WP theme that matches exactly that design.

    And finally, a lot of good articles in the online manual, the Codex.

  3. nevermore
    Member
    Posted 8 years ago #

    Moshu, thank you and I will check out those sites. while I have you here, can you answer something? I went thorugh step by step how to play with the header php. I replaced kubrickheader with personal header (I ftp'd "personalheader into the images file on my server)and i still couldn't see any changes. Am I supposed to work on the php file in an editor then ftp it or is working in wordpress good. It didn't specify on the wrodpress directions page..

  4. moshu
    Member
    Posted 8 years ago #

    I ftp'd "personalheader into the images file on my server
    That's for sure is a problem! Theme images should be in their theme's image folder, e.g.
    wp-content/themes/default/images

    On a more general note: I always advise every new user to stay away from default. Unless you understand perfectly how WP works it's a PITA to modify.

  5. Mark (podz)
    Support Maven
    Posted 8 years ago #

    In header.php, the line that calls for personalheader is commented out - it has /* and */ surrounding it.
    Removing them should do the trick.

    That said, the default theme is not one to learn with. Despite it's appearence it's a complex chunk of code that can be tricky to play with.

    http://themes.wordpress.net is the place to go I'd say.

  6. nevermore
    Member
    Posted 8 years ago #

    Moshu, I wasn't clear back there, sorry, I did put the personalheader into the themes images file. thanks anyway.
    Podz, for the heck of it I will try that thing you mentioned and then yes I will stay clear of the default theme.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags