Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter SmileWP

    (@anotheropus)

    Update to the previous question.

    As an alternative can you tell me what the correct CSS selector is for Types posts?

    …so that I can hide headers and footers using CSS?

    I know I can hide elements using the post ID number.

    E.g.

    #post-1773 header, #post-1773 footer {display: none;}

    I’m just hoping I can do a more global (one time) solution where I specify the post type name.

    E.g.

    .single-types header, .single-types footer {display: none;}

    Can you tell me what the correct selector is for Types posts?

    Thank you for your help.

    Chris

    Dear Chris

    We do not modify body class. But WP add class like this:

    single-[slug]

    Where [slug] is a slug of custom post type.

    cheers,
    Marcin

    Thread Starter SmileWP

    (@anotheropus)

    Hey Marcin,

    Thank you!

    Using the slug works!

    Chris

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I get Types to use the landing page format?’ is closed to new replies.