马春杰杰博客
致力于深度学习经验分享!

[mcj]为WordPress网站增加go跳转功能

最新目录

总览

让我们来看一下go跳转的效果:

步骤1

首先在站点根目录建立go目录,然后在go目录新建index.php文件,文件内容填写:

步骤2

打开站点主题目录下的functions.php,插入如下内容:

然后我们在添加站外链接的时候,就会自动通过go跳转了,如果是站内链接,则会直接打开。

点击下面测试一下效果:

https://google.com

赞(340) 打赏
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《[mcj]为WordPress网站增加go跳转功能》
文章链接:https://www.machunjie.com/web/193.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。

评论 25

  1. #13

    Thanks for finally writing about > [mcj]为WordPress网站增加go跳转功能-马春杰杰
    < Loved it!

  2. #12

    I think what you wrote made a bunch of sense. However, consider this, suppose you added a little content?
    I mean, I don’t wish to tell you how to run your website, however what if you added something that grabbed people’s attention? I mean [mcj]为WordPress网站增加go跳转功能-马春杰杰 is a little plain. You ought to glance at Yahoo’s front page and see how they create post headlines to get viewers to click.

    You might add a video or a picture or two to grab
    readers excited about what you’ve written. In my opinion, it
    would bring your website a little livelier.

    genset perkins 2000Kva7年前 (2019-08-04)回复
  3. #11

    Very descriptive post, I enjoyed that a lot. Will there be a part 2?

    BankID casinon7年前 (2019-07-21)回复
  4. #10

    Hi there, I enjoy reading all of your article post. I wanted to write a little comment to support you.

    genset hartech 500Kva7年前 (2019-07-21)回复
  5. #9

    Wow, superb weblog layout! How lengthy have you ever been blogging for?
    you made blogging glance easy. The entire look of your
    site is fantastic, let alone the content material!

    genset perkins 10Kva7年前 (2019-07-19)回复
  6. #8

    It’s going to be finish of mine day, but before ending I am reading this impressive paragraph to
    increase my experience.

  7. #7

    Nice post 🙂

    michael marquart feel me7年前 (2019-07-04)回复
  8. #6

    Thanks a bunch for sharing this with all people you really recognise what you are talking about!
    Bookmarked. Please also visit my site =).
    We will have a hyperlink exchange contract among
    us

  9. #5

    Question… have you tried any other blog platform before…?
    What is your opinion?

    sports news7年前 (2019-06-22)回复
  10. #4

    最大传输单元这个参数通常与通信接口有关(网络接口卡、串口等)。如:80、21等等。如果你技术不太好那么就直接关机吧。如果不是国内备案比较复杂,将来规模应该会非常大。 ,一种覆盖一座或几座大楼、一个校园或者一个厂区等地理区域的小范围的计算机网。京东云也是最近刚开始做的云计算,京东投入也比较大,目前针对新客户可以免费试用6个月。 VPS方案分为流量型和带宽型两种流量计费方式,有SSD硬盘和普通硬盘两种存储方式。是指一种通信协议的某一层上面所能通过的最大数据包大小(以字节为单位)。

  11. #3

    Nice weblog here! Additionally your website quite a bit up very fast!
    What host are you the use of? Can I get your affiliate hyperlink
    on your host? I desire my web site loaded up as fast as yours lol

    Aline7年前 (2019-05-24)回复
    • my web server is Nginx , with AWS lightsail,It’s very stable~~only 5$/month , you can try it ~

      马春杰杰7年前 (2019-05-24)回复
  12. #2

    Greate article. Keep writing such kind of information on your page.
    Im really impressed by it.
    Hey there, You’ve done a fantastic job. I will certainly digg
    it and in my opinion recommend to my friends.
    I am confident they will be benefited from this website.

  13. #1

    Good blog you have got here.. It’s difficult to find quality writing like yours nowadays.
    I truly appreciate individuals like you! Take care!!

    gclub7年前 (2019-05-23)回复

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

:smile: :sad: :arrow: :cool: :confused: :cry: :eek: :evil: :exclaim: :idea: :lol: :mad: :mrgreen: :neutral: :question: :razz: :redface: :rolleyes: :surprised: :wink: :biggrin: :twisted: