wordpress网站侧边栏添加广告位代码
在wordpress后台选择外观→小工具→侧边栏,然后点击添加小工具选择增强文本添加,将下面代码放在增强文本的内容里面即可。
<html>
<head></head>
<body>
<div style="position: relative;">
<a rel="external nofollow" target="_blank" href="https://www.baidu.com" rel="nofollow" target="_blank" data-original-title="预留位广告" title="预留位广告">
<img class=" aligncenter" src="https://gitee.com/hbq1231/tuchuang1/raw/master/20210611172413.png" alt="广告测试" style=" margin-left: 0px; padding: 1px;margin-bottom: 1px; border-radius: 4px;" width="360" height="120" />
</a>
</div>
<div style="position: relative;">
<a rel="external nofollow" target="_blank" href="https://www.csdn.net" rel="nofollow" target="_blank" data-original-title="预留位广告" title="预留位广告">
<img class=" aligncenter" src="https://gitee.com/hbq1231/tuchuang1/raw/master/20210611172413.png" alt="广告测试" style=" margin-left: 0px; padding: 1px;margin-bottom: 1px; border-radius: 4px;" width="360" height="120" />
</a>
</div>
</body>
</html>
最终的效果