Archived

This topic is now archived and is closed to further replies.

  • 0

Blog Feed Format

Question

Posted · Report post

Howdy.

I'm trying to determine the best way to format a blog feed or if it is even worth attempting. I know there are a number of options for formatting but none of them achieve the goal fully. So, I could really use a tip to get me going in the right direction. In a non-pagelines theme I would just code the php file for the layout I want. Pointers welcome and mock of what I'm trying to achieve attached.

post-12137-0-00551800-1353090700_thumb.j

Share this post


Link to post
Share on other sites

8 answers to this question

Posted · Report post

The best way would be to use the blog layout mode instead of magazine layout mode and Custom CSS to re-position the elements. You can also use the base theme to make changes to the blog post loop file: http://www.pagelines.com/wiki/How_to_Use_the_Base_Theme

Share this post


Link to post
Share on other sites

Posted · Report post

And where might the post loop file be? I looked in sections and the content of section.php in the folder postloop is rather anemic.

Share this post


Link to post
Share on other sites

Posted · Report post

Perhaps here: class.posts.php?

Share this post


Link to post
Share on other sites

Posted · Report post

You'd not want to edit the core files as it would be overwritten with the next update.

How exactly did you want to format this blog format? There may be easier, alternative ways.

Share this post


Link to post
Share on other sites

Posted · Report post

I had attached a mock on my first post. Here it is again.

post-12137-0-00551800-1353090700_thumb.j

Share this post


Link to post
Share on other sites

Posted · Report post

You'd need to use a hook/filter in order to edit the layout in the way you want. If you have/know the php you want to include then you'll be able to put this into practice using the base theme or the customize plugin.

Some links for reference

A list of the Pagelines hooks - http://api.pagelines.com/hooks

An introduction to hooks inside wordpress - http://www.nathanrice.net/blog/an-introduction-to-wordpress-action-hooks/

How to use the base theme - http://www.pagelines.com/wiki/How_to_Use_the_Base_Theme

How to use the customize plugin - http://www.pagelines.com/wiki/How_to_Use_the_PageLines_Customize_Plugin

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

OK, I've dug, hacked and am almost there... Soon to be an apprentice hooker/filterer...

Can anyone tell me how to properly override the following code? Line 322 of classes.posts.php

From:


$post_header = sprintf( '<section class="%s">%s<section class="bd post-header fix" >%s %s</section></section>',$classes,[color=#ff0000] $thumb, $title, [/color]$excerpt );

To (placing title before thumb):

$post_header = sprintf( '<section class="%s">%s<section class="bd post-header fix" >%s %s</section></section>',$classes,[color=#ff0000] $title, $thumb,[/color] $excerpt );

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there, there's no developer online at the moment for me to check this for you, but the code looks the same you've just swapped the order of how its being called.

I would say copy your code in the functions php and paste it into a blank text file/email so you have a copy.

Try the new code, if it throws an error jump back into your hosting account via ftp and paste it back to how it was using the content of the text file. Let us know if that works or if you need further assistance.

Share this post


Link to post
Share on other sites