I fucked up my theme! HELP!

Bostoncab

Elite Member
Joined
Dec 31, 2009
Messages
2,256
Reaction score
514
I was fucking around with the main index template and I went and fucked my whole theme up! Can someone help me please? How do I get this shit back to normal? It aint working! I know one of you can just copy and paste this code making the proper corrections so I can just paste it back into the editor. PLEASE HELP!


Code:
<?php
/**
 * @package WordPress
 * @subpackage Classic_Theme
 */
?>

<html>

<head>
<meta http-equiv="Content-Language" content="English">
<meta http-equiv="EXPIRES" content>
<meta http-equiv="CHARSET" content="ISO-8859-1">
<meta http-equiv="VW96.OBJECT TYPE" content="Homepage">
<meta name="TITLE" content="Independent Cab Boston | Boston Cab Independent | Independent Taxi Boston | Boston Taxi Independent | I.T.O.A.- Home">
<meta name="DESCRIPTION" content="About Independent Cab of Boston.Thank you for your interest in Independent  Cab of Boston. Independent  Cab of Independent  is the largest taxi-cab fleet in greater Boston, providing twenty-four hour service. All of our taxi-cabs are late model, well maintained and are manned with professional, efficient drivers who are ready to service your every transportation need. We provide five star service Independent  Cab of Independent  offers handicapped accessible vehicle transportation including wheelchair accessible vans. We also have time-scheduled service for those patients of the City's hospitals and medical centers who require such service. We offer voucher account billing services for those medical facilities that may require a monthly or weekly billing. Independent  offers 24-hour transport service to Logan International Airport. For your convenience, you may schedule a transport to Logan 24 hours in advance. Just call our radio room at 617-268-1313 and one of our operators will assist you. Independent  offers same day, expedited delivery service for your time sensitive packages and envelopes. Call our general manager at 617-268-1313 to obtain custom delivery rates.Uniquely, unlike other taxi-cab companies, Independent  Cab of Independent  provides "call-out" service for all taxi customers. This will enable you to stay indoors during inclement weather, and be called out upon the taxi's arrival.Thank you for choosing Independent  Cab of Boston. 

We have received your information, and a representative will contact you promptly.

Please take the time to browse the rest of our web site.

Independent  Cab

The largest taxi-cab fleet in Boston.">
<meta name="KEYWORDS" content="boston cab, taxi, Boston, city, Independent  Cab, Town Taxi, Independent  Cab, Allston Brighton Taxi, City Cab, transportation, massachusetts, local, package, delivery, service, airport, logan, massport, logan express, port, wheelchair, 24 hours, limo, medallion, call, downtown, seeport, hotels, town, advertisment, account, vouchers, trips, courier, motel, long distans, restaurant, short trips, cafe, north end, south boston, south end, dorchester, roxbury, dedhem, copley, back bay, south station, north, station, ambassador, cambridge, checker, itoa, yellow, area, red cab" >
<meta name="OWNER" content="[email protected]">
<meta name="AUTHOR" content=">
<meta name="RATING" content="General">
<meta name="ROBOTS" content="index,follow">
<meta name="REVISIT-AFTER" content=" 1 weeks">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">

<meta name="ProgId" content="FrontPage.Editor.Document">
<TITLE>http://itoataxicab.com <TITLE>
</head>



<SCRIPT language="JavaScript">

