Results 1 to 4 of 4
  1. #1
    ABW Ambassador
    Join Date
    June 30th, 2007
    Syracuse, NY
    Questions on "cleaning" up code.
    Believe I've read on here, the less code you have, the better for the SERP? Plus it can speed load time.

    Going with those to be true.. I'm trying to clean up some code. I'm using wordpress and a pre-created theme and working on making the theme do what I want it to. Finding some of the code I don't need (or think I don't). Although I have very little knowledge of PHP and CSS, so my thinking could be wrong.

    First actually question, if I remove some code, save, then go and view the website, and nothing has changed, the code won't be missed? (I know that might seem obvious, but better safe than sorry, lol)

    Some examples from the side bar:
    PHP Code:
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
    <?php endif; ?>
    Through process of elimination, I believe those two go together.. and guessing this is for the wordpress drag and drop sidebar feature? I'm coding my own, so figure it is safe to remove. Didn't effect the site.

    PHP Code:
    <div style="clear:both;"></div
    And this ends the sidebar file.. no clue what it is for. Should I keep it? Removing it didn't seem to effect anything.

    Basic newbie questions.. sorry, but so far I'm impressing myself with what I've figured out, so I don't feel dumb asking, LOL.

  2. #2
    Roll Tide mobilebadboy's Avatar
    Join Date
    January 18th, 2005
    Mobile, Alabama
    PHP, you wont miss it, the SEs wont miss it. No one/thing will miss it.

    PHP is a server side language. The server executes that code then outputs it to the browser. You see the same thing the SEs see, and anyone else will see. Plain and simple. If it's no use visually (on your end, through your browser) then you dont need it.

    The div I would keep. I won't get into browser/code differences, but I'm sure it's there for a reason. Look at it in IE, Firefox, Opera, etc. It's serving a purpose I'm sure.

    Shawn Kerr (.com) | Disney World | SEC Football

  3. #3
    SEO: A Specialty - Web Design: Slow or outsourced andbeyond's Avatar
    Join Date
    June 18th, 2006
    The Call is coming from Inside the House!
    SEs love blogs so they seem to ignore bad code on them IMHO.

    I would just worry about the post url titles, tagging them WP2.3 does that, and writing content once in a while.

    In a month or two worry about the coding. It is a bit advanced and you can break your templates.

  4. #4
    ABW Ambassador
    Join Date
    June 30th, 2007
    Syracuse, NY
    Thanks for the replies.

    And eeep, that's a good point mobilebadboy, I've only been viewing it with IE. I'll put that last part back in and use other browsers for viewing too.

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Affiliate programs offering "custom coupon code" tracking
    By stealthology in forum Midnight Cafe'
    Replies: 10
    Last Post: October 30th, 2010, 05:42 PM
  2. Checking Your Themes For "Bad Stuff" Code, etc.
    By Trust in forum Blogging, Mobile and Social Media
    Replies: 6
    Last Post: November 7th, 2009, 11:59 AM
  3. Questions About Making & Distributing "Legit" Toolbars
    By wiseguy in forum Blocking Tips/Advice/scripts
    Replies: 2
    Last Post: June 16th, 2007, 11:58 PM
  4. Bag Borrow or Steal "Sparkle and Shine" Coupon Code
    By Allen - AMWSO in forum Couponer's Corner
    Replies: 1
    Last Post: February 24th, 2007, 10:02 PM
  5. Replies: 2
    Last Post: July 29th, 2005, 01:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts