I am pretty new in WordPress world (I came from Joomla)
I am finding some difficulties to insert a logo into this WordPress test site: http://onofri.org/example/
I want put my logo in the header of the website, instead the “EXAMPLE” text.
Looking into the WordPress configuration panel I am not finding where I can upload the logo and automatically put it instead the “EXAMPLE” text in the header (I don’t know if this is a standard WordPress function as in Joomla or if it is a feature that can be made available by some specific themes or if I have to put it directly into the code)
However I am not finding it even in my theme settings.
What have I to do to put my logo? Have I to insert it directly into my HTML code?
Try modifying the header section a bit to comply with the standards. Here is what your code right now:
<div id="header-image"> <img width="1102" height="350" alt="" class="header-image" src="http://img.mywordpresstips.com/theme-development/header1.jpg"> </div>
Here is how you can modify the things:
<div id="header-image"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <img src="<?php echo get_template_directory_uri(); ?>/images/logo.png" alt="Logo" width="HERE" height="HERE" /> </a> </div>
There are only 3 steps now:
header.phpwith the code given above.
logo.pngand place it to the ‘/wp-content/themes/simplemarket/images/’ folder.
Hope you get the rest. If any question, please feel free to comment here under.
If there is a “logo” functionality, it will be part of the theme. Perhaps a theme option or part of the theme customization system.
I typically use a Custom Header to do this for commercial sites, though a custom header is not specifically for a logo. It is a generic “header image” function.
In short, this depends on the theme. If it is a theme you are creating, you can edit the theme to add it. See the Codex articles already referenced.
To change the header image go to the admin panel of your wordpress.
In the appearance menu click on header and there you will find the option to upload your header image and Text to appear in your header.
If it’s not showing then you have to edit your header file and insert the following code in your header if it does not exist already.
<?php $header_image = get_header_image(); if ( ! empty( $header_image ) ) : ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>