<!--  if (document.images)
   {
     pic1on= new Image(100,25);
     pic1on.src="http://itoataxicab.com/images/homeover.jpg";  
     pic2on= new Image(100,25);
     pic2on.src="http://itoataxicab.com/images/ordercabover.jpg"; 
     pic3on= new Image(100,25);
     pic3on.src="http://itoataxicab.com/images/cabsavailableover.jpg";  
     pic4on= new Image(100,25);
     pic4on.src="http://itoataxicab.com/images/fareinfoover.jpg";
     pic5on= new Image(100,25);
     pic5on.src="http://itoataxicab.com/images/corpchargeover.jpg";
     pic6on= new Image(100,25);
     pic6on.src="http://itoataxicab.com/images/linksover.jpg";
     pic7on= new Image(100,25);
     pic7on.src="http://itoataxicab.com/images/historyover.jpg";
     pic8on= new Image(100,25);
     pic8on.src="http://itoataxicab.com/images/contactusover.jpg";
     
     
     pic1off= new Image(100,25);
     pic1off.src="http://itoataxicab.com/images/home.jpg";
     pic2off= new Image(100,25);
     pic2off.src="http://itoataxicab.com/images/ordercab.jpg"; 
     pic3off= new Image(100,25);
     pic3off.src="http://itoataxicab.com/images/cabsavailable.jpg";
     pic4off= new Image(100,25);
     pic4off.src="http://itoataxicab.com/images/fareinfo.jpg"
     pic5off= new Image(100,25);
     pic5off.src="http://itoataxicab.com/images/corpcharge.jpg";
     pic6off= new Image(100,25);
     pic6off.src="http://itoataxicab.com/images/links.jpg";
     pic7off= new Image(100,25);
     pic7off.src="http://itoataxicab.com/images/history.jpg";
     pic8off= new Image(100,25);
     pic8off.src="http://itoataxicab.com/images/contactus.jpg";
   }


function lightup(imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
    }
 }

function turnoff(imgName)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
    }
 }

//-->
</SCRIPT>

</head>

<body topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" text="#FFFFFF">
<div align="right">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    
      <td valign="top" align="right" background="http://itoataxicab.com/images/bannerswatch.jpg" width="100%">
        <p align="center"><img border="0" src="http://itoataxicab.com/images/newtaxi.gif" width="588" height="52"></p>

      </td>
      <td width="194" background="http://itoataxicab.com/images/bannerswatch.jpg" valign="top" align="right"> </td>
    </tr>
  </table>
  </center>
</div>
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="100%" height="1">
    <tr>

      <td width="220" background="http://itoataxicab.com/images/background.jpg" valign="top" align="left" rowspan="2" height="1">
        <p align="center"><BR><BR>
<a href="http://itoataxicab.com/" onmouseover="lightup('pic1')" onmouseout="turnoff('pic1')"><img src="http://itoataxicab.com/images/home.jpg" name="pic1" border="0" ></a>
<a href="http://itoataxicab.com/order_cab_service/" onmouseover="lightup('pic2')" onmouseout="turnoff('pic2')"><img src="http://itoataxicab.com/images/ordercab.jpg" name="pic2" border="0" ></a>
<a href="http://itoataxicab.com/cabs_available_for_lease/" onmouseover="lightup('pic3')" onmouseout="turnoff('pic3')"><img src="http://itoataxicab.com/images/cabsavailable.jpg" name="pic3" border="0" ></a>
<a href="http://itoataxicab.com/fare_info/" onmouseover="lightup('pic4')" onmouseout="turnoff('pic4')"><img src="http://itoataxicab.com/images/fareinfo.jpg" name="pic4" border="0" ></a>
<a href="http://itoataxicab.com/corp_charge_account_application/" onmouseover="lightup('pic5')" onmouseout="turnoff('pic5')"><img src="http://itoataxicab.com/images/corpcharge.jpg" name="pic5" border="0" ></a>
<a href="http://itoataxicab.com/links/" onmouseover="lightup('pic6')" onmouseout="turnoff('pic6')"><img src="http://itoataxicab.com/images/links.jpg" name="pic6" border="0" ></a>
<a href="http://itoataxicab.com/history/" onmouseover="lightup('pic7')" onmouseout="turnoff('pic7')"><img src="http://itoataxicab.com/images/history.jpg" name="pic7" border="0" ></a>
<a href="http://itoataxicab.com/contact_us_feedback/" onmouseover="lightup('pic8')" onmouseout="turnoff('pic8')"><img src="http://itoataxicab.com/images/contactus.jpg" name="pic8" border="0" ></a>
<br />
        <br>
        </p>
        <p align="center"> </p>
      </td>
  </center>
      <td background="http://itoataxicab.com/http://itoataxicab.com/images/background.jpg" valign="top" align="center" rowspan="2" height="1">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<?php the_content(__('(more...)')); ?>

</div>

<?php endwhile;?>
<?php endif; ?>      
        </td>
      <td width="184" background="http://itoataxicab.com/images/rightswatch.jpg" valign="top" align="left"><img border="0" src="http://itoataxicab.com/images/itoalogo.jpg" width="184" height="192">
      <div align = "right">
      <br />
      <br />
