User Tools

Site Tools


ru:components

This is an old revision of the document!


Компоненты

Components are small snippits of code or text that can be inserted into a theme template. These are ideal for small blocks of text that are part of a theme file that the website owner may want to edit down the road. Examples are taglines, quotes, or sidebar items.

To create a component, log into your administrator panel and goto Theme → Edit Components. From there, it is pretty self explanatory on how to add or edit existing components.

At the top right of each component is the PHP coded needed to insert that particular component into a theme file:

<?php get_component('tagline'); ?>

Hint: To change an existing component's title, double click the title, and it will change to become editable.

ru/components.1379418815.txt.gz · Last modified: 2013/09/17 11:53 by vladislav