简体   繁体   English

在我的博客模板上替换静态标题图像

[英]Replacing static header image on my blogger template

I've uploaded the Blogger theme 'Scratch-green' (free version) - does anybody know how I can replace the default header image to one of my own. 我已经上传了Blogger主题“从头开始-绿色”(免费版本)-是否有人知道如何将默认标题图片替换为我自己的图片。 The theme links to this template and I just want to replace the header image to my own. 主题链接到此模板 ,我只想将标题图像替换为自己的标题图像。 Have tried altering various parts of the html and other suggestions found on Google but nothing seems to work!!! 曾尝试更改html的各个部分以及在Google上发现的其他建议,但似乎无济于事!!!

在此处输入图片说明

If I understood your question correctly, you have to replace the src to your own image source location. 如果我正确理解了您的问题,则必须将src替换为您自己的图像源位置。

From the image you provided, the current src is: 根据您提供的图像,当前src为:

<img alt="Harmony Clean Flat reaponsive. . . "
     class="logo-black" 
     src="http://4.bp.blogspot.com/...." />

Change the src to the location of your image and change the alt to an alternative text to show in case the image resource is not found: src更改为图像的位置,并将alt更改为替代文本以在未找到图像资源的情况下显示:

<img alt="a_description_of_your_image_header_or_website"
     class="logo-black" 
     src="http://the_url_to_your_image" />

Hopefully this helps, good luck! 希望这会有所帮助,祝你好运!

could not load template preview: error parsing xml. 无法加载模板预览:解析xml时出错。

Seems like your webpage is being treated like xml . 好像您的网页被当作xml对待。

  1. Try setting your content-type="text/html" explicitly 尝试显式设置您的content-type="text/html"
  2. Often when you provide url s to external resources (in this case your header image), if your src contains special characters you have to write them a different way: 通常,当您提供外部资源的url时(在本例中为标题图像),如果src包含特殊字符,则必须以其他方式编写它们:

eg: 例如:

  • & has to be replaced with &amp; 必须替换为&amp;
  • > has to be replaced with &gt; >必须替换为&gt;

SO if your url looks something like: 所以,如果您的网址看起来像这样:

src="http://example.header&logo-image.jpg"

replace it like this: 像这样替换它:

src="http://example.header&amp;logo-image.jpg"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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