Skip to:
Content
Pages
Categories
Search
Top
Bottom

Theme Files – Sub Page As Blog

  • @thorny23

    Member

    Hello there,

    Sorry to be a pain and I dare say this question has been answered somewhere but I am currently unable to find my answer under any of the search terms I have used.

    Basically the issue I am having is that I have installed a brand new wordpress and buddypress installation. I have created a new page called Blog (/blog) and created a new page for a homepage.

    Within the reading settings I have set the homepage to be a static page with the Blog pag as the News/blog posts page (forgive me I cannot remember the terminology it uses). Now all is working fine but I was simply wondering, what page/theme file I would edit should I wish to change the way that posts are displayed on the blog page.

    I have gone through each file to no avail and cannot find what loop or template file the /blog page is using. Any direction would be great. Would it be a case of using the regular Loop from wordpress in a page-blog.php or can I edit one of the files already within the default buddypress theme directories.

    I hope the above make sense.

Viewing 8 replies - 1 through 8 (of 8 total)
  • @hnla

    Participant

    This is a WP issue really when you set a static page and set the WP posts to display on another named page WP still uses the index.php and any loop parts required, so you should be able to simply edit those files.

    @thorny23

    Member

    Hi there hnla,

    So am i right in thinking if I edit the index.php file within Twenty Eleven theme these changes will replicate into the loop?

    I have tried editing the index.php within the b-press default theme directory but to no avail.

    Any further advise would be appreciated.

    Regards

    @mercime

    Participant

    @thorny23

    Member

    Thank you again for your response. I am well aware of how to create a Static Front Page, my problem comes when editing the theme for the /blog page.

    Would I need to create a file that takes a standard page template and incorporates a look called page-blog.php and if so would this be placed in the Buddypress Default themes folder?

    If the above is incorrect please could someone point me in the right direction, does the Buddypress theme sit over the default WordPress Twenty Eleven? So just to clarify, I am wanting to change the layout of the /blog page, I have tried editing most of the files within the Editor but it does not seem to replicate on the front end.

    You can see an example of what I am working with (this is a dev site as the main installation is for a work based innovation blog):

    http://area51.creativenerds.org/wordpress – Is running off the ‘HomePage’ page set within WordPress Reading Options

    http://area51.creativenerds.org/wordpress/blog – Is set in the reading options as the ‘Posts Page’ this is the page I wish to change the style/layout of and add things into the loop.

    Regards
    Sam

    @hnla

    Participant

    You should not be adding, modifying anything in the BP default themes folders , if you are editing any files ensure you are doing so with those files copied to a child theme folder – if you have a child theme folder then you will want to look at bp-default and observe the files in there specifically ‘index.php’ this file contains the wp post loop and needs to be in your child theme for editing purposes, more than that is explained in the link mercime provided and should explain the template hierarchy in a little more detail.

    @hnla

    Participant

    does the Buddypress theme sit over the default WordPress Twenty Eleven?

    No it doesn’t BP is it’s own unique set of files.

    @thorny23

    Member

    Thanks again,

    With regards to your response about modifying the files in the BP-Default, surely even if I were to change these then the changes would still show across the site anyway, no?

    Im just confused as to why any changes I have made to the default theme haven’t shown across the site at all?

    Regards

    @hnla

    Participant

    Yes they ought to – not much more I can add to that really :) I would guess that if you are running a child theme something in your file naming / wp settings is overriding things .

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Theme Files – Sub Page As Blog’ is closed to new replies.
Skip to toolbar