WordPress.org

Ready to get started?Download WordPress

Forums

Oenology
[resolved] after update header images problem again (6 posts)

  1. BreezyOhio
    Member
    Posted 1 year ago #

    Hi Chip

    I've used Oenology for the last year without problems until I finally updated all of my WP install.

    I originally had problems with header images and we talked about it on this thread ..
    http://wordpress.org/support/topic/theme-oenology-header-graphics-issue?replies=25

    I seem to be faced with the same issue again. I am using the child theme just as we had laid out at the end of that thread. Any ideas as to why it's not working?

    Thanks for the theme. It's a very sophisticated andf minimal look

    BTW my site is alliancemillsoft.com

    http://wordpress.org/extend/themes/oenology/

  2. BreezyOhio
    Member
    Posted 1 year ago #

    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 ...
    http://codex.wordpress.org/Child_Themes

  3. BreezyOhio
    Member
    Posted 1 year ago #

    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 ..

    <?php
    function custom_oenology_header_style() {
        ?>
        <style type="text/css">
        #site-header-text {
            background: none;
        }
        </style>
        <?php
    }
    // 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.

  4. BreezyOhio
    Member
    Posted 1 year ago #

    I cannot delete this post SO DISREGARD ANY INFORMATION HERE ENTIRELY!

    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.

  5. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 1 year ago #

    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!

  6. BreezyOhio
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags