WordPress.org

Ready to get started?Download WordPress

Forums

Themes and Templates (7 posts)

  1. timeistight
    Member
    Posted 9 years ago #

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

  2. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    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'); ?> );
    </style>

    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.

  3. timeistight
    Member
    Posted 9 years ago #

    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.

  4. Jax
    Member
    Posted 9 years ago #

    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?

  5. Anonymous
    Unregistered
    Posted 9 years ago #

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

  6. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    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.

  7. Mark (podz)
    Support Maven
    Posted 9 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.