Jump to content
Sign in to follow this  
johnsojc

Different layouts for Loop Single Posts

Recommended Posts

johnsojc

Been trying to create my own unique child theme based on Pagelines to redesign my blog http://www.remixthevideo.com. I would like for the header part of the single post to be different from what I have on the index and archives. I am kind of at a loss at how to do this.. I was thinking creating a single.php for my child theme? Test site: http://www.musictweetlinks.com

Share this post


Link to post
Share on other sites
johnsojc

What I mean by header part is I would like the layout of the post title, date, author and comments to be different.

Share this post


Link to post
Share on other sites
Andrew

well you can always override the template.postloop.php in your child theme, then edit to your heart's content.

Share this post


Link to post
Share on other sites
catrina

It's possible to create a different header part by creating a single.php file. Do you already have an idea of how you want the header to look?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
johnsojc

Alright, I think I know what I need to do. Duplicate the

<div class="post-title-section fix">
and move the original below
<?php if(pagelines_show_excerpt( get_the_ID() )): // Post Excerpt ?>
and move the duplicate below
<?php  if(pagelines_show_content( get_the_ID() )): // Post and Page Content ?> 
and edit that. Must have been too tired to figure this out last night. Thanks! By the way, the comment count displays "1 Comments" and not "1 Comment" out of the box for Pagelines from the code below:
a rel="nofollow" class="comments-num" href="<?php the_permalink(); ?>#comments" title="<?php _e('View Comments', 'pagelines');?>"><span><?php comments_number(0, 1, '%'); ?></span> <?php _e('Comments','pagelines');?></a
I changed it to:
a rel="nofollow" class="comments-num" href="<?php the_permalink(); ?>#comments" title="<?php _e('View Comments', 'pagelines');?>"><?php comments_number('Comment', '1 Comment', '% Comments'); ?></a

To display it correctly.

Share this post


Link to post
Share on other sites
johnsojc

Just was thinking... If I would like to do full posts on the front page, changing the code above would produce the same results on all full posts including the front page and single posts. I would like to edit only the single post appearance..

Share this post


Link to post
Share on other sites
Andrew

Thanks Jess, marked best answer for you :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×