Forums

Easy way of changing look of just one page? (4 posts)

  1. jotunney
    Member
    Posted 8 months ago #

    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.

  2. zoonini
    help me help you
    Posted 8 months ago #

    Make a custom page template for it. Tutorial here.

  3. alchymyth
    The Sweeper
    Posted 8 months ago #

    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.

  4. zoonini
    help me help you
    Posted 8 months ago #

    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; ?>

Reply

You must log in to post.

About this Topic