Home  >  Article  >  Backend Development  >  Regarding the problem of Typecho customizing the previous and next article links

Regarding the problem of Typecho customizing the previous and next article links

WBOY
WBOYOriginal
2016-08-04 09:22:081446browse

I hope that the HTML style of the last two chapters of the article is as shown below:
Regarding the problem of Typecho customizing the previous and next article links
Demo:
Regarding the problem of Typecho customizing the previous and next article links


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:
Regarding the problem of Typecho customizing the previous and next article links

<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!

Reply content:

I hope that the HTML style of the last two chapters of the article is as shown below:
Regarding the problem of Typecho customizing the previous and next article links
Demo:
Regarding the problem of Typecho customizing the previous and next article links


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:
Regarding the problem of Typecho customizing the previous and next article links

<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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn