Support » How-To and Troubleshooting » Themes and Templates

Themes and Templates

  • timeistight


    How can I create templates (like a links page or an archives page) that respond to theme changes in 1.3?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ryan Boren


    WordPress Dev

    You can make it respond to stylesheet changes by using bloginfo() when you import.
    <style type="text/css" media="screen">
    @import url( <?php echo bloginfo('stylesheet_url'); ?> );

    Of course, your template must be compatible with whatever stylesheet is active. Switching to new templates for your archives and links pages will take more work. Since such pages are not WP-managed files, there is no built-in redirection for them. You’ll have to modify your archives.php so that it will look for bloginfo(‘template_url’)/archives.php and include that if present. You’ll then need to make an archives.php for each theme.



    Would this kind of thing be better accomplished using the new ‘Pages’ functionality? Your is_page handler would need some way of figuring out which page to do what on.
    I am, of course, talking through my hat.

    I am using the latest nightly (oct 4). The Kubrick Template(http://binarybonsai.com/kubrick/kubrick-1.3.0-rc1.tar) is not working. I get the following message if I try to activate the theme: “The active theme is broken. Reverting to the default theme.”
    Any idea what the problem might be?


    No idea. I just installed the same nightly and Kubrick works for me. Are you sure all the files are in place?

    Moderator Ryan Boren


    WordPress Dev

    If index.php and style.css cannot be read, the theme is broken. Are those files present and readable?
    Getting back on subject: I’m considering doing just that, timeistight.

    No idea if this is me, or wp.
    Latest cvs.
    Using a database copy of mine.
    All old files have been erased before upload.
    “The active theme is broken. Reverting to the default theme.”
    I see Root’s theme’s packages listed, I click Select, but nothing happens.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Themes and Templates’ is closed to new replies.