我应该把我的广告信息放在这个 wp 主题 sidebar.php 的哪里
它位于预先确定的广告空间的 sidebar.php 文件中。我尝试过将图像 URL 和链接 URL 分别放入生成的代码中,但每次都会出现错误。这是代码:
<div class="box"> <!-- Replace to your affiliate link -->
<a href="#"><img src="<?php bloginfo('stylesheet_directory');?>/images/ads125125.jpg" border="0px"></a>
<a href="#"><img src="<?php bloginfo('stylesheet_directory');?>/images/ads125125.jpg" border="0px"></a>
<a href="#" target="_blank"><img src="<?php bloginfo('stylesheet_directory');?>/images/ads125125.jpg" border="0px"></a>
<a href="#"><img src="<?php bloginfo('stylesheet_directory');?>/images/ads125125.jpg" border="0px"></a>
<a href="#"><img src="<?php bloginfo('stylesheet_directory');?>/images/ads125125.jpg" border="0px"></a>
<a href="#" target="_blank"><img src="<?php bloginfo('stylesheet_directory');?>/images/ads125125.jpg" border="0px"></a>
</div>
我也没有看到侧边栏中的放置代码,例如左侧、中心......或任何其他放置参数。错误各不相同。意想不到的“>”第 6 行,意想不到的“?”第8行,总是有意想不到的“东西”行某事。总是作为语法错误引入。 – Archangelm 2 小时前 任何帮助都是一种祝福!
This is located in the sidebar.php file for predetermined adspace. I've tried putting the image URL and the link URL in separetely and by generated code, but I get an error every time. This is the code:
<div class="box"> <!-- Replace to your affiliate link -->
<a href="#"><img src="<?php bloginfo('stylesheet_directory');?>/images/ads125125.jpg" border="0px"></a>
<a href="#"><img src="<?php bloginfo('stylesheet_directory');?>/images/ads125125.jpg" border="0px"></a>
<a href="#" target="_blank"><img src="<?php bloginfo('stylesheet_directory');?>/images/ads125125.jpg" border="0px"></a>
<a href="#"><img src="<?php bloginfo('stylesheet_directory');?>/images/ads125125.jpg" border="0px"></a>
<a href="#"><img src="<?php bloginfo('stylesheet_directory');?>/images/ads125125.jpg" border="0px"></a>
<a href="#" target="_blank"><img src="<?php bloginfo('stylesheet_directory');?>/images/ads125125.jpg" border="0px"></a>
</div>
I also do not see codes for placement in the sidebar such as left, center....or any other placement parameters. The errors vary. unexpected ">" line 6, unexpected "?" line 8, always an unexpected "something" line something. Always introd as syntax error. – Archangelm 2 hours ago Any help would be a blessing!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查您的样式表目录。
将图像放入图像文件夹中并替换图像名称,例如使用图像名称代替 ads125125.jpg。
将您的广告链接更改为您的广告链接
Check your stylesheet directory.
Place your images in the images folder and replace the image name like use your image name instead of ads125125.jpg.
To put your ads links change # with your ads links from