heradinomag theme

Home Forums Theme Support heradinomag theme

  • Question status -
  • Henny Zutt
    Participant

    Support Staff wrote:

    1. The same way as you did for Artemis, with one key difference:

    add_filter( 'hybrid_site_title', 'my_custom_image' );

    It’s not {$prefix}_site_title but hybrid_site_title (for newer themes).

    2. Upload that image to HeradinoMag/images folder, name it for example hover-image.png. Then find this in style.css .featured-post-title. Replace

    background: #000;
    with
    background: url(images/name-of-the-image.png) no-repeat;

    As in artemis mag i did not get it to work …….
    Could you be more specific…….
    where in functions.php do i place the add_filter
    do i need to insert the function like the Arthems mag theme? where in herodina/function.php

    #4724
    Support Staff
    Keymaster

    Sorry if I wasn’t clear enough. Yes, in functions.php. You can add filter
    add_filter( 'hybrid_site_title', 'my_custom_image' );
    after this line
    add_theme_support( 'automatic-feed-links' );

    Then function:

    function my_custom_image( $title ) {
    
            $tag = ( is_front_page() ) ? 'h1' : 'div';
            $title = get_bloginfo( 'name' );
            $site_url = get_option( 'siteurl' );
            $img = '<a title="'. esc_attr( $title ) .'" href="'. esc_url( $site_url ) .'"><img src="URL TO YOUR IMAGE" alt="'. esc_attr( $title ) .'" /></a>';
            $title = sprintf( '<%1$s id="site-title">%2$s</%1$s>', tag_escape( $tag ), $img );    
    
            return $title;
    
    }

    After ending } of theme setup function. To be super clear you’ll add it after this:

    add_theme_support( 'automatic-feed-links' );
    add_filter( 'hybrid_site_title', 'my_custom_image' );
    }

    Regards,
    Sinisa

    #4726
    Henny Zutt
    Participant
    This reply has been marked as private.
    #4751
    Henny Zutt
    Participant
    This reply has been marked as private.
    #4752
    Support Staff
    Keymaster

    I just resent purchase receipt to Joyce, so she’ll be able to download theme from email link.

    Regards,
    Sinisa

    #4753
    Henny Zutt
    Participant
    This reply has been marked as private.
    #4765
    Support Staff
    Keymaster

    Sent.

    #4770

You must be logged in to reply to this topic.

Viewing 7 posts - 1 through 7 (of 7 total)