Important!. The article left out all the angle brackets. They must also remove and replace the subject, where indicated in the article.
T. e. we are required to integrate the theme into a single file, remove the widgets and put text labels. Let's start!.
1) Search Thread. It is very easy. Type in google. WordPress Themes. And our services are hundreds of websites. We select a suitable site, choose an appropriate theme, download and unpack it on your computer.
2) Merging into one file. We need the files to index. php, header. php, footer. php - other files are optional and are connected to be found in the specified files for designs such as:? php include (TEMPLATEPATH. '/ navigation. php ');? . e. Here, this design seems to be saying that we need more and file navigation. php.
Now take the contents of the file header. php and put in place a widget? php get_header ();? . php instead? php get_footer ();?. half the job done.
Wherever found include, replace it with the files that are connected. T. e. in this case is replaced by the contents of the navigation. php. The very form of construction may vary from topic to topic, but it should not confuse you - need to replace all that? Php up to? . Three-quarters of the case made in this.
3) Remove the widgets. In fact most of the removal of the PHP code runs smoothly, however, there are threads where you have to do it carefully so as not to damage the template. In our example, a case in point.
We are looking for all the pieces, where it occurs? Php?.
html xmlns = 'http://www. w3. org/1999/xhtml '? php language_attributes ();?.
That's garbage, because garbage. But take our default template for Satkha and look similar line. And do not find. And remove this line nafig future pattern. It also comes with all the cryptic strings that contain? Php?.
link rel = 'stylesheet' href = '? php bloginfo (' stylesheet_url ');?' .
change in.
link rel = 'stylesheet' href = 'style. css' type = 'text / css' media =' screen '.
Note that in this example, two DCS file, but we only take the above, because we can only take one - Satkha not yet able to determine the version of browser.
And now the fun. Now we need lokalhost without a compiler to determine the meaning units. Do not forget that the template for Satkha - this is the usual html. Hence we have the advantage of cunning. If you look at the assembled template 's web browser without apache, then we can see where and what to change widgets. To do this, take your browser, we find in the menu File - Open File and open our template.
Yeah, this is the first caulking:? Php art_menu_items ();? . Take and change it to blah-blah -blah, and it is easy to find this button at the top of any. Of course, you can search for their registration in the DCS file, or find a widget is responsible for the menu, but we were too lazy to do it and we just delete the blah-blah -blah and go further.
Next on our way:? Php bloginfo ('name');?. Replace and look at the blablashechku. Aha! . Just below the description of the widget. Then do what we wanted and. The first way - we can replace the tags / / TITLE / / and / / DESCR / /, and we can send and text. But I will replace the labels. It's more fun.
And now we got to the dull and dreary part of the. This is the conclusion to the topic under the terms of. Or alteration of structures if, for example:? Php if (have_posts ()):?. Here, the output is the same as above - set the text and see how much we need it, where was. For a body in our Satkha only one label / / BODY BLOCK / / and we need to stick it in the right place!.
? php bloginfo ('template_url');? . Replace it with a point or remove it with a slash after the.
While we are tinkering with the template, then gradually saw that part of the html- code is responsible for the conclusion of the article. And we can use this code, for example, for $ _CONF_BODY_BODY_TEXT.
Therefore, we throw away, and instead just insert the label of the block / / BODY BLOCK / /.
Now looking for a place at random for the / / LINK BLOCK / /, the path we are now removing unnecessary widgets and text. The essence of the search in the following: any unfamiliar text or widget, we replace them by blablashechku and see where it appears. Then put your own text or in a place or a label or a clean.
So, at random, we find places for nearly all we need tags: announcements, news, menus, and even advertising. Finish work replacing the copyrights in the pan. I did not change, just stuck blablashechku.
The work is finished. Now we have to Satkha index remains. php, and we rename it to shablon. html, so it does not match the name of the root file in the engine. In addition, we need more style. css and images folder. Fill it all in the root of the engine, fasten the template in the config / configbase. php and all. Template works.
references:.
------------.
The version 4 Satellite-X. 0. a. - Admin has become even better, returned almost all features of three. 2. a. You can download the update at the club and buy a license and access to the club may have. dealers. (cheaper ) or. directly.
---------------------------------.
Sign up. to update the blog with one click!. Read on Twitter!. ::. Advertising blog.
Комментариев нет:
Отправить комментарий