WordPress.org

Ready to get started?Download WordPress

Forums

Applying homepage style to every pg (17 posts)

  1. BrennanWoods
    Member
    Posted 7 years ago #

    I'm sure it's somewhere in this support forum but I've looked and can't seem to locate it...

    When a person clicks on a single post or another page I want the sidebars and everything else to be the same as the homepage. Is this something to be modified on style.php and/or single.php?

    My site is at

    http://www.bcollectin.com

  2. vkaryl
    Member
    Posted 7 years ago #

    What I usually do in a case like this is delete "single.php" if it's in the theme folder. That will have your posts displaying using index.php.

  3. BrennanWoods
    Member
    Posted 7 years ago #

    Will the same style appear when a user clicks not only another post, but another page?

  4. vkaryl
    Member
    Posted 7 years ago #

    I *think* so - I don't use pages much, and when I do, I usually template them separately and specifically. I think that if you don't set up a distinct page template, the default is used. Which (if you delete or don't have page.php) should be the index.php.

  5. BrennanWoods
    Member
    Posted 7 years ago #

    I deleted page.php and it definitely worked, however...there were comments on pages where comments just made no sense...like, if I had an About page...why would I have ppl comment on whether or not they liked the sites mission haha. Any idea where to change that...single.php?

  6. moshu
    Member
    Posted 7 years ago #

    IN that case restore the deleted files (single, page) and edit them: look into the index and copy from there the call for the sidebar.php...
    It should look like something "get_sidebar"

  7. vkaryl
    Member
    Posted 7 years ago #

    Thanks for getting back to him, moshu - I had some other stuff going on....

    And yes, that's the only other option at this point; I do that sometimes too, set up a "commentless.php" template.

  8. BrennanWoods
    Member
    Posted 7 years ago #

    Thanks! I'll give that a shot.

  9. vkaryl
    Member
    Posted 7 years ago #

    See this thread for a further explication:

    http://wordpress.org/support/topic/86792?replies=4

  10. BrennanWoods
    Member
    Posted 7 years ago #

    I'll check that thread out...I tried to put the getsidebar function in a bunch of places in both the pages and single.phps but can't seem to get it to work.

  11. BrennanWoods
    Member
    Posted 7 years ago #

    I'm still confused about this "commentless" template. Will this affect the posts comment on the single.php and index files?

  12. vkaryl
    Member
    Posted 7 years ago #

    No. The only time the commentless template works is if you select it as the page template specifically in the dropdown. The others will be just as normal.

  13. BrennanWoods
    Member
    Posted 7 years ago #

    OOOOOH, alright I'll go give that a try. Thx!

  14. BrennanWoods
    Member
    Posted 7 years ago #

    Page template = page parent?

  15. moshu
    Member
    Posted 7 years ago #

    No.
    Page template = template files in your theme directory; physical files like: page.php (the default), mypage.php, archives.php, fancypage.php etc.

    Page parent = when Pages are organized in a hierarchical structure, e.g. About = parent
    About the blog = its child
    About me = another child etc.

  16. moshu
    Member
    Posted 7 years ago #

    Oh, if you don't have at least 2 Page templates (i.e. page.php AND another one) you don't see the Template selection option - since there is nothing to choose from.

  17. vkaryl
    Member
    Posted 7 years ago #

    Oops - forgot to mention that, moshu! Thanks....

    [Note, please: once you make the "commentless" template and save it to your theme folder, you will have a second (at least) template which will activate the dropdown.]

Topic Closed

This topic has been closed to new replies.

About this Topic