Support » Fixing WordPress » Path to sidebar2 & sidebar3

  • Hi!
    I’m using WP 1.5.2 version. Everything I need is inside my Themes/blix/ directory. But I have installed a plugin that puts itself in the root directory of WP. When I now try to include sidebar2.php and sidebar3.php in the file in the rootdirectory it doesn’t find my sidebar2 and sidebar3.
    (It does locate mye sidebar.php – though I think this is predefines somewhere else)

    The path to my sidebars is /wp-content/themes/blix/sidebar2.php

    How do I get this line of code [see below] inside the file in root directory to point to the right place?

    <?php include ('sidebar2.php'); ?>

    I’m no php expert so pardon me for boring ya with such a simple question.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Maybe you can use <?php bloginfo('template_url'); ?> here?

    I tried but it didn’t do anything but throw new errors :”..failed to open stream: No such file or directory…”

    I suspect that php get_sidebar3() could work, but I don’t know where or how I can define sidebar3 as a function?

    php get_subpage works fine, but my two other selfmade sidebars (sidebar2 & sidebar3) isn’t defined I think!??!


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Path to sidebar2 & sidebar3’ is closed to new replies.