Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    ewc
    ewc is offline
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Code showing in Google page description

    Hello,

    I just tried to link to one of the pages on our website to Facebook, and saw that the code is showing in the page description - the same happens on Google. I can't figure out how to 'hide' the code, without actually hiding the elements.

    The site is made in WordPress.

    The page is http://www.wallstreetservices.com/ex...dmin-assistant.

    Here's the text that showing in the description:
    "Typical opportunities Click on a sector to learn more about it. table.sample { border-width: 0px; border-spacing: 1px; border-style:"

    Does anyone have any ideas of how I can fix this? If you need me to provide the code I can do that as well, just let me know!

    Thank you!

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Validate your page and this will go away. You should not have <style> elements in the HTML body - they are required to be only in the head section. Same goes for <meta> tags. Google is picking up what it thinks is page content because it is in the body.

    All-in-all you have 42 errors and 8 warnings. Fixing those will be a boon to your SEO ranking and will make your website more cross-browser compatible.

    Take a look at the validator and start patching those up. Let us know if you get stuck and we can help.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting


  •  

    Posting Permissions

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