Logo

Home Forums Theme Support Logo

  • Question status -
  • Nicole Tomczak
    Participant

    How do i change my logo?
    I dont get the video you provided.

    – Nicole

    #5656
    Support Staff
    Keymaster

    Hi Nicole,

    to change the logo paste this at the end of your functions.php file:

    add_filter( "hybrid_site_title", 'my_custom_image' );	
    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;
    
    }

    Replace URL TO YOUR IMAGE in this snippet above with your logo URL and that’s it.
    Let us know if you have any more questions.

    Regards,
    Sinisa

    #5658
    Nicole Tomczak
    Participant

    Hi Sinisa

    I tried this and it does not work. Only makes some pages on my webside inaccesible with error 500.
    Are you sure the code you gave me is the correct code for my theme, and am i supposed to insert in at the very last part of the functions code ?

    Was really hoping this theme would be a little more user friendly, nice that you are helping me out!

    Best regards
    Nicole

    #5660
    Support Staff
    Keymaster

    Hi Nicole,

    can you please give me admin access to your site, I’ll do it for you?
    Just mark reply as private, and no one will see user & pass except me.

    Please leave me also link to your logo / image.

    Regards,
    Sinisa

    #5661
    Nicole Tomczak
    Participant
    This reply has been marked as private.
    #5662
    Support Staff
    Keymaster

    Hi Nicole,

    that image is not appropriate for logo, that’s more like a header image. It’s not appropriate even for the header, height is to big, and even if it would fit to header – your site would not look good.

    People commonly use just small logo before the image before the site title, and I took a liberty to do it for you, just to show you how things work in most cases.

    Let me know if I can help you somehow, but please try to understand first what I said.

    Best regards,
    Sinisa

    #5663

You must be logged in to reply to this topic.

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