Header image will not use featured image

  • dedward

    #6434

    Despite ensuring the “Disable Featured Image replacing header image” is unchecked the header image will not use the the featured image for posts and pages on my site. You can see what I am speaking about here: http://believinforareason.com/. Thank you in advance for any help you can provide. WARNING: I am a rookie with just enough knowledge to be dangerous.

    Thank you,

    Daniel Edward

    Mod

    Kenneth John Odle

    #34347
    Quote:
    WARNING: I am a rookie with just enough knowledge to be dangerous.

    LOL. At least you admit it!

    Um…in order for the feature image to take the place of the header image, the feature image must be the exact size as your header image. And I mean exact. It can’t be off by a pixel.

    What size is your header image? What size are your feature images?

    dedward

    #34348

    Thank you for the reply. In this case my header image is 1400×198, and I have resized my featured image to be the same size to the pixel. After resetting my featured image on the page my header image is still overriding my featured image.

    Mod

    Kenneth John Odle

    #34350

    Graphene Options >> Display Options >> Header Display Options

    Make sure the box marked “Disable Featured Image replacing header image” is NOT ticked.

    BTW, your width is a bit too much for comfortable reading.

    dedward

    #34351

    Yes, the box you are referring to is not ticked. Thank you for the feedback regarding my width. Perhaps I will modify once I get this header image thing worked out.

    Admin

    Syahir Hakim

    #34352
    Quote:
    Um…in order for the feature image to take the place of the header image, the feature image must be the exact size as your header image. And I mean exact. It can’t be off by a pixel.

    Ken, actually as long as the featured image is greater than or equal to the size of the header image, it will replace it.

    dedward, which page specifically are you trying to have the featured image replace the header image?

    Mod

    Kenneth John Odle

    #34353
    Quote:
    Ken, actually as long as the featured image is greater than or equal to the size of the header image, it will replace it.

    That’s good to know! It will save me some time down the road.

    dedward

    #34354

    Here is the page I am attempting to change the header image for:

    http://believinforareason.com/christian-apologetics-resources-links-page/

    Thank you.

    dedward

    #34355

    Any other ideas floating around out there?

    Prasanna SP

    #34356

    Did you choose featured image from NextGen gallery or any other gallery plugins?

    dedward

    #34357
    Quote:
    Did you choose featured image from NextGen gallery or any other gallery plugins?

    I am not using a gallery plugin currently.

    The following is the code for my header.php file. Perhaps I have messed something up in the code that is causing the conflict?

    <?php
    /**
    * The Header for our theme.
    *
    * Displays all of the <head> section and everything up till <div id="content-main">
    *
    * @package Graphene
    * @since graphene 1.0
    */
    global $graphene_settings;
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <title><?php wp_title( '' ); ?></title>
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>

    <?php if ( !get_theme_mod( 'background_image', false) && !get_theme_mod( 'background_color', false) ) : ?>
    <div class="bg-gradient">
    <?php endif; ?>

    <?php do_action( 'graphene_container_before' ); ?>

    <div id="container" class="container_16">

    <?php if ( $graphene_settings['hide_top_bar'] != true) : ?>
    <div id="top-bar">
    <?php do_action( 'graphene_before_feed_icon' ); ?>
    <div id="profiles" class="clearfix gutter-left">
    <?php do_action( 'graphene_social_profiles' ); ?>
    </div>
    <?php
    /**
    * Retrieves our custom search form.
    */
    ?>
    <?php if ( ( $search_box_location = $graphene_settings['search_box_location'] ) && $search_box_location == 'top_bar' || $search_box_location == '' ) : ?>
    <div id="top_search" class="grid_4">
    <?php get_search_form(); ?>
    <?php do_action( 'graphene_top_search' ); ?>
    </div>
    <?php endif; ?>

    <?php do_action( 'graphene_top_bar' ); ?>

    </div>
    <?php endif; ?>

    <?php
    $post_id = ( $post ) ? $post->ID : false;
    $header_img = apply_filters( 'graphene_header_image', graphene_get_header_image( $post_id ) );

    /* Check if the page uses SSL and change HTTP to HTTPS if true */
    if ( is_ssl() && stripos( $header_img, 'https' ) === false ) {
    $header_img = str_replace( 'http', 'https', $header_img );
    }
    ?>
    <div id="header">

    <?php
    $header_img = '<img src="' . $header_img . '" alt="" class="header-img" />';
    if ( ! is_front_page() && $graphene_settings['link_header_img'] ) {
    $header_img_tag = '<a href="' . apply_filters( 'graphene_header_link' , home_url() ) . '" id="header_img_link" title="' . esc_attr__( 'Go back to the front page', 'graphene' ) . '">';
    $header_img_tag .= $header_img;
    $header_img_tag .= '</a>';

    $header_img = $header_img_tag;
    }
    echo $header_img;
    ?>

    <?php /* Header widget area */
    if ( $graphene_settings['enable_header_widget'] && is_active_sidebar( 'header-widget-area' ) ) {
    echo '<div class="header-widget">';
    dynamic_sidebar( 'header-widget-area' );
    echo '</div>';
    }
    ?>

    <?php /* The site title and description */
    if ( ! in_array( get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ), array( 'blank', '' ) ) ) :
    if ( is_singular() && ! is_front_page() ) {
    $title_tag = 'h2';
    $desc_tag = 'h3';
    } else {
    $title_tag = 'h1';
    $desc_tag = 'h2';
    }
    ?>
    <?php echo "<$title_tag class="header_title push_1 grid_15">"; ?>
    <?php if ( ! is_front_page() ) : ?><a href="<?php echo apply_filters( 'graphene_header_link' , home_url() ); ?>" title="<?php esc_attr_e( 'Go back to the front page', 'graphene' ); ?>"><?php endif; ?>
    <?php bloginfo( 'name' ); ?>
    <?php if ( ! is_front_page() ) : ?></a><?php endif; ?>
    <?php echo "</$title_tag>"; ?>

    <?php echo "<$desc_tag class="header_desc push_1 grid_15">"; ?>
    <?php bloginfo( 'description' ); ?>
    <?php echo "</$desc_tag>"; ?>
    <?php endif; ?>

    <?php do_action( 'graphene_header' ); ?>
    </div>
    <div id="nav">
    <?php /* The navigation menu */ ?>
    <div id="header-menu-wrap" class="clearfix">
    <?php
    /* Header menu */
    $args = array(
    'container' => '',
    'menu_id' => 'header-menu',
    'menu_class' => graphene_get_menu_class( 'menu clearfix' ),
    'fallback_cb' => 'graphene_default_menu',
    'depth' => 5,
    'theme_location' => 'Header Menu',
    );
    if ( ! $graphene_settings['disable_menu_desc'] )
    $args = array_merge( $args, array( 'walker' => new Graphene_Description_Walker() ) );

    wp_nav_menu( apply_filters( 'graphene_header_menu_args', $args ) ); ?>

    <div class="clear"></div>

    <?php if ( ( $search_box_location = $graphene_settings['search_box_location'] ) && $search_box_location == 'nav_bar' ) : ?>
    <div id="top_search" class="grid_4">
    <?php get_search_form(); ?>
    <?php do_action( 'graphene_nav_search' ); ?>
    </div>
    <?php endif; ?>

    <?php do_action( 'graphene_header_menu' ); ?>

    </div>

    <?php
    /* Secondary menu */
    $args = array(
    'container' => 'div',
    'container_id' => 'secondary-menu-wrap',
    'container_class' => 'clearfix',
    'menu_id' => 'secondary-menu',
    'menu_class' => 'menu clearfix',
    'fallback_cb' => 'none',
    'depth' => 5,
    'theme_location' => 'secondary-menu',
    );
    wp_nav_menu( apply_filters( 'graphene_secondary_menu_args', $args ) );
    ?>

    <div class="menu-bottom-shadow">&nbsp;</div>

    <?php do_action( 'graphene_top_menu' ); ?>

    </div>

    <?php do_action( 'graphene_before_content' ); ?>

    <div id="content" class="clearfix hfeed">
    <?php do_action( 'graphene_before_content-main' ); ?>

    <?php

    /* Sidebar2 on the left side? */
    if ( in_array( graphene_column_mode(), array( 'three_col_right', 'three_col_center', 'two_col_right' ) ) ){
    get_sidebar( 'two' );
    }

    /* Sidebar1 on the left side? */
    if ( in_array( graphene_column_mode(), array( 'three_col_right' ) ) ){
    get_sidebar();
    }

    ?>

    <div id="content-main" <?php graphene_grid( 'clearfix', 16, 11, 8 ); ?>>
    <?php do_action( 'graphene_top_content' ); ?>
    Mod

    Kenneth John Odle

    #34358

    Have you modified that header.php code? If not, there’s no need to post it; we’ve already got it.

    If you have, just post the portion you have altered and tell us which lines they are. There’s no way we have the time to go through that code and compare it line by line to try to find your changes.

    If you feel the need to code dump, please use http://pastebin.com

    dedward

    #34359
    Quote:
    Have you modified that header.php code? If not, there’s no need to post it; we’ve already got it.

    My apologies. I am new to this type of thing, and am unaware of the associated etiquette. I generally prefer figuring out things on my own, as this bolsters my understanding, but I have just gotten completely stuck with this header image deal. Where can I get the original header.php file, so I can do a comparison on my own? I know the file will look different depending on my selections in the options for the theme; however, this would at least give me a baseline to identify anomalies. This would be quite beneficial. I can only imagine I must have altered the code at some point thereby jacking up my header.

    I appreciate everyone’s patience, as I slowly de-newbie-ify myself.

    Kind regards.

    Prasanna SP

    #34360
    Quote:
    Where can I get the original header.php file, so I can do a comparison on my own?

    http://graphene.googlecode.com/svn/trunk/graphene/header.php

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.