<script type="text/javascript"><!--
google_ad_client = "pub-4453612686513679";
/* 120x600, created 7/21/11 */
google_ad_slot = "2688688811";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<br />
<br />

<script type="text/javascript"><!--
google_ad_client = "pub-4453612686513679";
/* 120x600, created 7/21/11 */
google_ad_slot = "2688688811";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
      </div>
      
      </td>
    </tr>

  </table>
</div>




</body>

</html>
 
You have at least extra </head> tag in line #35, remove that at least as a start. And also extra </div> in line #144
 
Last edited:
Wordpress right? Just install any other theme. You will get option to remove the previous one which is causing the problem. Finally reinstall the same theme which you need. This is the safest way if you are not familiar with editing codes.
 
Wordpress right? Just install any other theme. You will get option to remove the previous one which is causing the problem. Finally reinstall the same theme which you need. This is the safest way if you are not familiar with editing codes.

That would be great but this was something custom I bought like 2 years ago and don't have a backup for..
 
Did you try by moving the two lines I pointed out?
I think it should work even though didn't try it myself.
 
In addition to what laowai pointed out above,

On line 27, find:
Code:
<meta name="AUTHOR" content=">

Replace with:
Code:
<meta name="AUTHOR" content="">

Note the missing close quotation in code you provided. This made balance of code on page part of "AUTHOR" and thus your scripts and css were not being called.

Good luck...
 
FUCK..still not working...could one of you copy and paste it in with the corrections? Im using the internal WP editor. I don't have something to count the lines of code with.

PLEASE!

Code:
<?php
/**
 * @package WordPress
 * @subpackage Classic_Theme
 */
?>

<html>

<head>
<meta http-equiv="Content-Language" content="English">
<meta http-equiv="EXPIRES" content>
<meta http-equiv="CHARSET" content="ISO-8859-1">
<meta http-equiv="VW96.OBJECT TYPE" content="Homepage">
<meta name="TITLE" content="Independent Cab Boston | Boston Cab Independent | Independent Taxi Boston | Boston Taxi Independent | I.T.O.A.- Home">
<meta name="DESCRIPTION" content="About Independent Cab of Boston.Thank you for your interest in Independent  Cab of Boston. Independent  Cab of Independent  is the largest taxi-cab fleet in greater Boston, providing twenty-four hour service. All of our taxi-cabs are late model, well maintained and are manned with professional, efficient drivers who are ready to service your every transportation need. We provide five star service Independent  Cab of Independent  offers handicapped accessible vehicle transportation including wheelchair accessible vans. We also have time-scheduled service for those patients of the City's hospitals and medical centers who require such service. We offer voucher account billing services for those medical facilities that may require a monthly or weekly billing. Independent  offers 24-hour transport service to Logan International Airport. For your convenience, you may schedule a transport to Logan 24 hours in advance. Just call our radio room at 617-268-1313 and one of our operators will assist you. Independent  offers same day, expedited delivery service for your time sensitive packages and envelopes. Call our general manager at 617-268-1313 to obtain custom delivery rates.Uniquely, unlike other taxi-cab companies, Independent  Cab of Independent  provides "call-out" service for all taxi customers. This will enable you to stay indoors during inclement weather, and be called out upon the taxi's arrival.Thank you for choosing Independent  Cab of Boston. 

We have received your information, and a representative will contact you promptly.

Please take the time to browse the rest of our web site.

Independent  Cab

The largest taxi-cab fleet in Boston.">
<meta name="KEYWORDS" content="boston cab, taxi, Boston, city, Independent  Cab, Town Taxi, Independent  Cab, Allston Brighton Taxi, City Cab, transportation, massachusetts, local, package, delivery, service, airport, logan, massport, logan express, port, wheelchair, 24 hours, limo, medallion, call, downtown, seeport, hotels, town, advertisment, account, vouchers, trips, courier, motel, long distans, restaurant, short trips, cafe, north end, south boston, south end, dorchester, roxbury, dedhem, copley, back bay, south station, north, station, ambassador, cambridge, checker, itoa, yellow, area, red cab" >
<meta name="OWNER" content="[email protected]">
<meta name="AUTHOR" content="">
<meta name="RATING" content="General">
<meta name="ROBOTS" content="index,follow">
<meta name="REVISIT-AFTER" content=" 1 weeks">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">

