Forum Replies Created

Viewing 14 replies - 16 through 29 (of 29 total)
  • Well, allpedal, your site still has alignment issues in Win FF1.0.4, and IE6.0.
    What changes did you make to the original Scattered theme? Is the widecolumn declaration the same as in the original, with the same padding, width and margin settings? Can’t think of what else changes the width of the posts.

    Thread Starter neetij

    (@neetij)

    Update:
    Fixed the problem, (though it doesn’t address page load delay). I realised I didn’t have ‘Advanced Controls’ checked under ‘Options > Writing’.
    Case closed (sort of), I presume.

    Are you saying that even after setting query_posts for each rewound loop, the next/prev navigation breaks?

    kay9, I think that is also important to consider once overall width is changed, but it isn’t the way to expand the overall template’s width. If kdavison007 wants everything to fit, the header should be 740px in width and 198px in height.
    They are different as #headerimg is simply width of image used, and it should cut off any image larger than 740px.
    The #header is wider because it includes a margin totalling to 2px.
    758 + 2 = 760 = width of #page.
    740 + 18 = 758 = width of #header.
    Thats how the default theme has that nice border around the header image.

    I think this is how it works. Please correct me if I’m wrong.

    I haven’t used coldforged’s plugin (thanks for your great work on the others though ?? on a couple of my themes, but I’ve achieved a similar effect of controlling the categories displayed in an area. I implement it using rewind_post, divs, and repeating The Loop if needed.
    As a novice at PHP/WP, I think hard part (a wee bit harder than a table free template) would be setting the queries to give you only the last/last five posts for some categories. I’m sure that can be done by passing values to query_post (I’ve done it with first 10).

    Please provide a link to the page you’re discussing.

    You’ll find the width specification in the Kubric theme’s stylesheet file.
    By default, I think the width is 760px under #page declaration. You can find this after the /* begin structure */ comment.

    If you don’t want to use my-hacks, you can use code like below in your index.php:
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php if ( !in_category('12') { ?>
    // the Loop code
    `<?php } ?>

    I don’t know if there is a function that works like the one you mention – someone with more experience may be able to help, however you can check if a function in the plugin exists, thus validating its activation.

    Lets say I want to check if Brian’s Latest Comments plugin is activated, and if it is I want to display the latest comments.

    <?php if (function_exists('blc_latest_comments') { >
    <?php blc_latest_comments(); ?>
    <?php } ?>

    Thread Starter neetij

    (@neetij)

    Kafkaesqui, that did the trick. Thanks.

    Put the code in the index.php file (Main Template). I think ifelse’s code version is correct if you want to exclude posts that are in all three categories. Using ‘or’ (||) it will exclude posts that fall in any one of the categories.

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    \ your if else code
    \ mine: <?php if (is_home() && in_category('27') ) { ?>

    I’m not familiar with the gespaa theme, but it should be after you’ve begun the while loop.

    I don’t know for sure, but I think the in_category function only accepts one category as argument.

    So, your code could be:
    <?php if ( !in_category('3') || !in_category('4') || !in_category('5') { ?>
    //rest of code
    <?php } ?>

    Then further on, in another area you would have code like this:
    <?php rewind_posts(); ?>
    <?php query_posts('category_name=asides&showposts=10'); ?>
    <?php while (have_posts()) : the_post(); ?>
    \rest of code
    <?php endwhile;?>

    I have a similar setup (only one category) in the theme I’m working on – two examples. I don’t want my ‘Asides’ category posts to show as a post on main pages, but I want it visible in archive pages.

    (I’m not terrible experienced with php or wordpress code, so there’s my disclaimer. ??

    Thread Starter neetij

    (@neetij)

    Thanks for the quick reply incognito.

    I specified a width for the sidebar & the list doesn’t indent. ??

    It works, but there is a drawback to this fix – for smaller window sizes (say width < 700), it doesn’t degrade well in IE. The sidebar moves below (and still somewhat to the right of) the content column. It may be acceptable to an extent, but I guess I’m looking for a fluid layout which degrades well in IE6/win, FF1.0. I’m still trying to figure the margin/padding to work…it doesn’t seem likely, and I’ll try float right on another instance of the theme.

    Thanks.

    neetij

    (@neetij)

    Woohoo!! ??
    Still wish I could make time to take BART out tomorrow.

Viewing 14 replies - 16 through 29 (of 29 total)