WordPress.org

Ready to get started?Download WordPress

Forums

"dynamic header" (4 posts)

  1. onceuponaday8
    Member
    Posted 4 years ago #

    I'm relatively new to wordpress and working at an elementary level considering coding. I'm using the Panorama theme and would like to change my header image which I've already done. However, from what I can see there is a script making the header change every now and then. I have deleted the other images uploaded in the folder so the only header image is the one I've created myself. Nevertheless, my own header "isn't stable and fixed" because of the script.

    How can I remove the script so that my own header image will remain in the right place and not "randomly disappear"?

    Thanks so much.

  2. krembo99
    Member
    Posted 4 years ago #

    I do not know this theme, but I have downloaded it to try and help you (not installed)
    By what I saw , there is a custom function for static header image, which would be somewhere in the themes options under the admin menu.
    So try to look for it and change it there (it is called header image, and defined at the function.php)
    If you want to manually override it -

    In the file called header.php change

    <?php echo ap_headerImage(); ?>

    with

    <?php echo ap_headerImageStatic(); ?>

    (at line 19 more or less, inline CSS definition)

    or even better, delete that line and change

    <div id="headerimage"></div>

    to

    <div id="headerimage"><img src="<?php bloginfo('template_url'); ?>/Folder_path_to/yourimage.png"></div>

    (but then you might need to css a bit ...

  3. onceuponaday8
    Member
    Posted 4 years ago #

    Hello,

    Thank you so much for your reply. I have tried both options that you listed in the Header.php file but things are still not right. My image keeps disappearing every now and then leaving just a blank write header background.
    Where I looked in the beginning (where I also added the name of the header image) was in the file theme_options.php around line 125.
    I just cannot figure what to delete in order to change the 'dynamic header' setting. Do you have any idea?

    Thanks so much.

  4. onceuponaday8
    Member
    Posted 4 years ago #

    Does anybody know how to remove the dynamic header script?

    Or will removing it be too complicated?

Topic Closed

This topic has been closed to new replies.

About this Topic