Jump to content
Sign in to follow this  
dmillbank

Sub-title and comments

Recommended Posts

dmillbank

I want to create my main page with a list of posts using H1 title, and a smaller 'sub' title underneath it, an H2. To the left of it I was thinking of putting the amount of comments, but just something simple like this I find extremely difficult using Platform Pro. I'm not getting the concept and I'm hoping somebody can help me in the right direction. This is how far I've come... http://www.millbank.org Thanks in advance.

Share this post


Link to post
Share on other sites
timlinson
but just something simple like this I find extremely difficult using Platform Pro
How are you used to doing it? If you can't find the file to tweak, it's called template.postloop.php in this theme.

Share this post


Link to post
Share on other sites
dmillbank

Thanks Tim. I am used to edit the wordpress loop in Textmate but stuck to the childtheme (PlatformBase) so that I could update Wordpress properly without messing things up. That's why I didn't find it. I appreciate your help, this is definitely a step in the right direction.

Share this post


Link to post
Share on other sites
Kate

Hey Daniel, You can copy template.postloop.php to your base theme, and edit it from there.

Share this post


Link to post
Share on other sites
dmillbank

Thank you Kate. I appreciate the tip.

Share this post


Link to post
Share on other sites
dmillbank

Thanks for asking Catrina. The dynamic nature Platform Pro is what I'm sure is causing the confusion for many people. A small edit to template.postloop.php can affect numerous pages: like in my original problem where I needed to add a subtitle to the heading of a post. I was able to find a WP Subtitle plugin, so I changed the template.postloop.php in one spot, but now it affects both my main (front) page AND the post page as well. There must be a way to separate the two like in a regular wordpress installation where you have single.php, post.php, page.php etc. so that you can edit the design of those pages separately. I wanted the subtitle to appear on the main page, but not on the page that shows an individual post. I just haven't completely grabbed the concept of how Platform Pro's infrastructure (in lack of a better word) is set up and I can't find anything in the manual that would help explain it.

Share this post


Link to post
Share on other sites
dmillbank

After continuing to work on it I was able to make a conditional tag in the template.postloop.php file.

<?php
	if ( is_home() ) {
	   pagelines_get_post_metabar();
	} else {
} ?>

This allowed the post meta data section to show up on main page, but not on the individual post pages.

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  

×