WordPress Build Station Guide (1)

Source: Internet
Author: User
Tags net domain

Write in front:

March with 10 days of piecemeal time to complete the construction station, backstage 95% of the work are to WP (WordPress). If you want to lazy, WP is a perfect choice, estimated that a small half a day to build finished.

Want to have a small garden of their own, but not php such things, but also do not know much about CSS, HTML also know very little? It doesn't matter, CMS + front-end frame, a little later on, the place that needs to be done is really very few.

P.S. There is no time to build the station series, today by WP Gas broke, almost rebuilt from scratch, had to first put down the use of things, lest later find

I. Conditions for site construction

First of all, some hardware things are needed:

    1. Server space: The cheapest way is to use the SAE or other "free" space; the cheaper way is to rent a virtual host; Well, the way to hurt money is to rent a cloud server. Choose one of the three, and watch the purse talk.
    2. Domain: Rental space will generally give a free domain name, but you certainly do not like. can go to find a free, such as. tk and so on, you can also spend a little money to rent a domain name,. com/.cn/.net and so on are very cheap, the key is to look comfortable.
    3. Domain Name Certificate: that is, the so-called "record", if the domain is free of charge is certainly not so troublesome, the domain name of their own need to record, it is "legal". General domain name provider to the record guide, only need to run errands on their own photos sent to the past.
    4. FTP tool: Install an FTP tool and you can plug things into your own space later.

Of course, if you want to do a good job of the site, but also need some knowledge skills: HTML, CSS, JavaScript, php/asp, such as the service-side language, seo/semantics and other common sense

The author's configuration:

88/year 150M virtual Host + 55/year of. NET domain name + FileZilla

Two. Programme selection

With the hardware conditions, do not worry about writing HTML, we choose options

Background:

If time is full of energy, and the skill tree point is relatively wide, you can consider your own background: Database design + layered design + php/asp encoding implementation

If the time is limited, or not a lot of skills, you can use the CMS, the better is:

    • WordPress, is said to have a good SEO, mass template, pseudo-static page
    • Weaving dream CMS, is said to be simple and easy to get started, really static pages, and, the name is nice
    • Imperial CMS, more difficult than weaving dreams, but is said to be more powerful

P.s.cms is to help you manage the backstage tools, support basic Publishing, query, modify, delete information, as well as RSS generation, automatic semantic/seo and other benefits, with it, the basic worries will not

Front:

If the CSS experience is not very rich, consider choosing a front-end framework, such as:

    • Bootstrap, very powerful responsive layout, of course, because it is responsive, so does not support [ie7-]
    • YUI, full browser compatible, very strong and very "heavy"
    • Easyui, full browser compatible, than Yui to "light"

You can use these frameworks to easily build good-looking pages, if you have a CSS base, or want to exercise page design ability or self-pinch good, not necessarily beautiful, but look pleasing to the eye

The author's proposal:

WordPress + JQuery

Three. Rapid Build station

The first step is to test the server space

Get a simple HTML or php/asp file with the FTP tool and try to access it. Of course, if the domain name is not bound to the space, you have to bind first. Generally will not have any problems, if there is a problem to find the Seller customer service theory, they will help you fix.

Step two: Install the CMS

Download to the local CMS upload to the server, and then follow the CMS Guide step-by-step installation, it is important to ensure that the process is not wrong

Step three: Enter CMS admin

Login CMS Backstage, write something, add a page, send an article What, try CMS function

Four. WordPress related issues 1. How do i show the summary only on the homepage?

WP default is to display the full text on the home page, an article two fortunately, the article more can not stand, especially the long scroll bar, looking also uncomfortable. You can display only the summary, as follows:

    1. Go to Admin page/appearance/edit
    2. Find content.php in the list on the right and click on it to edit online (index.php is not available in the new version)
    3. Ctrl + F searches for "entry-content" and changes the code inside this div to:
<?php//comment in Chinese is invalid if (!is_single ()) {the_excerpt ();} Else{the_content (__ (more ...))); >

Notice before and after the <?php,?> don't lose, you can first back up the contents of the text box, safekeeping

2. How to modify the footer of the WordPress small tail?

Generally there will be "proud to use WordPress", "another WordPress site," such as the small tail, can be easily modified:

    1. Ditto
    2. footer.php
    3. Search "<?php printf (", "<?php printf (__ (' proudly powered by%s ', ' Twentytwelve '), ' WordPress '),?>" to your own footer, and after the change It might look something like this:
<a href= "<?php Echo esc_url (__ (' http://wordpress.org/', ' twentytwelve '),?>" title= "<?php esc_attr_e (' Se Mantic Personal Publishing Platform ', ' twentytwelve ');?> ">powered by wordpress</a>

The same as the change of the header, in the header.php inside to look for good

3. How do I use markdown?

Markdown is a good thing, WP no native support, but can go to find plug-ins, background management/plug-ins/install plug-ins, a search a large pile, see popular pick a good

4. How do I filter malicious comments?

In the comment box can enter the JS script, this is not scientific, but it is said that WP comes with a script filter, but by default not for the administrator, we can turn on the script filter ourselves:

Background Management/appearance/editing/functions.php

Insert the code below the first comment:

/*comment filter*/function Code_escape ($incoming _comment) {$incoming _comment = strip_tags ($incoming _comment, Ent_ QUOTES);//filter php, HTML and XML Tabsreturn $incoming _comment;} Add_filter (' Comment_text ', ' code_escape '); Add_filter (' Comment_text_rss ', ' code_escape ');

This allows the script to be filtered, such as input comments, <script>alert (' XSS attack ') </script>, and will become XSS attack text after submission

5. How do I sync updates to Weibo?

Predecessors gave the plan, very easy to use. Of course, this solution is a way of thinking, not only to solve the problem of sharing, but also to update the custom page, such as when posting a blog to update a corner of a file, very good

P.S. Just completed the Sync Update calendar feature today, see the upper left corner of the breeze

6. Issues to be aware of
    • When modifying PHP files, do not download-modify-upload, as far as possible directly online editing , because after the download of local editing may appear strange coding problems, BOM symbols and so on
    • Changes in the code can not have Chinese comments , because it will be wrong, to fonctions.php to add a Chinese comment immediately error, and WP error no use, toss a day, and finally choose to delete it again
Something

Simple to build the site related content on these, is still in repair modification, the use of WP's function is actually relatively few, to WP is also in the smattering stage, and so groping familiar with the other features and solutions

WordPress Build Station Guide (1)

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.