Jump to content
gsibert

Blog Feed Format

Recommended Posts

gsibert    0
gsibert

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
catrina    103
catrina

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


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
gsibert    0
gsibert

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
Rob    547
Rob

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.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
gsibert    0
gsibert

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
James B    436
James B

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

  • Like 1

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
gsibert    0
gsibert

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
James B    436
James B

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.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

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


×