• Sieg

    (@harrismaynard)


    I apologize for asking these, but I can’t really afford to pay $75 for two questions on the Blank Themes website… and I’m hoping to find some help!

    I want to have the header image display on only the main page of my site. So on my other pages, I just want the main menu, or even more preferable, a reduced/shorter version of the header image.

    This is my first time working with a site like this and I’m having a hard time placing which piece of code I need to change/remove. Please help, and thank you very much for your time!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Place this in the header.php, above the navigation [you may need to move it up / down to get it to work correctly.]

    <!-- add variable banner -->
    	<img src='<?php echo get_post_meta($post->ID, 'banner', true); ?>' />
    	<!-- end variable banner -->

    It will add a field to every page / post [edit page]

    field name: banner
    value: path to the banner you wish to display

    Not giving it a banner will give you no banner

    NOTE!!
    Remove any and all settings in your dashboard / theme-options / site regarding banners. Because they are seen as the default.

    Thread Starter Sieg

    (@harrismaynard)

    Hey thanks so much!! Actually that perfectly answers my question here: http://wordpress.org/support/topic/stumped-on-ow-to-insert-a-logo-image-above-the-header-in-landscape-theme?replies=1

    But I think I phrased this post wrong… or maybe I don’t understand.

    With this one, I’m wondering if there’s any way to take away the large banner on every page except for my main page. Is that possible? I’m sorry — I don’t want to to display on pages like my bio or image gallery because I have lots of content to show off and dont want to make visitors scroll.

    Thank you very much for your help!!

    1. Take all banners out
    2. install the code suggested above
    3. activate the banner you want only in the page you want it to using the field inserted by the above code
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Theme: Landscape] Removing Header from pages?’ is closed to new replies.