<meta name="ProgId" content="FrontPage.Editor.Document">
<TITLE>http://itoataxicab.com <TITLE>


<SCRIPT language="JavaScript">

<!--  if (document.images)
   {
     pic1on= new Image(100,25);
     pic1on.src="http://itoataxicab.com/images/homeover.jpg";  
     pic2on= new Image(100,25);
     pic2on.src="http://itoataxicab.com/images/ordercabover.jpg"; 
     pic3on= new Image(100,25);
     pic3on.src="http://itoataxicab.com/images/cabsavailableover.jpg";  
     pic4on= new Image(100,25);
     pic4on.src="http://itoataxicab.com/images/fareinfoover.jpg";
     pic5on= new Image(100,25);
     pic5on.src="http://itoataxicab.com/images/corpchargeover.jpg";
     pic6on= new Image(100,25);
     pic6on.src="http://itoataxicab.com/images/linksover.jpg";
     pic7on= new Image(100,25);
     pic7on.src="http://itoataxicab.com/images/historyover.jpg";
     pic8on= new Image(100,25);
     pic8on.src="http://itoataxicab.com/images/contactusover.jpg";
     
     
     pic1off= new Image(100,25);
     pic1off.src="http://itoataxicab.com/images/home.jpg";
     pic2off= new Image(100,25);
     pic2off.src="http://itoataxicab.com/images/ordercab.jpg"; 
     pic3off= new Image(100,25);
     pic3off.src="http://itoataxicab.com/images/cabsavailable.jpg";
     pic4off= new Image(100,25);
     pic4off.src="http://itoataxicab.com/images/fareinfo.jpg"
     pic5off= new Image(100,25);
     pic5off.src="http://itoataxicab.com/images/corpcharge.jpg";
     pic6off= new Image(100,25);
     pic6off.src="http://itoataxicab.com/images/links.jpg";
     pic7off= new Image(100,25);
     pic7off.src="http://itoataxicab.com/images/history.jpg";
     pic8off= new Image(100,25);
     pic8off.src="http://itoataxicab.com/images/contactus.jpg";
   }


function lightup(imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
    }
 }

function turnoff(imgName)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
    }
 }

//-->
</SCRIPT>

</head>

<body topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" text="#FFFFFF">
<div align="right">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    
      <td valign="top" align="right" background="http://itoataxicab.com/images/bannerswatch.jpg" width="100%">
        <p align="center"><img border="0" src="http://itoataxicab.com/images/newtaxi.gif" width="588" height="52"></p>

      </td>
      <td width="194" background="http://itoataxicab.com/images/bannerswatch.jpg" valign="top" align="right"> </td>
    </tr>
  </table>
  </center>
</div>
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="100%" height="1">
    <tr>

      <td width="220" background="http://itoataxicab.com/images/background.jpg" valign="top" align="left" rowspan="2" height="1">
        <p align="center"><BR><BR>
