WordPress.org

Ready to get started?Download WordPress

Forums

Custom Single Post Template for Posts?? (3 posts)

  1. Syed Balkhi
    Member
    Posted 4 years ago #

    Hello,

    I am looking for a plugin that lets me associate multiple custom templates for posts.

    I know that you can associate one custom template to a single post, but I am looking to have something like this:

    http://www.mint.com/blog/trends/the-new-auto-industry-breakdown/

    http://www.mint.com/blog/trends/the-new-auto-industry-breakdown/?display=wide

    Any one have a clue how this is being done?

  2. plebe
    Member
    Posted 4 years ago #

    Same here. can't find info on a unique page template for a specific page in wordpress.

  3. andiszek
    Member
    Posted 4 years ago #

    one method that comes to mind right now would be to use the body_class function and make the changes directly in the CSS file, by adding the dynamic unique page-ID class generated.

    http://www.nathanrice.net/blog/wordpress-2-8-and-the-body_class-function/

    something like this:
    body.page-id-3 .YourDIV {width: XYZpx;}

Topic Closed

This topic has been closed to new replies.

About this Topic