WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] SSL Proxy – Header breaks it!

[Resolved] SSL Proxy – Header breaks it!

  • Hey guys,

    I have another problem with that SSL connection. The Header in the TwentyTen theme always serves that image via http://

    I googled this half the last night and I couldn´t find any help out there.

    There MUST be a db Table or a core file that I can edit to send the header via SSL proxy. At least I hope it is?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Found it by trial and error. If anyone´s looking for this, it’s directly in the header.php (Simply edit via Dashboard.)

    Look for:

    // Houston, we have a new header image!
    						echo get_the_post_thumbnail( $post->ID );
    					elseif ( get_header_image() ) : ?>
    						<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    					<?php endif; ?>

    Replace:
    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />

    With:
    <img src="https://ssl.proxy.xx/images.yourdomain.com/bla/bla/header.jpg" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />

    If you´re not using a subdomain then just skip ‘images.’

    this is not a good solution.. this just hard-codes the header image. the whole point of a CMS is not having stuff hard-coded.

    if <?php header_image(); ?> could print out a relative url instead of an absolute url, we’d have a solution..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] SSL Proxy – Header breaks it!’ is closed to new replies.