Support » Theme: Tiny Framework » I Screwed Up The Header Code

  • Hi!

    So I am in the process of learning and working with Code, and in the process of trying to add a Header Slider, I completely fucked up the code for this theme. Specifically the ‘Custom Header php’.

    The site I am working on is and I am on a time crunch to get it fixed and finished.

    Please help ASAP!

    Thank you in advance for your time and assistance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • hello,
    could you please post your header.php code.
    I am guessing that you missed to open a php opening tag or deleted existing one.

    hope to hear form you soon.

    Hi @wensolutions!
    This is what the code is now, and I have no idea what happened.

    ‘primary’, ‘menu_id’ => ‘primary-menu’, ‘menu_class’ => ‘nav-menu’, ‘depth’ => 4, ) ); ?> ID ) && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ) ) && $image[1] >= $header_image_width ) : // Houston, we have a new header image! echo get_the_post_thumbnail( $post->ID, ‘custom-header-image’ ); else : if ( function_exists( ‘get_custom_header’ ) ) { $header_image_width = get_custom_header()->width; $header_image_height = get_custom_header()->height; } ?>

    If you go to you can see the code and the MetaSlider ID I was trying to use. Thank you so much for helping me find a solution!!!

    hello again ,

    I was talking about the full header.php code. Not the code that is not being executed. Did you check if you missed any php tags or you used extra php opening tag?

    If I’m being honest I wouldn’t know the difference. This is my first time ever working with code at all.

    Theme Author Tomas Mackevicius


    Did you try just download fresh theme version and restore that file?

    @tomas, I haven’t tried that…
    Where/how would I do that?

    i would suggest to download your theme to your it from there and copy and paste the original code to your website that would be alot easier

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘I Screwed Up The Header Code’ is closed to new replies.