WordPress theme sharing

888u

Last update at :2024-03-04,Edit by888u

Introduction

Kratos-pjax is a two-dimensional WordPress theme. It is very powerful and free and open source. Open source means that the author will not leave any backdoors. The author will update it for a long time. This theme is modified based on the Kratos theme and has a lot of additions. Functions, such as Pjax function, hidden article function, strengthened wordpress editor, and added a lot of short codes. Videos from major video websites can be directly called using short codes. The author is the administrator of Panxinjiange.

Interface

Theme project address

https://github.com/xb2016/kratos-pjax

Demo address

https://www.fczbl.vip (author’s blog)

Installation tutorial

1. Download the theme file on github. See the figure below for the specific download. 2. Open the appearance of the WordPress backend - theme, select upload theme, and then directly upload the compressed package you downloaded to install and start it.

Installation Notes

*. Regardless of whether you have made changes, please save the theme settings after enabling the theme for the first time. 1. If the article layout is a new layout (left picture with words on the right), the picture display priority is: featured picture set on the article editing page > first picture in the article > picture specified in the theme settings. Among them, if the featured image is not specified in the theme settings, one of the 20 images under /static/images/thumb/ will be randomly used. If the article layout is set to picture above and words below, the picture will not be displayed by default. If it needs to be displayed, please manually set the featured picture on the article editing page. 2. Please do not include script tags in the site statistics code in SEO settings. 3. To ensure that the comments on the mobile terminal are displayed normally, I personally recommend that the number of comment nesting levels should not exceed 5. 4. WordPress settings have higher priority than theme settings. If you enable the password registration function, you need to set up to allow registration first.

Top menu settings

1. Select "Appearance" - "Menu" to create and set up the menu. If you have created it manually, please skip this step. If you do not execute the create menu command, the display may be garbled. At the same time, for users who use image headers, please try to reduce/shorten the first-level menu. Like me, 7*2 words are about the same. Too many words will be crowded on the mobile phone, so you need to pay attention. Note: For the secondary menu, just drag the menu one position to the right. If you want the menu to have no click jump effect, please add a custom link first, and then clear the URL on the right side. 2. Select the menu you just created in the top menu. Notice: 1. I feel that the displayed menu items are too close together. What should I do? Hit the space. 2. What should I do if I want to display an icon in front of a menu item? Please educate yourself about Font Awesome 4.7.

OwO expression

Here are some ways to modify emoticons: 1. Picture location: /static/images/smilies/. For expressions that are not in png format (especially gif), please take a screenshot of a png with the same name and put it in. The jpg format can be directly converted to png. 2. Image naming: It can be composed of letters and numbers, which is the same as the short code naming. For example, the short code of is: yinxian:, then the file name should be yinxian.png. 3. Escape short codes and images: Just edit the //Comments face part in /inc/post.php. 4. Introduce emoticons into the emoticon panel: edit /inc/OwO.json.

Friend link template

1. Create a new page, select "Friendly Link Template" in the template column on the right, and then publish. 2. Just add a friend link in the "Link" menu in the background. Notice: 1. You can write things on the page created with the template. It will appear below the link list. You can write application requirements for friend links and so on. 2. In the Add Link menu, there are four parts that the template calls, namely name, Web address, image description, and image address. The rest can be left unchanged. 3. In the project + friend link template, "My own project" needs to check "My other web address". 4. If you want to write your own template, copy the page.php file and rename it to page-xxxx.php, modify the required content, and then put it into the pages folder.

Video short code

Some parts may require Adobe Flash Player to play

Code call

[youku]Video ID[/youku] [vqq auto="0"]Video ID[/vqq] [youtube]Video ID[/youtube] [bilibili cid="Video CID" page="1"]Video AID[/bilibili]

Data acquisition

  • Youku video: https://v.youku.com/v_show/id_XMTg2NDYyNDk4OA==.html
  • Tencent Video: https://v.qq.com/x/cover/yw2ytzeu2oaprea/g0024h9wcmw.html
  • YouTube: https://www.youtube.com/watch?v=WrY6n0gDuAc
  • Bilibili: https://www.bilibili.com/video/av4839483

The content marked red in the URL is the video ID. 0 in the auto="0" parameter of Tencent Video means non-automatic playback and 1 means automatic playback. Bilibili also needs to use the CID. For the video CID, please go to https: //www.bilibili.com/widget/getPageList?aid=4839483 Obtain, 4839483 here is replaced with the AID of the video

Editor and shortcode

Visual editor:

Text editor:

The following are some demonstration effects of shortcodes: Note: Short codes cannot be nested

Thanks to Mr. Meng Kun for the tip, the nested use of different types of short codes is now supported. But nesting of the same type still rolls over.

Recommended site search: query domain name, domain name service provider, ip rental, Japanese server rental Japanese server, domain name registration service, foreign space, ip proxy free version, Hong Kong server purchase, Hong Kong server recommendation, website space rental,

WordPress theme sharing

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码