Home > Article > Backend Development > Regarding the problem of Typecho customizing the previous and next article links
I hope that the HTML style of the last two chapters of the article is as shown below:
Demo:
In the code, I referred to the customization in http://t.160.me/33.html, but I couldn’t add the title of the previous article in the area as shown below
Using the reference custom code, I wrote The picture below:
<code><?php $this->theNext('%s', NULL, array('title' => '<strong class="article-nav-caption">Newer</strong><div class="article-nav-title">标题</div>', 'tagClass' => 'article-nav-link-wrap prev')); ?> </code>
I hope to add the title of the previous article in the title
place, but typecho seems to have no function to output the article title by default. I don’t know what to do now. I hope someone can help me. Thank you!
I hope that the HTML style of the last two chapters of the article is as shown below:
Demo:
In the code, I referred to the customization in http://t.160.me/33.html, but I couldn’t add the title of the previous article in the area as shown below
Using the reference custom code, I wrote The picture below:
<code><?php $this->theNext('%s', NULL, array('title' => '<strong class="article-nav-caption">Newer</strong><div class="article-nav-title">标题</div>', 'tagClass' => 'article-nav-link-wrap prev')); ?> </code>
I hope to add the title of the previous article in the title
place, but typecho seems to have no function to output the article title by default. I don’t know what to do now. I hope someone can help me. Thank you!