一为导航主题详情页-网站预览截图代码
WordPress的iotheme主题内容content区域放置网站预览截图代码
首先找到onenav/inc/functions下面的io-single-site.php文件。在php文件中的第106行
if('down' === $sites_type){ 的前面,添加以下代码即可:
//网站预览开始
$link = get_post_meta($post_id, '_sites_link', true);
?>
<img width="100%" data-src="//s0.wp.com/mshots/v1/<?php echo urlencode($link); ?>" alt="<?php the_title(); ?>">
<?php
//网站预览结束
放置这段代码 网站预览截图在详情页内容下面,请自行放置在你认为合适的地方。


共有 0 条评论