Skip to:
Content
Pages
Categories
Search
Top
Bottom

Static blog page not working


  • alexbilbie
    Participant

    @alexbilbie

    Hi there,

    We’re running a child-themed Buddypress site at http://www.jiscpress.org. We’ve got a custom page set up for the home page which is using a template. I’ve set up another blank page called “Blog” and set that to be the blogs page in Settings > Reading.

    If I use the default theme then this Blog page will show the blog posts, however using my child theme it just loads the home.php template. I’ve duplicated the index.php file and turned it it into a template called “blogs” however despite setting the Blog page to use it it still loads the home.php template.

    I’ve tried to comparing my theme against the default theme (which I used as a starting point) however I can’t see anything that would not be causing it to work.

    Thanks for your help.

    Alex

Viewing 1 replies (of 1 total)
  • I have no way of testing the validity of this at the moment, but:

    Child Themes style.css

    The simplest Theme possible is a child theme which includes only a style.css file, plus any images. This is possible because it is a child of another theme which acts as its parent.

    To create such a Theme, you must specify a set of templates to inherit for use with the Theme by editing the Template: line in the style.css header comments. For example, if you wanted the Theme “Rose” to inherit the templates from another Theme called “test”, you would include Template: test in the comments at the beginning of Rose’s style.css. Now “test” is the parent Theme for “Rose”, which still consists only of a style.css file and the concomitant images, all located in the directory wp-content/themes/Rose. Additionally (as of WordPress 2.7), the child theme may contain template files, which can be selected in the admin panel as normal, and will override the parent’s template files where those possess the same name.

    From https://codex.wordpress.org/Theme_Development

Viewing 1 replies (of 1 total)
  • The topic ‘Static blog page not working’ is closed to new replies.
Skip to toolbar