page titles

  • Author
    Posts
  • #683647

    Does anyone know the CSS code to remove page titles?

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

    #683793

    This should do it for you.

    #topbanner .pagetitle {
    display: none;
    }
    #683811

    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;
    }
    #684122

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

    #684123

    You can respond any time you like! :)

    #684125

    ivke023
    Member

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

    or:

    text-indent:-9999px

    #684126

    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.

    #684127

    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.

    #684128

    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.

    #684129

    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

    #684132

    Thank you both for the inputs.

    #684133

    Cheers! :)

The topic ‘page titles’ is closed to new replies.