Wordpress Themes are basically not optimized, and are unfriendly to search engines. The webmaster special effect network is optimized using the following method. I hope it will be helpful to you.
1. You can modify the title optimization code based on your website:
<Title> <? Php if (is_home () {bloginfo ('name'); echo "-provides comprehensive webpage special effects and advertisement code, and common js special effects and scripts on webpages. ";} elseif (is_category () {single_cat_title (); echo"-"; bloginfo ('name');} elseif (is_single () is_page ()) {single_post_title (); echo "-"; $ category = get_the_category (); echo $ category [0]-> cat_name; echo "-"; bloginfo ('name ');} elseif (is_search () {bloginfo ('name'); echo "search result:"; echo wp_specialchars ($ s ) ;}Else {wp_title (", true) ;}?> </Title>
2. Add the keyword keywords and description for the home page, category page, and Article Page:
<? Php if (is_home () {$ keywords = "webpage special effects, ad code, js special effects, js special effects code, scripts, special effects, js scripts, javascript special effects, script code, js, javascript "; $ description =" the most comprehensive webpage special effects code and js scripts. js special effects are required for webpages, includes common image effects, date effects, text effects, window effects, layer effects, form effects, color effects, mouse effects, and a large number of high-quality advertising code. "; } Elseif (is_single ()){
$ Keywords = ""; $ tags = wp_get_post_tags ($ post-> ID); foreach ($ tags as $ tag) {$ keywords = $ keywords. $ tag-> name. ""; $ description = $ post-> post_excerpt; }} elseif (is_category (3) {$ keywords = "navigation menu, hide, scroll, tab, pop-up, left, transparent "; $ description =" special effects commonly used in navigation menus, such as hidden effects, fading, and pop-up special effects. ";} Elseif (is_category (4) {$ keywords = "image effects, image switching, scrolling, image display, amplification, fading, floating, transparent, and dragging "; $ description = "common webpage image effects. Common website effects include image switching, image display, image scrolling, image floating, Image zoom-in, and fading. ";} Elseif (is_category (5) {$ keywords = "date special effects, timing, countdown, clock, calendar, acquisition, calendar, pop-up "; $ description = "very useful js date effects, such as webpage clock script, timing, countdown script, text box date selection, etc. ";} Elseif (is_category (6) {$ keywords = "color effect, gradient, background color, blinking"; $ description = "webpage color effect, js control background color, color, and other webpage effects are all collected here. ";} Elseif (is_category (7) {$ keywords = "special text effects, timing, flickering, double-click, pop-up, scroll"; $ description = "collect the most comprehensive special text effects, such as text scrolling, timed display, flashing effect, double-click, pop-up effect, and scroll effect. ";} Elseif (is_category (8) {$ keywords = "form button, text box, restriction, button, input box, list box, select all, select inverse, copy, join menu, drop-down menu, jump, linkage menu, timing, pop-up, get "; $ description =" very comprehensive form button special effects, commonly used effects include full selection, reverse selection, js get parameter values, linkage menu and other webpage special effects. ";} Elseif (is_category (9) {$ keywords = "window effect, pop-up, pop-up, expand, bottom right corner, prompt layer, frame, timing, Prompt window "; $ description = "webpage window special effects tips, webmasters usually use pop-up windows in the lower right corner, window pop-up, prompt layer, frame, and other webpage special effects. ";} Elseif (is_category (10) {$ keywords = "Table layer, prompt layer, line-by-line color change, scroll bar, cell, drag, hide, hide, contract, pop-up "; $ description = "special effect gathering place for webpage table layers, frequent webpage effects such as line-changing, dragging, hiding, and pop-up layers. ";} Elseif (is_category (11) {$ keywords = "Mouse effect, click, disable, right-click, mouse sense, follow "; $ description = "The mouse effect is also a common webpage special effect. For many websites, right-click disabling and mouse sensing are good examples. ";} Elseif (is_category (12) {$ keywords = "tab, jump, match, deny, get, single quotes, generate"; $ description = "Comprehensive webpage effects, A complex webpage special effect, which is often combined with several special effects to achieve the final effect. ";} Elseif (is_category (13) {$ keywords = "ad code, image switching, upper-right corner, image display, couplet, image switching, scaling "; $ description = "collect the most comprehensive advertising code. images are commonly used in websites, and there are various types of advertising code. ";} Elseif (is_category (14) {$ keywords = "webmaster news, webmasters make money, websites make money, web development, website operation, and website profit "; $ description = "the webmaster often reads Articles and considers how to operate the website for profit. "; }?>
<Meta content = "<? Php echo $ keywords;?>" />
<Meta content = "<? Php echo $ description;?>" />
Here, the number in is_category (4) is the id of each category. It does not look at the database and can be restored to the default link. Then, the cursor goes through the navigation bar and you can see the lower left corner? Cat = XXX. The following number is the category ID.
The title of the article can be set as follows: Document Name, category name, and website name. How do I obtain the category name? The above code is: <? Php $ category = get_the_category (); echo $ category [0]-> cat_name;?>
All of the above are modified in header. php under the topic directory. The template names of each topic should be the same. If they are different, you can find the header file by yourself.