WordPress.org

Support

Support » Themes and Templates » Easy way of changing look of just one page?

Easy way of changing look of just one page?

  • jotunney

    @jotunney

    Is there a relatively easy way I can change the look of just one of my WordPress pages on my website?

    All of my pages are static, and on the whole look fine with the large image at the top you get by using the twenty eleven template. However, one of my pages is to showcase an image gallery and I’d like that page to have nothing other than my company name at the top, so a large header image doesn’t detract from the ones below. Is there any way I can do this?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn

    @zoonini

    Automattic Happiness Engineer

    Make a custom page template for it. Tutorial here.

    Moderator Michael

    @alchymyth

    Forum Moderator

    alternatively, using css:

    add something like this to style.css of your theme:

    .page-id-72 #branding img { display:none; }

    btw:
    it is advisable not to edit Twenty Eleven directly, but rather to create a child theme http://codex.wordpress.org/Child_Themes and to make the edits there. having an unedited default theme is important in case of theme problems.
    also, any customisation of Twenty Eleven will be overwritten with the next upgrade of your wordpress version.

    Moderator Kathryn

    @zoonini

    Automattic Happiness Engineer

    And a third method: you could also use a conditional tag in your header.php file:

    i.e.

    <?php if ( !is_page('showcase') ) : ?>

    do your header stuff on all pages except the one with the slug ‘showcase’

    <?php endif; ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Easy way of changing look of just one page?’ is closed to new replies.