Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 02-20-2012, 10:47 AM
Member
Latest Blog:
None

 
Join Date: 01-24-12
Posts: 40
iTrader: 0 / 0%
Wordpress Coding problem - please help

Hi,

I have found this theme
http://fearlessflyer.com/2011/02/fre...theme-maximum/
which shows all posts in one container
and i dont like it. please tell me how to or what i need to do (edit, write) that this theme shows each post in separate containers ?


Thank you !!!!
 
Reply With Quote
  #2 (permalink)  
Old 02-20-2012, 12:31 PM
lordspace's Avatar
Contributing Member
 
Join Date: 05-30-06
Location: Canada
Posts: 913
iTrader: 0 / 0%
check the source code of the HTML page and then check the theme's files what file is responsible for post rendering. this could be page.php, single.php, loop.php etc.
 
Reply With Quote
  #3 (permalink)  
Old 02-20-2012, 11:31 PM
Member
Latest Blog:
None

 
Join Date: 01-24-12
Posts: 40
iTrader: 0 / 0%
ok. i will see this .
and what i need to change or input in this files ?

tnx
 
Reply With Quote
  #4 (permalink)  
Old 02-21-2012, 04:11 AM
Junior Member
 
Join Date: 02-19-12
Location: Canada
Posts: 13
iTrader: 0 / 0%
It looks to me like you'd have to add any kind of new container between <?php while(have_posts()):the_post();?> (on line 10 of index.php) and <?php endwhile;?> on line 26. That's the loop that displays each post, so you should be able to put whatever you want in there to separate them... even an <hr> after each one, for simplicity. Or you could make another div around each one with a border of some kind.
 
Reply With Quote
  #5 (permalink)  
Old 02-21-2012, 04:23 AM
Member
Latest Blog:
None

 
Join Date: 01-24-12
Posts: 40
iTrader: 0 / 0%
Quote:
Originally Posted by fishbowlstick View Post
It looks to me like you'd have to add any kind of new container between <?php while(have_posts()):the_post();?> (on line 10 of index.php) and <?php endwhile;?> on line 26. That's the loop that displays each post, so you should be able to put whatever you want in there to separate them... even an <hr> after each one, for simplicity. Or you could make another div around each one with a border of some kind.
tnx for reply.
how can i make another div around each one post ?

tnx
 
Reply With Quote
  #6 (permalink)  
Old 02-21-2012, 06:01 AM
Junior Member
 
Join Date: 02-19-12
Location: Canada
Posts: 13
iTrader: 0 / 0%
No problem! I just tested locally and the following works.

Put this in your index.php, just before <div class="post-title">:

Code:
<div class="individualpost">
Put this just before <?php endwhile;?>

Code:
</div>
Add this into your style.css:

Code:
.individualpost { border: 1px solid #CCC; margin: 10px; }
Then customize your margins, borders, etc in that CSS class. You can even do rounded corners if you like.

Last edited by HTMLBasicTutor; 02-21-2012 at 09:06 AM.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Coding Problem help.. tunedTECH Buy Web Services 3 02-06-2012 01:27 AM
Problem with html coding? tunedTECH Coding Forum 24 12-31-2011 04:30 PM
php coding problem, please help jj0 Coding Forum 3 03-30-2009 07:57 PM
Problem with Coding soultrader Coding Forum 32 11-15-2006 04:28 AM
Coding Problem URL redirect Chris1974 Coding Forum 5 04-04-2006 07:49 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:56 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2014 Escalate Media




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.