Theme OL

How can Z-Blog make the friendship link not be displayed on the whole site, but only on the home page

ZTOL ZBlog Help 2022-07-27 4 thousand and 500 two

I saw someone ask this question before. The template used by this friend is to arrange the friendship link on the whole site page, but this friend just wants to make a home page link, so his template needs to be slightly modified.

How can Z-Blog make the friendship link not be displayed on the whole site, but only on the home page

When you have such a demand, the first thing to do is to find the php file that controls the footer from your template file, which is generally named footer.php. Then open the file and find the code {module: link}, which is the code that calls the data of the zblogphp background friendship link module. After finding it, observe which HTML code surrounds the code, Finally, cut all these codes to the appropriate location in the file that controls the main body configuration of the home page in your theme.

For example, my:【 Theme OL high-end resource station/source code network theme 】For this theme, the code file controlling the home page in its theme file is "post cms. php". After you find this file, open it, and then find the complete code of the friendship link you cut and add it to the appropriate location in this file. As shown below:

Note: The codes of different topics are different, so this location is also different. You should observe by yourself. If you don't know the exact location, you can try it one by one. Try it several times.

In addition, if your zblog links are only displayed on the home page, and you want to display them on the whole site, you just need to reverse the above steps!

Comment

 User profile tourist
There should be applause here~

Comment List

  •  User profile
    Dream Home (07-21 13:31) reply
    It's really good. The theme doesn't have an independent friendship link. I'll study how to do it
QQ Online Customer Service

customer service

Online time Morning: 09:00-12:00 Afternoon: 14:00-21:00