<a href="http://itoataxicab.com/" onmouseover="lightup('pic1')" onmouseout="turnoff('pic1')"><img src="http://itoataxicab.com/images/home.jpg" name="pic1" border="0" ></a>
<a href="http://itoataxicab.com/order_cab_service/" onmouseover="lightup('pic2')" onmouseout="turnoff('pic2')"><img src="http://itoataxicab.com/images/ordercab.jpg" name="pic2" border="0" ></a>
<a href="http://itoataxicab.com/cabs_available_for_lease/" onmouseover="lightup('pic3')" onmouseout="turnoff('pic3')"><img src="http://itoataxicab.com/images/cabsavailable.jpg" name="pic3" border="0" ></a>
<a href="http://itoataxicab.com/fare_info/" onmouseover="lightup('pic4')" onmouseout="turnoff('pic4')"><img src="http://itoataxicab.com/images/fareinfo.jpg" name="pic4" border="0" ></a>
<a href="http://itoataxicab.com/corp_charge_account_application/" onmouseover="lightup('pic5')" onmouseout="turnoff('pic5')"><img src="http://itoataxicab.com/images/corpcharge.jpg" name="pic5" border="0" ></a>
<a href="http://itoataxicab.com/links/" onmouseover="lightup('pic6')" onmouseout="turnoff('pic6')"><img src="http://itoataxicab.com/images/links.jpg" name="pic6" border="0" ></a>
<a href="http://itoataxicab.com/history/" onmouseover="lightup('pic7')" onmouseout="turnoff('pic7')"><img src="http://itoataxicab.com/images/history.jpg" name="pic7" border="0" ></a>
<a href="http://itoataxicab.com/contact_us_feedback/" onmouseover="lightup('pic8')" onmouseout="turnoff('pic8')"><img src="http://itoataxicab.com/images/contactus.jpg" name="pic8" border="0" ></a>
<br />
        <br>
        </p>
        <p align="center"> </p>
      </td>
  </center>
      <td background="http://itoataxicab.com/http://itoataxicab.com/images/background.jpg" valign="top" align="center" rowspan="2" height="1">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<?php the_content(__('(more...)')); ?>

</div>

<?php endwhile;?>
<?php endif; ?>      
        </td>
      <td width="184" background="http://itoataxicab.com/images/rightswatch.jpg" valign="top" align="left"><img border="0" src="http://itoataxicab.com/images/itoalogo.jpg" width="184" height="192">
      <div align = "right">
      <br />
      <br />
<script type="text/javascript"><!--
google_ad_client = "pub-4453612686513679";
/* 120x600, created 7/21/11 */
google_ad_slot = "2688688811";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<br />
<br />

<script type="text/javascript"><!--
google_ad_client = "pub-4453612686513679";
/* 120x600, created 7/21/11 */
google_ad_slot = "2688688811";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
      </div>
      
      </td>
    </tr>

  </table>
</div>




</body>

</html>
 
Try clearing your cache in your browser and look again...
Loads fine for me now in FireFox..
 
yup check cache and plus just reinstall whatever you was messing with, download teh theme to your come open it up in notepad and cross check against your if you made customization to your theme best way to keep them without redoing everything with a new install
 
Some pages are working. These are the ones that are not

Code:
http://itoataxicab.com/order-independent-cab-boston/
Code:
http://itoataxicab.com/independent-taxi-rates-boston/
 
Both pages listed are calling the background image incorrectly:

Code:
http://itoataxicab.com/http://itoataxicab.com/images/background.jpg

Should be:

Code:
http://itoataxicab.com/images/background.jpg

Note the address double call. Probably in page html view under page edit. Not sure if this will get all content showing again, but could be cause of error and killing display.

Keep solving one step at a time... you'l get there again...
 
Check your cpanel. if autobackup is on by hosting then you would get the old files back.download backup on local disk and then get your files from it.

Pm me if you are confused.
 
I love how people keep bumping in to tell me to reupload the site...

I dont have a backup... thats why
 
Two things....

(a). It might help if you back track and state exactly what you did to muck things up.

(b). Once you get the site restored, I would vote on a more up to date redesign because that "Link Blue" is designed for links. It is not really aesthetically appealing for backgrounds or back drops.

But back your immediate issues at hand... where you doing something with your WP Super Cache? It seems to be broken.
 
The theme is an exact clone of the companies original site ported into WP.. even their taxis look like that. That little logo on ever page is on every cab. I don't like it either but the second rule of the taxi business is THE CAR MUST ATTRACT ATTENTION.

Most companies apply that same taxi commandment to all their other advertising. I was in the theme editor mucking about with the index page template and header files. For some reason the theme wouldn't use the information that platinum seo plugin was providing and i was trying to fix that...
 
Both pages listed are calling the background image incorrectly:

Code:
http://itoataxicab.com/http://itoataxicab.com/images/background.jpg
Should be:

Code:
http://itoataxicab.com/images/background.jpg
Note the address double call. Probably in page html view under page edit. Not sure if this will get all content showing again, but could be cause of error and killing display.

Keep solving one step at a time... you'l get there again...

I looked through the html view on the pages and in the page templates and don't see the double call anywhere.. damn it!
 
Back
Top