Support » Theme: Oenology » after update header images problem again

Viewing 5 replies - 1 through 5 (of 5 total)
  • BTW, it seems that my Oenology-Child settings are not being used. Maybe that’s the problem. Possibly in a related issue my Themes choosing page comes up with an error at the bottom stating ..
    Broken Themes

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.
    Name Description
    Oenology Child Template is missing.

    I cannot find a Template file in the Oenology theme either but the Oenology theme is listed and being used on my Theme selection page. The WP documentation says template files are optional for child themes …

    just in case anyone else stumbles upon this post .. I had to add a template line to the style.css file that refers to the parent theme. That got the child settings working. It’s documented, I just missed it.

    Header images were difficult to fix but I did it with this code in functions.php in my child folder ..

    function custom_oenology_header_style() {
        <style type="text/css">
        #site-header-text {
            background: none;
    // Use a priority of 99, to ensure this outputs last
    add_action( 'wp_head', 'custom_oenology_header_style', 99 );
    <?php $header_image = "/wp-content/YOURHEADERIMAGEHERE.png";
    		if ( ! empty( $header_image ) ) : ?>
    			<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="return to home page" /></a>
    		<?php endif; ?>

    Note that with this code I decided to upload my header image to the wp-content folder instead of various other image location possibilities.


    The code above does NOT display correctly in IE and should not be used.

    My problems turned to be that my media library had duplicate paths in the images that were uploaded. After correcting the path issue I was able to reload images and use them as was planned. Thus no need for a child theme or any manual editing of any theme files.

    Theme Author Chip Bennett


    Theme Review Admin

    Hi Breezy,

    I’m a bit behind on following up on support. Sorry for the delay.

    I’m glad you got things figured out.

    Any idea why you had duplicate image file paths in the media gallery?

    Thanks again for using Oneology!

    Well Chip, I cannot be sure what happened. On the initial install I had a fixed IP address, which I had to later change to the domain name. That required a lot of editing of database entries .. BTW image locations are kept in the postings database .. I THINK what happened is that I put a full path into a variable value that already adds the domain address onto the resulting values.

    The good thing about this (if you can call it that) is that now after futzing with it for a day I now have a totally clean and proper implementation which I should be able to update in the future without fear.

    If anyone ever asks, I would say to never setup a WP install to a static IP .. instead just move your site and manage the fact that the site might be a bit strange to users for a bit while you dial it in. I found entries to the static IP in the weirdest places .. even postings that were added after the site was edited for the domain name.

    Thanks for the great theme!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘after update header images problem again’ is closed to new replies.