在新窗口打开wordpress文章页方法

2024-10-14 02:35:59

1、首页文件index.php打开并找到以下代码:<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> <?php the_title(); ?></a>

在新窗口打开wordpress文章页方法

2、把上述代码修改为以下代码:<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>" target="_blank"><?php the_title(); ?></a>

3、新窗口打开网址功能就实现了!

在新窗口打开wordpress文章页方法
猜你喜欢