WordPress.org

Ready to get started?Download WordPress

Forums

Theme: Kubrick 1.5 - AllSidebar Edition (77 posts)

  1. Kafkaesqui

    Posted 9 years ago #

    Because it's difficult enough having to explain it, I've gone ahead and modified the default (Kubrick 1.5) theme to provide a sidebar at all times:

    http://guff.szub.net/wp-content/default_allsidebar.zip

    To use, unzip to the directory/folder "default_allsidebar", upload this to your wp-content/themes/ directory on your blog's site, and select "WP Default - AllSidebar Edition" under Presentation in WordPress.

    Changes:

    * Templates previously single-column reset to the 'narrowcolumn' id.
    * <?php get_sidebar(); ?> added to those templates which lacked it.
    * Reference in header.php to kubrickbgwide.jpg removed.
    * A tiny bit of cleanup, clarification of comments.

    I also slipped in the get_calendar() template tag, though it is commented out; to display it, remove the html comments from around it in sidebar.php.

    Note: If this steps on any toes, so be it.

    UPDATE: For those who want to display links and login info in your sidebar at all times as well, I've separately made available a modified version of this:

    http://guff.szub.net/wp-content/kubrick_sidebar.zip

    Extract sidebar.php from the zip and replace your current one (either in default or default_allsidebar) with it.

  2. clarke1866
    Member
    Posted 9 years ago #

    Dammit! I've been working on figuring this out for 2 days. I finally got it 5 minutes ago, and about to post on how to do it (there were various hints around, but no explicit instructions). Now, you've gone and done and made it easy for <i>everyone</i>.

    You sir, are a scholar and a gentleman.

  3. Kafkaesqui

    Posted 9 years ago #

    A solution that avoids several dozen threads a month on the same topic is the one I (almost) always go for. :/

    And those 2 days were not lost ones. You now know more about WordPress theme construction than 99% of the WordPress users out there. Probaby not what you set out for, but...

  4. davincim
    Member
    Posted 9 years ago #

    Hey Kaf, thanks for going to the trouble of setting this up!

  5. jpshea
    Member
    Posted 9 years ago #

    Thanks,

    This is great.

    How can I vertically align the sidebar to the top of the column in index.php?

    It's @ the top for sub-pages, but not on the main page...

    Have tried quite a few things, including

    #sidebar in style.css

    Thanks!

  6. Kafkaesqui

    Posted 9 years ago #

    jpshea, you understand the irony of your question? Modifying the mod.

    You'll have to provide more info, because the sidebar aligns vertically at the top on all pages for me including the home page, with the search input aside the first line of text in the left-hand column (except for single post pages, which pushes down on the left due to the next/previous links).

  7. 7milesdown
    Member
    Posted 9 years ago #

    I have a pretty highly modified Kubrick already. Can you tell me if I have to replace the comments and index php for this to work? Or can I just leave that and replace everything else. Im tryin not to go thru all the hassle of adding everything again.

  8. Kafkaesqui

    Posted 9 years ago #

    To modify your own Kubrick, note the changes I mentioned above:

    * Templates previously single-column reset to the 'narrowcolumn' id.

    In each "primary" template (i.e. a template that incorporates get_header(), get_footer()), make sure this:

    <div id="content" class="widecolumn">

    is this:

    <div id="content" class="narrowcolumn">

    * <?php get_sidebar(); ?> added to those templates which lacked it.

    Should be obvious which ones those are, eh? Just place it above <?php get_footer(); ?>

    * Reference in header.php to kubrickbgwide.jpg removed.

    In the style section of header.php, there's an if/else statement to set which background image to use for #page. Change this so there is only one #page referencing "/images/kubrickbg.jpg" (or whatever image you may have change it to).

  9. clarke1866
    Member
    Posted 9 years ago #

    As another reference, for people having trouble modifying their own kubrick setup: the key break for me was discovering that the file single.php was how a single 'post' was displayed. Most of the changing is done in this file.

  10. wiredkiwis
    Member
    Posted 9 years ago #

    Hey thanks a lot for the 'all sidebar edition' Kafkaesqui
    It was a BIG help

    The only bit I'm trying to work out now is:
    How the heck do I get the 'Archived' pages to show the original links in the posts?
    :)

  11. Kafkaesqui

    Posted 9 years ago #

  12. wiredkiwis
    Member
    Posted 9 years ago #

    RE: links in post on archive pages:

    :<b>big thumbs up</b>:

    :)

  13. Roar
    Member
    Posted 9 years ago #

    I could just KISS you for this!

  14. jaijai
    Member
    Posted 9 years ago #

    Thanks, Kafkaesqui, for this sidebar modification! It was what I was looking for. Now how can I get the sidebar to show on the permalink pages?

    Thanks!

  15. Kafkaesqui

    Posted 9 years ago #

    "Now how can I get the sidebar to show on the permalink pages?"

    Uh, ????????????????????????????????????????

    :)

    It's the AllSidebar edition of Kubrick, which means the sidebar is on, all the time, on all the pages. Sort of the point. Now, if it's not showing up when on an individual post page, then either it hasn't been selected for the active theme, or something went wrong when dropping it into place.

  16. jaijai
    Member
    Posted 9 years ago #

    Yes. My mistake. But I do have another question. How do I get the links list to also appear on every page in the sidebar and not just the homepage?

  17. Kafkaesqui

    Posted 9 years ago #

    That can be done. In sidebar.php (in the theme's directory), look for this section:

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    <?php get_links_list(); ?>

    Change it to:

    <?php get_links_list(); ?>
    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>

    This will force only the 'Meta' section to appear on the home and Page pages. To show that everywhere, as well, remove this:

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>

    And below the Meta section, remove this as well:

    <?php } ?>

  18. jaijai
    Member
    Posted 9 years ago #

    Thank you!

  19. NuclearMoose
    Member
    Posted 9 years ago #

    Awesome, Kaf!

  20. Kafkaesqui

    Posted 9 years ago #

    By the way, for anyone wanting the change jaijai asked for (and which I answered), you can also scroll up to the very first post in this thread, and click the link in the UPDATE.

    I know it can be missed; even I forgot about it. *<:p

  21. marionjoe
    Member
    Posted 9 years ago #

    kafkaesqui:
    thankyou for your work.

    QUESTION 1
    do you have any clue?
    i have installed and selected
    and the header does not appear.

    how do i make it appear?

    QUESTION 2
    and which html tags do i remove from around calendar?
    i have removed the tags as below.
    is this correct?

    <!-- WordPress Calendar is disabled per default. Remove the html comment tags if you want to use it.
    li id="calendar"
    ?php get_calendar(2); ?

  22. -->

  • Kafkaesqui

    Posted 9 years ago #

    Question 1: A link would help troubleshoot this.

    Question 2: You must remove the html comment tags, ie the <!-- and -->, so that only this remains:

    <li id="calendar">
    <?php get_calendar(2); ?>
    </li>

  • zim
    Member
    Posted 9 years ago #

    I believe I've tripped across a problem related to the one you solved for jaijai. I've installed the allsidebar edition and it's working great on my index, archives, category and single post pages. Where it seems to breakdown is on Pages (pages.php template). On a Page the sidebard shows up but the Pages list that shows on a post (single.php) shows only the header with no items in it.

    You can see an example at http://www.zims.com by clicking the Contact Us link on the main page.

    Any suggestions?

    Thanks,

    Mark

  • Kafkaesqui

    Posted 9 years ago #

    Mark - for a moment there I only saw half a theme on your site (so I imagine you're updating stuff). It also looks like you fixed your problem?

  • zim
    Member
    Posted 9 years ago #

    Kafkaesqui,

    I was fiddling with the wp_get pages, trying to trick it into working with child_of, etc. Anyway no luck. Should be back to not working as described now.

    Thanks,

    Mark

  • zim
    Member
    Posted 9 years ago #

    Just a note to say this has been solved, though I don't quite know why.

    Here's what I did. I created a new Page and did not specific a Page Slug for it just left it blank. Once this page was added the Pages list is now showing correctly.

    I had previously tried rebuilding my perma-link structure and nuked my .htaccess thinking that something was borked there. Creating this new Page (without the slug) seems to have unborked it.

    Sorry for the less than scientific explanation but I'm really not sure why this worked...

    Mark

  • Kafkaesqui

    Posted 9 years ago #

    "As long as it works, who cares what the explanation is."

    -Kaf Oseo, sometime in 1997 (or thereabouts)

  • ealvin
    Member
    Posted 9 years ago #

    Hi. I'd love to see what this looks like, it's hard for me to grasp it. Anyone care to post their blog so I can see it in action? Thanks.

  • Kafkaesqui

    Posted 9 years ago #

    Easy to visualize: just imagine the home page layout of Kubrick on all pages. In any case, I'm currently running it on a test site:

    http://szub.net/ve&#97;

  • PressedForTime
    Member
    Posted 9 years ago #

  • 123

    Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags