Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter p_getchell

    (@p_getchell)

    Thank-you alchymyth. My 1st clumsy attempt seems to work. Unless you see anything else, I shall mark this resolved.

    /*the following conditional statements test a page to determine which header to use. The 1st condition, if true, displays the reading header image. If false, (elseif) it tests for a 2nd condition which also displays the reading header image. If 2nd condition is false, it displays the default custom header image which we use for all other pages on the site*/
    		<?php $header_image = get_header_image();
    		if (is_page('Read Every Day')) :
    		echo '<a href="' . esc_url( home_url( '/' ) ) . '"><img class="header-image" src="http://www.pinetreeschool.org/wp-content/uploads/2014/03/headerreading-copy.jpg" alt="" /></a>';elseif (is_page_template('bookreview.php')) :
    		echo '<a href="' . esc_url( home_url( '/' ) ) . '"><img class="header-image" src="http://www.pinetreeschool.org/wp-content/uploads/2014/03/headerreading-copy.jpg" alt="" /></a>';
    		elseif( ! 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="" /></a>
    		<?php endif; ?>
    Thread Starter p_getchell

    (@p_getchell)

    btw – using WordPress twenty twelve template with a child theme

    I added the php code before I discovered the ABC pluggin. The php forced IE 8 to emulate ver 7. IE 7 does a near-tolerable rendering of the site.

    My intent was to get the php code and ABC to work together.

    I have chosen the ABC pluggin over the php code since the two don’t play well together. Now users get the pop-up message, they can close it and opt out of the update at their peril and live with IE8’s flawed rendering.

    Thread Starter p_getchell

    (@p_getchell)

    When viewing in all browsers, ABC causes screen to dim: found that when I disabled the pluggin all was well except obviously w/out the benefit of the plugin. Similar complaint but no solution here

    I am concurrently running some code in a functions.php file in my child theme so IE 8-9 users get some use out of the site. code:// operates ie8, ie9 in ie7 compatibility mode
    <?php if (strpos($_SERVER[‘HTTP_USER_AGENT’],”MSIE 8″)) {
    header(“X-UA-Compatible: IE=7”);} ?>
    <?php if (strpos($_SERVER[‘HTTP_USER_AGENT’],”MSIE 9″)) {
    header(“X-UA-Compatible: IE=7”);} ?>

    Thread Starter p_getchell

    (@p_getchell)

    Thank-you.

Viewing 4 replies - 1 through 4 (of 4 total)