• 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)

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

    Thread Starter emaarkhan

    (@emaarkhan)

    yes

    esmi

    (@esmi)

    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?

    Thread Starter emaarkhan

    (@emaarkhan)

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

    esmi

    (@esmi)

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

    Thread Starter emaarkhan

    (@emaarkhan)

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

    esmi

    (@esmi)

    Yes.

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