" tag. ..}" will do."> How to add loading prompt in WordPress article title link-WordPress-php.cn
Home> CMS Tutorial> WordPress> body text

How to add loading prompt in WordPress article title link

藏色散人
Release: 2020-01-04 10:20:21
Original
3054 people have browsed it

How to add loading prompt in WordPress article title link

How to add a loading prompt to the WordPress article title link?

The example in this article describes how to add a loading prompt to the WordPress article title link. Share it with everyone for your reference. The specific analysis is as follows:

Recommendation: "wordpress tutorial"

We will see many friends who use wordpress blogs. When we click on the title of the article, It will first prompt that it is loading, and then enter the article. Here we will introduce to you the effect of adding a loading prompt to the WordPress article title link.

First open the header.php template file of the theme you are using, Add the following code before the

tag:

The code is as follows:

Copy after login

If your theme has loaded JQuery, this step is unnecessary, and then add the following code in the same way Before adding the

tag, the code is as follows:

The code is as follows:

Copy after login

where "h2 a" is the tag selector for the title of the topic article, which can be modified according to the specific theme template , if changed to: "a", this special effect can be added to all links. The following number 2011 is the display time (milliseconds) of this special effect, which can be modified as appropriate.

The above is the detailed content of How to add loading prompt in WordPress article title link. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!