WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] SSL Proxy - Header breaks it! (3 posts)

  1. BeautyPirate
    Member
    Posted 2 years ago #

    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?

  2. BeautyPirate
    Member
    Posted 2 years ago #

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

  3. photocurio
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic