• Hello All, Merry X-Mas

    First post so sorry if its in wrong place.

    I’m in the process of working along building a new site.
    I understand how to make a new template, for a particular page.
    I have done it and applied it to home page https://www.overunder25tips.com. I’ll do some more work there but its functional.

    I made a child for twentysixteen, and made some css changes.
    All fine and working. The style being applied to the new classes I introduced in the template.

    I am trying to customize my posts page. I have read the stuff on the different ways in which it can be done. The category slug is over25 and the page id is 64. I just don’t understand which php file I should be using as my starting point, when I create either ?????-over25.php (slug) or ?????-64.php

    I have created two categories for posts. One called over25 and the other general. I have made three test posts, putting 2 into over25 and 1 into general. I would expect to be able to override the template/style with ????-over25.php only for category over25, while general would be unchanged.

    Thanks for any assistance,

    Neil.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Neil,

    Did you have any luck with this? I have a similar question – I would like to able to customize my twenty sixteen posts, or more specifically, the format of them. Each post comes with, IMO, a horrible black separator that I would like to get rid of.

    Does anyone know how to modify the layout of a post?

    Thanks,

    Andy

    Thread Starter neilovan

    (@neilovan)

    Hello Andy,

    You first need to make a child template for twentysixteen
    so that sits here wp-content/themes/twentysixteen-child

    there is plenty of doc on how to do this

    and you land up with that directory and a style.css and functions.php
    file in your new directory.

    Then copy the file archive from twentysixteen in twentysixteen-child and
    make a directory called template-parts in twentysixteen-child. Copy content.php into twenettysixteen-child/template-parts from twentysixteen/template-parts.

    The archive is your multiple posts listing page

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘customize posts page by category using twentysixteen’ is closed to new replies.