Permalink pages look like index (9 posts)

  1. mkgago
    Posted 11 years ago #

    What's the easiest way to make my archive and category pages look like my index page? I would like to have my sidebar appear on the pages of individual posts....

    thanks for the help.

  2. mkgago
    Posted 11 years ago #

    one additional thing: by including the line

    <?php get_sidebar(); ?>

    I've gotten the sidebar to appear on permalink pages; but it appears down at the bottom of the post instead of in a sidebar on the right-hand side of the page. How can I move it up to make it appear in a sidebar?

    I assume I have to add a div class="narrowcolumn" somewhere, but I'm not sure where to put it.

  3. lawtai
    Posted 11 years ago #

    just take your index.php page, and gut out all the stuff within the "contents" div and then save them as archives.php and category.php. i think that'll work?

  4. mkgago
    Posted 11 years ago #

    can someone explain to me/correct my understanding of the following pages in the default kubrick theme:

    archive.php : controls the presentation of monthly, yearly archives

    archives.php : ??

    index.php : controls home page of site

    page.php : ??

    single.php : ??

    where is all of this broken down? Is there a wiki guide to 1.5?

  5. James Huff
    Support Representative
    Posted 11 years ago #

  6. mkgago
    Posted 11 years ago #

    thanks very much, macmanx.

    But I still don't understand the difference between single.php and page.php

  7. satoshi
    Posted 11 years ago #

    You'll want to change the div id(class? I can't access my site right now) from "widecontent" to "narrowcontent." This will put the content of the page in the same constraints as it is on the main page. You'll also want to go into the single.php file and find the php code for where it determines whether it's a single post or not. Just comment it all out. You should be left with #page {background blah blah ...kubrickbg.jpg}

    Do this for every template page you want the sidebar to show up on.

    This is actually good timing on your part =P I JUST did this on my site before the server went down.

  8. satoshi
    Posted 11 years ago #

    Page.php determines how your pages (not posts) are displayed. Whereas single.php determines how a single post (when you click on the permalink, for example) are displayed.

  9. mkgago
    Posted 11 years ago #

    Thank you, satoshi--changing "widecolumn" to "narrowcolumn" did the trick!

    one more thing: am I right in thinking that "pages" refers to static pages? and also that there are no static pages in the default install?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.