Logo
Home › Forums › Theme Support › Logo
-
Question status -
-
Nicole Tomczak
ParticipantHow do i change my logo?
I dont get the video you provided.– Nicole
October 21, 2015 at 5:53 pm #5656Support Staff
KeymasterHi 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,
SinisaOctober 22, 2015 at 9:30 am #5658Nicole Tomczak
ParticipantHi 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
NicoleOctober 22, 2015 at 7:04 pm #5660Support Staff
KeymasterHi 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,
SinisaOctober 22, 2015 at 10:28 pm #5661Support Staff
KeymasterHi 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,
SinisaOctober 23, 2015 at 12:55 pm #5663
You must be logged in to reply to this topic.