WordPress.org

Ready to get started?Download WordPress

Forums

Different template for second page of an article/post (4 posts)

  1. cindango
    Member
    Posted 1 year ago #

    Hello, new here. Can't seem to find this issue addressed anywhere.

    I'm working on an online editorial site that will often feature long, multi-page stories.

    Example: http://americanreader.org/fiction/semicolons-so-tricky-second-maybe-third-line/

    My question is:

    How can you style the second page of a story differently? For example, if I want to reduce the size of the image, remove the drop cap, include other meta data, etc.

    Anyone have any ideas? Thanks so much in advance!

    Cindy

  2. keesiemeijer
    moderator
    Posted 1 year ago #

    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;
    
    }
  3. cindango
    Member
    Posted 1 year ago #

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

  4. keesiemeijer
    moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic