Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • That white line? It’s just the right-hand-side border for the element containing the “Contact” link. Since these links are generated through the WP function wp_list_pages(), you will probably have to do some hardcoding in the WordPress function files to fix this.

    Maybe try adding a unique ID to each link and then applying a style to the “Contact” link to remove the right border?

    Sounds interesting, what kind of work do you have in mind?

    Edit the source of the page.php file in your theme.

    Forum: Fixing WordPress
    In reply to: wp_list_cat woes

    I’d place my bets on Sidebar Widgets. Is that plugin disabled? If not, disable it and see what happens.

    Most likely your links have been reset due to the upgrading. Login to your admin section and go to Links » Link Categories. Delete the Blogroll category and the Blogroll section should disappear from the sidebar. Hopefully.

    The Loop is pretty difficult to explain to someone who isn’t familiar with the way WordPress works. I think the best thing for you to do is to try and read up on The Loop and it’s various functions in the WordPress Codex. Here’s the link:

    https://codex.www.ads-software.com/The_Loop

    That’s not hard to fix, either. You can edit the following lines in /wp-content/themes/header.php:


    <?php
    // Checks to see whether it needs a sidebar or not
    if ( !$withcomments && !is_single() ) {
    ?>
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.jpg") repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    <?php } ?>

    Just change it to read:


    <?php
    // Checks to see whether it needs a sidebar or not
    /* if ( !$withcomments && !is_single() ) { */
    ?>
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.jpg") repeat-y top; border: none; }
    <?php /* } else { // No sidebar */ ?>
    /*
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    */
    <?php /* } */ ?>

    But I guess moshu has a point. If you’re not comfortable with all the editing, you may be better off looking for an all-sidebar version.

    The WordPress default theme is designed such that the sidebar in not shown on single post pages. This is pretty easy to fix, though.

    Open up /wp-content/themes/single.php in a text editor like Notepad. First, look for the line:


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

    Change this to:


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

    Next, find the line right at the end of the file that reads:


    <?php get_footer(); ?>

    Add one line before this, so that it now reads:


    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    That should do the trick. Just save the changes and re-upload the file.

    Okay, it seems your #page div is stopping short halfway along the page. I’m sure there’s a proper way to fix this, but if you want to avoid the hard work, there’s a quick and dirty solution that’s equally effective.

    Near the end of your footer.php file, you’ll find the line in which both your #navbar and #page divs are closed. It looks like this:


    </div></div>

    Change this to:


    </div><div style="clear: both; width: 780px; height: 1px;"></div></div>

    That should solve your problem. The only thing (if it bothers you for some strange reason) is that there’ll be an extra pixel added to the bottom of your page. Don’t worry, it’s entirely unnoticeable.

    Hope this helps!

    Try /wp-content/themes/k2/theloop.php

    See the topic on this in the WordPress Support forums.

    I’m sorry, but I think I must have misunderstood what you wanted. When you said “useless space”, I thought you meant the grey area at the top of the page. I just checked your blog and the grey area is entirely gone. The white background of the page extends all the way to the top now. Isn’t that what you were asking for?

    Okay, the WordPress default theme comes configured to show the “Links” and “Meta” section only on the front page. You’re going to have to do a bit of editing in the template files to fix this.

    First, open up /wp-content/themes/default/sidebar.php in a text editor like Notepad. Then look for the lines:


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

    Change this to:


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

    Save the changes and re-upload the file. That should fix your problem. In case you don’t know the basics of PHP, what I did there is simply comment out the code that makes the “Links” and “Meta” section only load on the front page. The reason I didn’t ask you to straight out delete it is so that if you ever need to restore it, you can simply undo the changes shown above.

    Hope this helps!

    N.B.: [...] just means that there’s a bunch of code between the first line I showed and the last line.

    It would help if you could please post a few more details about your site.

    Could you tell me:

    1. The URL
    2. The theme you are using
    3. The location of your theme files e.g. /wp-content/themes/default/

    I’m suspecting that your problem has something to do with your theme’s template files, but I have to check to be sure. Thanks!

    The page layout and nomenclature is slightly different in the default theme. The equivalent of #container in the default theme is #page. What you have to do is skip down to the /* Begin Structure */ section in the style sheet and find the style definition for #page. It should read:


    #page {
    [...]
    margin: 20px auto;
    [...]
    }

    Change this to:


    #page {
    [...]
    margin: 0 auto;
    [...]
    }

    It should work this time.

Viewing 15 replies - 1 through 15 (of 16 total)