Support » Themes and Templates » Different template for second page of an article/post

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    You could test for paginated pages with this: http://codex.wordpress.org/Conditional_Tags#Testing_for_paginated_Pages

    Your theme uses the body_class so the class in your single page is:

    <body class="wordpress ltr en_US parent-theme y2012 m08 d13 h03 monday logged-out singular singular-fiction singular-fiction-13 shrunken-nav">

    and on a paged page it is:

    <body class="wordpress ltr en_US parent-theme y2012 m08 d13 h03 monday logged-out singular singular-fiction singular-fiction-13 paged paged-2 shrunken-nav">

    You could use it to style the paged pages different with the “.paged” class:

    .paged div.entry-content p:first-child:first-letter {
         color: #000000;
         float: none;
         font-size: 1em;
    
    }

    Ah, great, that’s so simple! What about switching the template entirely? Is that complicated?

    Moderator keesiemeijer

    (@keesiemeijer)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Different template for second page of an article/post’ is closed to new replies.