Yang Zeyi: Add classic quotes to your PHP site

Source: Internet
Author: User
Tags wordpress blog

We make a website that is going to keep giving visitorsprovide the best user experience, whileEnhance your brand's value, and the end of the article the function of the classic quotations, can achieve the effect we want to achieve. such as

Add the classic quote feature to your WordPress blog

How does this happen? In fact, it is very simple, I will share the core files and code to everyone.

The first step: Add the core file of the quote function.

Add a Yulu folder to the root of the Web site containing index.php and yulu.txt two files. Where index.php inside is the core code, Yulu.txt is to display the classic quotations, one line occupied.

At the end of the text for free to download all the files, given the download file inside there is a number called Yulu888.txt file has a lot of online download quotations, anyway I do not, I completely use their own custom.

Step Two: Add the display code to the specified display location.

I'm using the robin's begin template, and I put the location of the classic quotes in the appreciation below, i.e. add this code at the bottom of the begin\template\social.php.

  1. <!--Classic Quote function Start-

  2. <div>

  3. <script type="Text/javascript" src="https://your domain/yulu/?format=js&charset=utf-8">< /script>

  4. <div id="Yulu"><script>yulu () </script></div>

  5. </div>

  6. <br>

  7. <!--the end of the classic quote feature

Of course, in order to show a little more beautiful, you can add CSS code in the current topic begin: Style sheet (style.css) of the blog, such as:

  1. #yulu {

  2. border-left:5px solid #2f889a;

  3. border-right:5px solid #2f889a;

  4. Background-color: #ebebeb;

  5. Padding:10px;text-align:center;

  6. Color: #095AD4;

  7. margin:5px 0 5px 0;

  8. }

Well, to your WordPress blog to add Classic features, suitable for all of the PHP Web tutorial to this end, directly below click Download it!


This article by Tze Industry original, published in 51cto blog

Yang Zeyi: Add classic quotes to your PHP site

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.