Need help? Check out our Support site, then


page titles

  1. jadasfinancial
    Member

    Does anyone know the CSS code to remove page titles?

    The blog I need help with is jadasfinancial.wordpress.com.

  2. This should do it for you.

    #topbanner .pagetitle {
    display: none;
    }
  3. Note: the CSS mentioned will work with The Morning After theme.

    If you want to remove the spacing the title was taking up too, try just using #topbanner as a selector.

    #topbanner {
    display: none;
    }
  4. jadasfinancial
    Member

    Thank you for the responses. I am sorry I responded late.

  5. You can respond any time you like! :)

  6. You can set it in 2 ways:
    display: none;

    or:

    text-indent:-9999px

  7. Some would say the text-indent is a better option for titles because it leaves the title in tact for search engines and crawlers as well as screen readers.

  8. thesacredpath
    Staff

    If you do a view source on a page with a hidden title, the title is still there. CSS just asks the browser not to display it.

    As I understand it, the search engines do not look at CSS, only at the markup (HTML) so display none should really have no affect on the search engines.

    The page HTML is generated by the theme PHP files first so everything is there in the page source and then the browser applies the CSS.

  9. thesacredpath
    Staff

    I'm going to back off on the above a little since there are some very old articles on the internet (2005-2007) that indicate Google does look at CSS, but from what I can determine they are looking more for links and such they can pull out for possible indexing. There is this relevant bit from Google Webmaster Central:

    If your site is perceived to contain hidden text and links that are deceptive in intent, your site may be removed from the Google index, and will not appear in search results pages.

    I think the key work in the above is "deceptive". Hiding a page title via CSS is, or at least should not be viewed as, deceptive. Hiding a bunch of keywords or hidden links meant just for the search engine to find would be deceptive.

  10. A negative text indent is also more screen reader friendly. On the search engine front, I consider it a fuzzy area since it's common practice to use either method. I think the general rule of thumb is: "don't be spammy."

    Here are a couple related resources I found which I consider to be good:
    * http://www.mattcutts.com/blog/seo-mistakes-unwise-comments/#comment-1648
    * http://stackoverflow.com/questions/5481225/do-search-engines-treat-text-indent-9999em-or-negative-margin-as-seo-cheat

  11. jadasfinancial
    Member

    Thank you both for the inputs.

  12. Cheers! :)

Topic Closed

This topic has been closed to new replies.

About this Topic