StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have -- and this forum will be removed on July 1st, 2013.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 06-12-2009, 08:32 PM
CharlesClarkson's Avatar
CharlesClarkson CharlesClarkson is offline
Community Moderator
 
Join Date: Feb 2009
Location: Stephenville, TX, USA
Posts: 11,356
Default Re: Pages in Featured Category Section on homepage

Quote:
Originally Posted by macsters
They wouldn't change very often and I would like to change them manually.
I just reread this after pointing someone else to this thread. You can place anything you want into the homepage sections if you don't mind editing the code each time you want to change that entry.

Go into the source code for your home page. The source code is viewed from the browser. It is not the contents of home.php. You want to look at the structure of a post in the area you want to place the page.

Here's an example from the hpbottom section of the Lifestyle Demo:
Code:
													
								
				
                Colbie Caillat – Coco
				

This is an example of a WordPress post, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many posts as you like in order to share with your readers what exactly is on your mind.
This is an example of a WordPress post, you could edit this to put information about yourself...[Read more of this review]</p>					
				<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
Here it is again with the dynamic post information removed and %%page fields%% placed:
Code:
[img]%%image url%%[/img]
%%page title%%


%%page description%%...[Read more of this review]</p>
<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
In the hpbottom section in home.php add this to the top or bottom position with the fields replaced by appropriate values.
Code:
Replace these fields.
%%page url%%
%%image url%%
%%page title%%
%%page description%%

HTH,
__________________
Charles "Rubeus Hagrid" Clarkson
StudioPress on Facebook

I'm not really a smart person. I just play one on the Internet.

Please use the HTML or PHP tags for pasting code.
Please make your links click-able: this_is_annoying.com
http://this_is_not_annoying.com.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper category not showing up in new section on homepage cdg General Discussion 3 10-13-2009 08:12 PM
Linking "featured" section in homepage to other pages instea photonhunter General Discussion 9 08-04-2009 09:05 AM


All times are GMT -5. The time now is 01:50 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.