Forums

[resolved] calling more then one sidebars (3 posts)

  1. MorrisAddison
    Member
    Posted 2 years ago #

    Hello,
    im using the theme Pixel, and in it, it has a file called page_fullwidth.php.

    in page_fullwidth.php it does not call <?php get_sidebar(); ?> and thats ok, but i would like to have page_fullwidth.php call a different sidebar..

    i made one called <?php get_sidebar2(); ?> but i cant get mine to show up in page_fullwidth.php i can add <?php get_sidebar(); ?> and it shows up just fine.

    im new to wordpress, but i do know html/css and learning php now

    can someone please tell me how i can get my sidebar2 to show up?

    thanks for any help givin,
    ~Mo

  2. lgh529
    Member
    Posted 2 years ago #

    There is no such function as get_sidebar2(), you have to call get_sidebar with a name.

    For example, if I had a file in my theme called sidebar-special.php, then I would load that sidebar like this: get_sidebar("special");

    Do a search on that function in the docs and it will probably help

  3. MorrisAddison
    Member
    Posted 2 years ago #

    well now i feel dumb.... thank you for your help!

    ~Mo

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.