Sometimes you need to add an address you want on the WP page, such as an independent message board or bbs ..
(You can also add it to the menu)
However, my template does not support custom menus. I do not know PHP, but how to do it. I also want to add an independent page and jump to the address I want.
After groping for a long time, I picked up the scriptures from a cow. After a while, I got it out ..
First, create a file named link-to.php with the following content:
View sourceprint? 1 <? Php
2 /*
3 Template Name: link
4 */
5?>
6 <script> location = "address to jump"; </script>
Then upload the link-to.php to the directory of the topic used, for example, the D1 topic, upload to/wp-content/themes/D1,
Create a page in the background and select "link-to" as the Page Template (the "link to" option appears after the file is uploaded );
Location = "the address you want to jump to", so that you can click the page to jump to the address you want to go.
Original article, reprinted Please note: Reprinted from Ps7isys Blog