您需要 登录 才可以下载或查看,没有账号?注册
只要把以前文章下列代码 <?php if ($wp_query->current_post == 0) : ?> 广告代码 <?php endif; ?>
修改为:
<?php if ($wp_query->current_post == 0) : ?> <div style=”float:right; padding:3px;”> 广告代码 </div> <?php endif; ?>
就可以显现环绕效果。
float:right为居右显示,假设希望广告居左显示只要改为float:left即可。
然后把修改后的代码插入到索引页模版 (index.php)中的<?php the_content(); ?>前面
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
Archiver|手机版|小黑屋|金光论坛
GMT+8, 2025 年 2 月 11 日 09:26 , Processed in 0.020605 second(s), 23 queries .
Powered by Discuz! X3.5
© 2001-2024 Discuz! Team.