• Hi,

    is it possible to make a sidebar for 1 page only.. so when you open the page you see different subjects then when you open it op your index page..
    something with if_page is …
    I don’t have much knoledge of php so maybe someone can help me?

    thnx

Viewing 2 replies - 1 through 2 (of 2 total)
  • By page do you mean Page (as in Write > Page), or just a general WordPress page?

    You could use the is_page() conditional tag with a parameter of the Page’s ID (is_page(10)) to test for it. is_single() works the same way, if you need this for a post. In an if/else statement you could then either alternate what is to be displayed on your sidebar, or include a different file for your sidebar.

    Thread Starter rjfalcons

    (@rjfalcons)

    A page you make (Write > page) I haven’t got the pages in my sidebar but in a nav on top of the page. So I make pages and add them manually to the navigation. So I make pages and decide wheter I’m going to add them as a menu link or else.

    this is the site: https://rjfalcon.com/wowclan

    I want to make in the section “members” different links to pages of the members in the sidebar.
    Or if that isn’t possible I want to make several posts in a page. so the post doesn’t shows on the index page but on the members page.

    Hope you can help me…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sidebar for 1 page’ is closed to new replies.