• I have made a number of custom themes, but only for CMS. Now I have a CMS and a blog page (that’s supposed to display recent posts). Here’s what I put in the reading settings:
    Front page displays
    A static page
    Front page: home
    Posts page: journal

    I created a ‘home’ page and a ‘journal’ page. I can see them both in the browser, and everything is fine except that the sidebar is missing from the journal page.

    I was taught to put my custom theme stuff in page.php. Do I need to copy the code from page.php and put it in index.php? I checked blog_sidebar.php and it looked okay.

    A propos, how do I actually check which files are being used when I visit a particular page in the browser? I know how to use firebug for tweaking css. Maybe this is something firebug could tell me (if I knew where to look)?

    I read in the codex that I can’t put any text in the beginning of the ‘journal’ page. But I need to include an introductory paragraph at the top of that page. I don’t mind hard-coding it (in html) — what file would I put that in?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Do I need to copy the code from page.php and put it in index.php?

    Well it sounds like you need to add the call to the sidebar to index.php.

    how do I actually check which files are being used when I visit a particular page in the browser?

    See this Codex section

    what file would I put that in?

    index.php

    Thread Starter number cruncher

    (@number-cruncher)

    Thanks.

    What I mean is, is there some way to check what files are actually being loaded, in other words: if I do View Source, I see the whole html. WordPress pieced that together from several separate files. Which ones? I don’t want to speculate, I want to verify. What is actually happening?

    I suppose I could put a different debugging statement in each file in the theme folder, and then observe the results. But it would be nice to have a less tedious method.

    Regarding the other part of your answer. Should I just copy the contents of page.php into index.php?

    Thread Starter number cruncher

    (@number-cruncher)

    I’ve solved the immediate problem. The key was index.php. The sidebar line had been commented out, so I undid that, and the sidebar appeared.

    I hardcoded the page title and introductory paragraph.

    I still hope to learn how to trace through exactly which files are being used when visiting a particular page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘sidebar disappears on blog page’ is closed to new replies.