The last article is celebrating the New Year, hanging lanterns!Teach you to hang an animated lantern on your blog. Maybe you think it's fun, then share a special effect of falling petals, which can be added to your blog to decorate the festival atmosphere.Click the following figure to view the animation effect. Paste the code first, and then download the packaged file
If you want to add information about the author of the article at the end of a WordPress article, the following code can easily add an author information box to the article.Add code to the current topic functions.php: function wp_autho
The problem of slow loading of Gravatar avatars has been puzzling us all the time. It may be the only feasible way to enable local caching of avatars or cache them on a cloud like Qiniu Cloud.Another depressing thing is that many commenters have not applied for Gravatar avatar and can only display WordP
At present, the commonly used social sharing tools are Baidu Share and JiaThis. In particular, this JiaThis is old enough to provide free tools for everyone after Baidu joined this field. Here are 32 likes!With the change of the times, these sharing tools come with
Following the WordPress Foreground Display the Last Login Time of the Login User and WordPress Foreground Display the Registration Time of the Login User, further improve the information of the login user at the front desk. This article shares a section of WordPress code showing the role of the login user.Change the following
It is recommended that two pieces of code be automatically renamed when uploading media files.Code 1: renaming the uploaded file by time will rename the file in the format of "Year Month Day Hour Minute Second+Thousand Milliseconds Integer", such as "20161023122221765. jpg"//wordpres
The function of WordPress users is relatively weak. Many Chinese are familiar with some user information without default calling codes, such as user registration time, last login time, etc. The first article "WordPress Front Desk Display Login User's Registration Time" can display the user registration time in the front desk, here again
Normally, neither the foreground nor the background of WordPress will display the user's registration time. Sometimes it is necessary to display the login user's registration time in the foreground, which can be achieved by using the following code.Add code to the current topic functions.php: function user_
The previous WordPress Asynchronous Loading JavaScript Plug in: Async JavaScript recommends a plug-in for asynchronous loading of JavaScript. If children do not like to use plug-ins, you can use the following code extracted from the plug-in
It is sometimes necessary to open a link in a new window. The following simple example uses JQuery to selectively open a link in a new window.Add code to the theme header.php template, provided that your theme template has preloaded JQuery
According to foreign statistics, 80% of the pirated commercial charging topics have backdoors. For example, the article I wrote earlier, "Be careful! There may be backdoors in pirated topics". For those who have some programming knowledge, it is still easy to play tricks on Xiaobai.Here are some free WordPress for companies and enterprises
When we need to display the parent category and current category link of an article, we can use this code: $categories=get_the_category();echo '<ul>'; echo '<li>...
The ALT attribute of an image is not only helpful for search engines to index images, but also displays the ALT information of an image when it cannot be loaded.When inserting pictures into WordPress articles, you can fill in ALT information in the "alternative text", but a large number of Gravatar avatars in comments are generally
Sometimes you need to add pictures to make comments, but WordPress itself does not have the function of comment mapping. You can add the following code to the current theme functions.php file: add_action ('comment_text ','com