Forums

Hide Post Header (8 posts)

  1. angelazou
    Member
    Posted 10 months ago #

    I would like to hide the header in my home page, so this is the code I'm using

    #index postheader {
      visibility: none;
    }

    Yet, it still show up. What am I missing here?

    Regards,
    Angela

  2. alchymyth
    The Sweeper
    Posted 10 months ago #

    assuming that the selectors are right, check the css:
    http://www.w3schools.com/cssref/pr_class_visibility.asp

    just a guess - i have no possibility checking it without a link to your site.

  3. angelazou
    Member
    Posted 10 months ago #

    Oh my, newbie mistake, thanks for the heads up. But, the header is still not gone. This is the CSS now:

    #index postheader {
      visibility: hidden;
    }

    Regards,
    Angela

  4. alchymyth
    The Sweeper
    Posted 10 months ago #

    can you post a link to the site?

    is postheader a css class?

    in which case it might need a dot . before the name:
    .postheader

  5. Aaron Wagner
    Member
    Posted 10 months ago #

    Try:

    #index .postheader {
      display:none;
    }

    Or if you want the content to be seen by screen readers, use:

    #index .postheader {
      position:absolute;
      left: -1000em
    }
  6. angelazou
    Member
    Posted 10 months ago #

    Nada, I have no idea why. But I do think that, I don't have to specify the full selector path, correct? I mean there are some other classes also wrapping around post header, but this selector path should be enough, isn't it?

    Regards,
    Angela

  7. Aaron Wagner
    Member
    Posted 10 months ago #

    Can you show a link?

  8. angelazou
    Member
    Posted 10 months ago #

    You mean link to my site?

Reply

You must log in to post.

About this Topic