Website Babble Webmaster Forums  

  #1 (permalink)  
Old 06-14-2008, 07:45 AM
Junior Babbler
 
Join Date: May 2008
Posts: 14
nursebreakroom has a few positive reputation points
Default Need Html Code for Content

I accidently erased my content code that allows my written content to be seen. Does anyone have any suggestions on how to bring it back? I am using the Page Template and this is what it looks like:

<?php include "header.php"; ?>
<div id="container">
<div id="topcontent"></div>
<div id="singlecontent">
<div class="singlepost">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>

*****this is where I believe I accidently deleted a content code******

<div id="content"> </div>
<?php endwhile; endif; ?>
</div>
<div id="bottomcontent"> </div>
</div>
</div>
<?php include('footer.php'); ?>
<?php comments_template();?>

ANY suggestions welcome!! Thanks a million!!
Reply With Quote
  #2 (permalink)  
Old 06-14-2008, 11:12 AM
lisa's Avatar
Administrator
 
Join Date: Apr 2007
Location: Dallas, TX
Posts: 4,284
lisa is the Admin and cannot be rated.
Default

Can you post a link to your site? I'm not sure I understand.
__________________
Don't put the cart before the horse.
Plan your website, then create it.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 Create a Website | 2 Create a Website Blog
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Recent Blog Posts...

Lisa's Favorite Web Tools & Websites
Stop The SEO Madness! [Video]
My Thoughts on Lazy People

Reply With Quote
  #3 (permalink)  
Old 06-14-2008, 11:48 AM
Junior Babbler
 
Join Date: May 2008
Posts: 14
nursebreakroom has a few positive reputation points
Default Site

nursebreakroom.com is my address. I used to be able to visualize my written content, but it is gone now. I know I erased a line in my page template.
Reply With Quote
  #4 (permalink)  
Old 06-14-2008, 12:42 PM
ssmorgan's Avatar
Super Moderator
 
Join Date: Jun 2007
Location: Tucson, AZ
Posts: 1,129
ssmorgan is a reputable WB member and has over 100 reputation pointsssmorgan is a reputable WB member and has over 100 reputation points
Default

Do you remember where you originally obtained the template for your blog?

I tried to find it using the links at the footer, but couldn't. If you find the original place where you downloaded it, you may be able to compare the original template versus what you have and add whatever was deleted.

Sherif
__________________
Tough Time Finding or Researching A Niche? Affiliate Niche Club will help!
Reply With Quote
  #5 (permalink)  
Old 06-14-2008, 07:22 PM
James's Avatar
Super Moderator
 
Join Date: Dec 2007
Posts: 928
James has an outstanding reputation at WB (over 500 points)James has an outstanding reputation at WB (over 500 points)James has an outstanding reputation at WB (over 500 points)James has an outstanding reputation at WB (over 500 points)James has an outstanding reputation at WB (over 500 points)James has an outstanding reputation at WB (over 500 points)James has an outstanding reputation at WB (over 500 points)
Default A couple of suggestions—this might help

Sherif's suggestion should be followed first. If you can get a copy of the template and look at the code that would be one of the best ways. (Of course, I don't need to tell you the #1 best way would be to go back to the backup copy you don't have. I think all of us have regrets related to not having backups we didn't expect to need.)

As I look over the code from checking your site, it looks to me like there may now be some problems with the div structure. It is hard to tell, however.

Since it isn't too long, I would start from the beginning and get the page structured with indents, especially as far as the div's are concerned, so that they line up and you can be sure what level you are on as you look over the content. (Meaning: each div in indented one more that than the previous one, and back out the same way, so you can always tell whether all are opened and closed correctly).

One thing I do see is that you have this piece of code:
<div id="content"> </div>
right after where you think you may have deleted something.

It looks like it should be:
<div id="content">
[CONTENT HERE]
</div>
with your missing content located where indicated. I'm not sure of your template structure but if Wordpress (I don't use so someone else needs to help you out here) is using php includes as it appears to put this stuff in, you could have just deleted a line that looks something like:
include('../includes/contentfile.php');
which is an external file holding your content. If you can point to it you will find whatever you deleted. If something like this is true, in other words, you didn't really delete the content just the include instruction.

There is one small thing that probably shouldn't have any affect, but I wouldn't guarantee anything about code. You have in the middle of your page a line that reads:
<content>
This is the form of an html tag. A as far as I know there is no such code. But this would open it and there is no closing </content> tag on the page. This line may have been intended to be a comment but if so it is incorrect format for that and who knows how a browser would read it.
__________________
Good Success!
James
Douglas County Master Gardeners
"We don't always get what we want, but we always get what we expect."
Reply With Quote
  #6 (permalink)  
Old 06-14-2008, 09:18 PM
Junior Babbler
 
Join Date: May 2008
Posts: 14
nursebreakroom has a few positive reputation points
Default Appreciate

I really appreciate all of your suggestions.... I'm still working on it..
Reply With Quote
  #7 (permalink)  
Old 06-14-2008, 09:27 PM
Junior Babbler
 
Join Date: May 2008
Posts: 14
nursebreakroom has a few positive reputation points
Default You all ROCK!!

Thanks for all the info!
I was able to use my noggin a little - got it back!!!
Reply With Quote
Reply

Bookmarks

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 On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 10:48 PM.



WB Sponsors

Profit Lance Review

Houston Web Design

Search Engine Optimization

flash chat



 Subscribe to the Website Babble Feeds

2 Create a Website Homepage | 2 Create a Website Blog


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0