Shop Categories

X

Agama Pro how to change header images on each page

Home Forums Agama Pro Agama Pro how to change header images on each page

Topic Resolution: Resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #28009
    Kelley Weston
    Participant

    I understand this is possible but do not see how to do so – I would like to use featured image. I used to have code in the header.php of my child theme
    [code]
    if (is_front_page()) {
    Agama_Helper::get_header_image();
    } else if (has_post_thumbnail( $post->ID ) ) {
    echo get_the_post_thumbnail($page->ID, 'full');
    } else {
    Agama_Helper::get_header_image();
    }
    [/code]
    but it no longer works when I updated theme. Even if I put Agama header.php into my child theme without any modifications it breaks the site???

    #28011
    Jerry
    Keymaster

    Hello Kelley,

    Please create a temporary admin user/pass for us and we will see if we can fix the issue.

    Regards

    #28012
    Kelley Weston
    Participant

    what email address for user please?

    #28015
    Kelley Weston
    Participant
    This reply has been marked as private.
    #28018
    Kelley Weston
    Participant

    Hi any progress on this? I need to get this site back up and running!

    #28020
    Jerry
    Keymaster

    Use the next code instead:

    if (is_front_page()) {
      agama_header_image();
    } else if (has_post_thumbnail( $post->ID ) ) {
    echo get_the_post_thumbnail($page->ID, 'full');
    } else {
      agama_header_image();
    }

    Sorry for the delay.

    Regards

    #28030
    Kelley Weston
    Participant

    It is my understanding that this is a FEATURE in agama pro – how do I change the header image on a page without having to jump through a bunch of hoops / write a function for the hook etc. I cannot find it anywhere!

    #28031
    Kelley Weston
    Participant

    It is my understanding that this is a FEATURE in agama pro – how do I change the header image on a page without having to jump through a bunch of hoops / write a function for the hook etc. I cannot find it anywhere!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.