WordPress.org

Ready to get started?Download WordPress

Forums

Path to sidebar2 & sidebar3 (3 posts)

  1. tomhal
    Member
    Posted 8 years ago #

    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.

    ':)tom

  2. Class
    Member
    Posted 8 years ago #

    Maybe you can use <?php bloginfo('template_url'); ?> here?

  3. tomhal
    Member
    Posted 8 years ago #

    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!??!

    ':)tom

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags