简体   繁体   中英

header image in wordpress not loading

Hi I am new to Wordpress. I have to change a wordpress theme. When I change the header image, by simply going to Appearence -> header menu, it uploads the image but the image is not getting displayed on the website? Please can anyone help me. I am very new in this.

The Blog title is being called from your header.php. You would want to add the image before your blog title tag.

Something like

<img src="wp-content/uploads/header.jpg" /><h1 id="blog-title">

You can wrap it in a div and style or position it with css as well.

Example

<div id="header-img">
  <img src="wp-content/uploads/header.jpg" />
</div>

CSS

#header-img {
   padding: 5px;
}

Obviously this is a basic example of how to approach this. If your blog title was not being called from header.php you would need to find where it coming from and make your changes from there. A good Lesson from this should be to locate and learn where wordpress is calling whatever you would like to edit. Things that appear on every page at the top are usually located in the header.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM