• Resolved Gymshoes

    (@gymshoes)


    I installed the Dark Maple theme in a test directory, added some posts, pages, sub-pages, categories etc and while looking everything over I found a bug in the nav.

    Everything displays perfectly EXCEPT when I click on the title of a post to see the full-page version. There’s no sidebar. I checked the single.php file and found the line calling the sidebar. It has “//” within it.

    Removing the // will cause the sidebar to appear, but BADLY. The bg image doesn’t appear, so the text is basically white on white…and it’s not in the right place on the page. The menu is at the bottom of the page. And, as I said, basically invisible without the contrasting background image.

    Why doesn’t the sidebar image bgle.gif display on the perma link pages? Why is the menu all the way at the bottom of the page? How do I correct these problems?

    This is ONLY on the permalink pages. Everything displays perfectly on all categories, pages, sub pages, subcategories, homepage, etc. The problem seems to be confined to the single.php file.

Viewing 12 replies - 1 through 12 (of 12 total)
  • That’s not a glitch, that’s by design. Quite a few themes use single page templates that don’t call the sidebar (including the WP default). The thinking is that you don’t necessarily need all that on the single post page.

    That being said – the easy way to keep the sidebar there is to remove the single.php page from your server altogether. This will force WP to serve the single post with index.php, thus keeping the sidebar. You’ll want to check what you’re losing though.

    Thread Starter Gymshoes

    (@gymshoes)

    Thanks! I tried it and it seems to work OK without single.php.

    As for whether this is a good design…if someone is viewing a single page of my blog it’s usually because they’ve surfed in from a search engine. I want them to browse my website; the chances of them exploring the site are greatly reduced if there’s no nav on the page where they entered the site. ??

    So, there’s a definite downside to this type of design. I’ll know to look out for it in the future when evaluating themes. Thanks again!

    What would be the comparable file in Kubrick v1.5? I’d like to get that happening, too.

    MisterTut, you mean like I have on mine?

    https://vindictivebastard.net/test101/shitty-test-post.htm

    spencerp

    Getting the whole sidebar to show I mean..on all pages.. lol!

    Yes indeedy, that’s what I mean. Which file did you remove?

    I didn’t remove any files…you just remove a code or two in the sidebar.php file. Let me get it once..brb..

    spencerp

    Well, in the sidebar.php file, remove these codes:


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

    This code <?php } ?> near end of the codes…

    <?php wp_meta(); ?>
    </ul>
    </li>
    <?php } ?>

    </ul>
    </div>

    Remove this line!!

    <?php } ?>

    ALSO!! Add this code to your SINGLE.PHP file and other files like… archives.php, archive.php, links.php, page.php, search.php.

    <?php get_sidebar(); ?>

    But add that ABOVE this:
    <?php get_footer(); ?>

    So it’s like this:
    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    You also might want to make sure on all of that..and play around with the overall layout. Instead of using
    <div id="content" class="widecolumn">

    I used: <div id="content" class="narrowcolumn">
    on my Test101 blog…

    spencerp

    That will have the sidebar display on all pages.. =) I know it seems extensive, but really it’s not.. =) I plan on releasing a copy of the “fixed” Kubrick here soon..!! =)

    spencerp

    I cannot possibly thank you enough! Works like a charm!

    eatman

    (@eatman)

    Thanks Specerp, but my sider is in the bottom of page, why?
    https://www.videonlineblog.it/2006/02/02/hello-world/

    Best regards, thanks

    spencerp

    (@spencerp)

    eatman, go through the errors here:
    https://validator.w3.org/check?uri=http%3A%2F%2Fwww.videonlineblog.it%2F2006%2F02%2F02%2Fhello-world%2F

    Check your <divs>, easiest way is to view the source of that page, then choose EDIT (up top of screen) => GO TO LINE => 46

    Example: Line 46 for error #9. Then within your Control Panel for blog…go to Presentations => Themes => Theme Editor and click on the header.php file and or footer.php file and make sure the <divs> and <body> tags are right and such.

    Some where either you’re missing an end </div> or </body> tag perhaps or something is just missing or double added perhaps..

    spencerp

    spencerp

    (@spencerp)

    If you’d like, I can zip up all of my files I have there, images including and give a link for download. =) It’s already pre-fixed of those problems and stuff.

    All you’d have to do is, unzip it and upload all the php files and if you’d like, even the images. =) But you don’t need the images if you don’t want them. Up to you eatman. =)

    https://www.vindictivebastard.net/FixedFilesForKubrick.rar

    spencerp

    Of course when or if you’d upload the images, you just wouldn’t have to upload the header image, since you have your’s already.. =)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Sidebar glitch: Dark Maple theme’ is closed to new replies.