Image 在wordpress的文本小部件中显示图像
我想在文本小部件中显示一个图像(存储在我自己的网站上) 我在wp管理界面的文本小部件中键入了以下代码:Image 在wordpress的文本小部件中显示图像,image,wordpress,path,widget,Image,Wordpress,Path,Widget,我想在文本小部件中显示一个图像(存储在我自己的网站上) 我在wp管理界面的文本小部件中键入了以下代码: <b>See on the map</b> <br> <i>Get Directions</i> <IMG SRC="<?php bloginfo('template_directory'); ?>/buon-appetitoDrottingatan.jpg" ALT="Buon App
<b>See on the map</b> <br> <i>Get Directions</i>
<IMG SRC="<?php
bloginfo('template_directory'); ?>/buon-appetitoDrottingatan.jpg"
ALT="Buon Appetito!" WIDTH=170 HEIGHT=130px>
<br>Drottingatan, 67 Stockholm, Tel: 08-11-22-33
查看地图
获取方向
/""健康饮食"
ALT=“胃口好!“宽度=170高度=130px>
斯德哥尔摩67号德洛廷加坦,电话:08-11-22-33
但是图片没有显示。文本小部件的路径是什么
提前感谢您不能在文本小部件中使用php,您必须将img直接硬编码到其中 即:
查看地图
获取方向
斯德哥尔摩67号德洛廷加坦,电话:08-11-22-33
或者在图像托管站点上托管文件并从中链接。如果您想使用侧栏中发布的php代码或任何未来的代码片段,您可以使用以下wordpress插件: 你可以使用你的代码。如果你有一大块代码,这是很实用的
<b>See on the map</b> <br> <i>Get Directions</i>
<img src="http://yoursite.com/wp-content/themes/yourthemefolder/buon-appetitoDrottingatan.jpg" alt="Buon Appetito!" width="170" height="130px" />
<br>Drottingatan, 67 Stockholm, Tel: 08-11-22-33