Support » Fixing WordPress » best place to stick menu

  • emaarkhan

    (@emaarkhan)


    Hi all,
    I am working on a theme, i created another sidebar and i was wondering where to place it. for now i placed the dynamic_sidebar code in index.php but when i click on other pages. it doesn’t show.
    the following line in place in index.

    <?php dynamic_sidebar(‘my-sidebar’); ?>

Viewing 7 replies - 1 through 7 (of 7 total)
  • esmi

    (@esmi)

    Forum Moderator

    And is your sidebar file called sidebar-my-sidebar.php?

    emaarkhan

    (@emaarkhan)

    yes

    esmi

    (@esmi)

    Forum Moderator

    If you want this new sidebar to appear on all pages, have you tried adding <?php dynamic_sidebar('my-sidebar'); ?> to header.php or footer.php?

    emaarkhan

    (@emaarkhan)

    I did but the result isn’t like before. for now that line rest beofre get_footer

    esmi

    (@esmi)

    Forum Moderator

    Then you’ll need to add the same line to all of the relevant template files in your theme.

    emaarkhan

    (@emaarkhan)

    when we see pages, page.php is viewed right?

    esmi

    (@esmi)

    Forum Moderator

    Yes.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘best place to stick menu’ is closed to new replies.