{"id":233700,"date":"2023-02-21T13:10:00","date_gmt":"2023-02-21T10:10:00","guid":{"rendered":"https:\/\/wordpress.mediadoma.com\/?p=233700"},"modified":"2022-11-11T08:55:55","modified_gmt":"2022-11-11T05:55:55","slug":"posibnik-iz-temi-wordpress-dlja-pochatkivciv-chastina-7-nalashtuvannja-temi-ta-proponovani-zobrazhennja","status":"publish","type":"post","link":"https:\/\/wordpress.mediadoma.com\/uk\/posibnik-iz-temi-wordpress-dlja-pochatkivciv-chastina-7-nalashtuvannja-temi-ta-proponovani-zobrazhennja\/","title":{"rendered":"\u041f\u043e\u0441\u0456\u0431\u043d\u0438\u043a \u0456\u0437 \u0442\u0435\u043c\u0438 WordPress \u0434\u043b\u044f \u043f\u043e\u0447\u0430\u0442\u043a\u0456\u0432\u0446\u0456\u0432 \u2013 \u0427\u0430\u0441\u0442\u0438\u043d\u0430 7: \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0442\u0435\u043c\u0438 \u0442\u0430 \u043f\u0440\u043e\u043f\u043e\u043d\u043e\u0432\u0430\u043d\u0456 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f"},"content":{"rendered":"\n<p>\u0426\u0435\u0439 \u0443\u0440\u043e\u043a \u043f\u0456\u0434\u0440\u0443\u0447\u043d\u0438\u043a\u0430 \u0437 \u0442\u0435\u043c\u0438 WordPress \u0434\u043b\u044f \u043f\u043e\u0447\u0430\u0442\u043a\u0456\u0432\u0446\u0456\u0432 \u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0443\u0454\u0442\u044c\u0441\u044f \u0434\u043e\u0434\u0430\u0432\u0430\u043d\u043d\u044f\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0443 \u0434\u043b\u044f \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0442\u0435\u043c\u0438. \u041c\u0438 \u0432\u0447\u0438\u043c\u043e\u0441\u044f \u0434\u043e\u0434\u0430\u0432\u0430\u0442\u0438 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0443 \u0442\u0435\u043c, \u0456 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0456 \u0446\u044c\u043e\u0433\u043e \u0430\u043a\u0442\u0438\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u0456\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0445 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u044c WordPress. \u0423 \u0446\u044c\u043e\u043c\u0443 \u0443\u0440\u043e\u0446\u0456 \u043c\u0438 \u0442\u0430\u043a\u043e\u0436 \u0432\u0438\u043f\u0440\u0430\u0432\u0438\u043c\u043e \u043d\u0430\u0437\u0432\u0443 \u0433\u043e\u043b\u043e\u0432\u043d\u043e\u0457 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438, \u0437\u0430\u0441\u0442\u043e\u0441\u0443\u0432\u0430\u0432\u0448\u0438 \u043d\u0430\u0448 \u043f\u0435\u0440\u0448\u0438\u0439 \u0444\u0456\u043b\u044c\u0442\u0440.<\/p>\n<p>\u041c\u0438 \u0431\u0443\u0434\u0435\u043c\u043e \u043f\u0440\u0430\u0446\u044e\u0432\u0430\u0442\u0438 \u0437\u0434\u0435\u0431\u0456\u043b\u044c\u0448\u043e\u0433\u043e \u0437 <code>functions.php<\/code>\u0444\u0430\u0439\u043b\u043e\u043c, \u044f\u043a\u0438\u0439 \u0434\u043e\u0434\u0430\u043b\u0438 \u043d\u0430 <a href=\"http:\/\/awhitepixel.com\/blog\/wordpress-theme-tutorial-for-beginners-part-6-a-themes-functions-file\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044c\u043e\u043c\u0443 \u0443\u0440\u043e\u0446\u0456<\/a>. \u041d\u0430\u043f\u0440\u0438\u043a\u0456\u043d\u0446\u0456 \u043c\u0438 \u0434\u043e\u0434\u0430\u043c\u043e \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u0438\u0445 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u044c \u0443 \u043d\u0430\u0448\u0456 \u0448\u0430\u0431\u043b\u043e\u043d\u0438.<\/p>\n<h2>\u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0442\u0435\u043c\u0438<\/h2>\n<p>\u0423\u0441\u0456 \u0442\u0435\u043c\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u044c \u043f\u0435\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0443 \u0434\u043b\u044f \u0457\u0445 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f, \u0432\u043a\u0430\u0437\u0443\u044e\u0447\u0438 WordPress \u0430\u043a\u0442\u0438\u0432\u0443\u0432\u0430\u0442\u0438 \u043f\u0435\u0432\u043d\u0456 \u0444\u0443\u043d\u043a\u0446\u0456\u0457. \u0426\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0454 \u0432 \u0441\u0435\u0431\u0435 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0456\u044e \u043c\u0435\u043d\u044e, \u0432\u0456\u0434\u0436\u0435\u0442\u0456\u0432, \u043f\u0435\u0440\u0435\u043a\u043b\u0430\u0434 \u0456 \u0442\u0430\u043a \u0434\u0430\u043b\u0456. \u0417\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u0446\u0435 \u0440\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u00ab\u0444\u0443\u043d\u043a\u0446\u0456\u0457 \u0442\u0435\u043c\u0438 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f\u00bb, \u0437\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043e\u0457 \u0434\u043e \u0445\u0443\u043a\u0430 \u0437\u0456 \u0437\u0440\u0443\u0447\u043d\u043e\u044e \u043d\u0430\u0437\u0432\u043e\u044e <code>after_setup_theme<\/code>. \u0414\u043b\u044f \u0434\u0435\u044f\u043a\u0438\u0445 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0438\u0445 \u0440\u0435\u0447\u0435\u0439 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0445\u0443\u043a \u0456\u043d\u0456\u0446\u0456\u0430\u043b\u0456\u0437\u0430\u0446\u0456\u0457 WordPress \u043f\u0456\u0434 \u043d\u0430\u0437\u0432\u043e\u044e <code>init<\/code>.<\/p>\n<h3>\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044f \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0443 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0442\u0435\u043c\u0438 \u0434\u043b\u044f<code>after_setup_theme<\/code><\/h3>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0454\u043c\u043e \u0442\u0430\u043a\u0443 \u00ab\u0444\u0443\u043d\u043a\u0446\u0456\u044e \u0442\u0435\u043c\u0438 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f\u00bb \u0443 \u043d\u0430\u0448\u043e\u043c\u0443 <code>functions.php<\/code>, \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0443 \u0434\u043e <code>after_setup_theme<\/code>:<\/p>\n<pre><code>add_action('after_setup_theme', 'wptutorial_setup_theme');\nfunction wptutorial_setup_theme() {\n\u00a0\n}<\/code><\/pre>\n<p>\u0423 \u0446\u044e \u0444\u0443\u043d\u043a\u0446\u0456\u044e \u043c\u0438 \u0434\u043e\u0434\u0430\u043c\u043e \u043d\u0438\u0437\u043a\u0443 \u043f\u043e\u0448\u0438\u0440\u0435\u043d\u0438\u0445 \u0456 \u043a\u043e\u0440\u0438\u0441\u043d\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0456\u0439 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0434\u043b\u044f \u0442\u0435\u043c WordPress. \u0420\u043e\u0437\u043c\u0456\u0441\u0442\u0456\u0442\u044c \u0443\u0441\u0456 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0456 \u043d\u0438\u0436\u0447\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0438 \u043a\u043e\u0434\u0443 \u0443 \u0432\u0430\u0448\u0456\u0439 \u0444\u0443\u043d\u043a\u0446\u0456\u0457 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f.<\/p>\n<p>\u0421\u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0432\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443 \u0448\u0438\u0440\u0438\u043d\u0443 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u044c \u0456 \u0432\u0441\u0442\u0430\u0432\u043e\u043a (\u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0432\u0456\u0434\u0435\u043e). \u0426\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0443\u0454, \u0449\u043e \u043a\u043e\u043b\u0438 \u0430\u0432\u0442\u043e\u0440\u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u044c \u0432\u0435\u043b\u0438\u043a\u0456 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0432 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457, \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0437\u0430\u043b\u0438\u0448\u0430\u044e\u0442\u044c\u0441\u044f \u0432 \u043c\u0435\u0436\u0430\u0445 \u043f\u0435\u0432\u043d\u043e\u0457 \u0448\u0438\u0440\u0438\u043d\u0438. \u042f \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 840 \u043f\u0456\u043a\u0441\u0435\u043b\u0456\u0432 (\u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u043c\u0435\u043d\u0456 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u043c\u0456\u0441\u0446\u0435 \u0434\u043b\u044f \u0431\u0456\u0447\u043d\u043e\u0457 \u043f\u0430\u043d\u0435\u043b\u0456), \u0430\u043b\u0435 \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 \u0446\u0435 \u043d\u0430 \u0441\u0432\u0456\u0439 \u0441\u043c\u0430\u043a.<\/p>\n<pre><code>$GLOBALS['content_width'] = 840;<\/code><\/pre>\n<p>\u041c\u0438 \u0442\u0430\u043a\u043e\u0436 \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u0438\u0442\u0438 WordPress, \u0449\u043e \u0442\u0435\u043c\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043a\u043b\u0430\u0434\u0443 \u0442\u0430 \u0434\u0435 \u0432\u043e\u043d\u0430 \u043c\u043e\u0436\u0435 \u0448\u0443\u043a\u0430\u0442\u0438 \u0444\u0430\u0439\u043b\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u0430\u0434\u0443. \u042f \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u0437\u0443\u043f\u0438\u043d\u044e\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0435\u043a\u043b\u0430\u0434\u0456 \u0442\u0435\u043c\u0438 WordPress \u0443 <a href=\"http:\/\/awhitepixel.com\/blog\/wordpress-theme-tutorial-for-beginners-part-8-translation-of-your-theme\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u043c\u0443 \u043a\u0440\u043e\u0446\u0456<\/a> \u0446\u0456\u0454\u0457 \u0441\u0435\u0440\u0456\u0457 \u043d\u0430\u0432\u0447\u0430\u043b\u044c\u043d\u0438\u0445 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0456\u0432 \u0437 \u0442\u0435\u043c.<\/p>\n<pre><code>load_theme_textdomain('wptutorial', get_stylesheet_directory(). '\/lang');<\/code><\/pre>\n<p>\u0417\u0432\u0435\u0440\u043d\u0456\u0442\u044c \u0443\u0432\u0430\u0433\u0443 \u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u043d\u043e\u0432\u043e\u0457 \u0444\u0443\u043d\u043a\u0446\u0456\u0457 \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443 \u0442\u0435\u043c, <code>get_stylesheet_directory()<\/code>. \u0426\u0435 \u0434\u0443\u0436\u0435 \u0441\u0445\u043e\u0436\u0435 \u043d\u0430 \u0442\u0435, \u0449\u043e <code>get_stylesheet_directory_uri()<\/code>\u043c\u0438 \u0437\u0443\u0441\u0442\u0440\u0456\u043b\u0438 \u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043d\u044c\u043e\u043c\u0443 \u043a\u0440\u043e\u0446\u0456, \u0430\u043b\u0435 \u0442\u0443\u0442 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u0435\u043d \u0432\u0456\u0434\u043d\u043e\u0441\u043d\u0438\u0439 \u0448\u043b\u044f\u0445, \u0430 \u043d\u0435 URL.<\/p>\n<p>\u041f\u043e\u0442\u0456\u043c \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0434\u043e\u0434\u0430\u0442\u0438 \u0434\u0435\u044f\u043a\u0456 \u00ab\u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0438 \u0442\u0435\u043c\u00bb, \u044f\u043a\u0456 \u0430\u043a\u0442\u0438\u0432\u0443\u044e\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u0456\u0441\u0442\u044c WordPress, \u044f\u043a\u0430 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u0430 \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c.<\/p>\n<pre><code>add_theme_support('automatic-feed-links');\nadd_theme_support('post-thumbnails');\nadd_theme_support('html5', [\n    'search-form',\n    'comment-form',\n    'comment-list',\n    'gallery',\n    'caption',\n]);\nadd_theme_support('custom-logo', [\n    'height'      =&gt; 100,\n    'width'       =&gt; 300,\n    'flex-width'  =&gt; true,\n    'flex-height' =&gt; false,\n]);\nadd_theme_support('customize-selective-refresh-widgets');<\/code><\/pre>\n<p>\u0426\u0435 \u0431\u0443\u043b\u0430 \u0446\u0456\u043b\u0430 \u043a\u0443\u043f\u0430 <code>add_theme_support<\/code>\u0434\u0437\u0432\u0456\u043d\u043a\u0456\u0432! \u042f\u043a \u0432\u0438\u043f\u043b\u0438\u0432\u0430\u0454 \u0437 \u043d\u0430\u0437\u0432\u0438, <code>add_theme_support<\/code>\u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u044f\u0454 WordPress \u043f\u0440\u043e \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0456\u044e \u0444\u0443\u043d\u043a\u0446\u0456\u0439, \u044f\u043a\u0456 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c. \u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u043f\u0440\u043e\u043f\u043e\u043d\u043e\u0432\u0430\u043d\u0456 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f (\u00ab\u0435\u0441\u043a\u0456\u0437\u0438 \u043f\u043e\u0441\u0442\u0456\u0432\u00bb), \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0430 \u0442\u0435\u0433\u0456\u0432 HTML5 \u0456 \u0444\u0443\u043d\u043a\u0446\u0456\u044f \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0443 WordPress \u0443 \u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u0447\u0456 (\u0437\u0430 \u0431\u0430\u0436\u0430\u043d\u043d\u044f\u043c \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0439\u0442\u0435 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0435 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0443!).<\/p>\n<p>\u0404 \u0449\u0435 \u0431\u0430\u0433\u0430\u0442\u043e \u0446\u0456\u043a\u0430\u0432\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0456\u0439, \u0442\u043e\u043c\u0443 \u044f <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/add_theme_support\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0440\u0430\u0434\u0436\u0443 \u0432\u0430\u043c \u043f\u0440\u043e\u0433\u043e\u0440\u043d\u0443\u0442\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0456\u044e \u0434\u043b\u044f add_theme_support<\/a>. \u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0454 \u0434\u043e\u0441\u0438\u0442\u044c \u043d\u043e\u0432\u0438\u0439 <code>title-tag<\/code>, \u044f\u043a\u0438\u0439 \u043e\u0431\u0440\u043e\u0431\u043b\u044f\u0454 \u0442\u0435\u0433 title. \u042f \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0432 \u0439\u043e\u0433\u043e \u0432 \u0446\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u043c\u0438 \u0432\u0436\u0435 \u0434\u043e\u0434\u0430\u043b\u0438 \u0442\u0435\u0433 title <code>header.php<\/code>\u0432\u0440\u0443\u0447\u043d\u0443.<\/p>\n<p>\u041c\u0430\u0439\u0442\u0435 \u043d\u0430 \u0443\u0432\u0430\u0437\u0456, \u0449\u043e \u044f\u043a\u0449\u043e \u0432\u0438 \u0434\u043e\u0434\u0430\u0454\u0442\u0435 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0443 \u0434\u043b\u044f <code>title-tag<\/code>, \u0432\u0430\u043c \u0441\u043b\u0456\u0434 \u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0442\u0435\u0433 title \u0456\u0437 \u0444\u0430\u0439\u043b\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430, \u0449\u043e\u0431 \u0437\u0430\u043f\u043e\u0431\u0456\u0433\u0442\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044e\u0432\u0430\u043d\u0438\u043c \u0442\u0435\u0433\u0430\u043c title.<\/p>\n<p>\u041d\u0430\u0440\u0435\u0448\u0442\u0456 \u043c\u0438 \u0434\u043e\u0434\u0430\u0454\u043c\u043e \u043a\u0456\u043b\u044c\u043a\u0430 <code>add_theme_support<\/code>\u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0413\u0443\u0442\u0435\u043d\u0431\u0435\u0440\u0433\u0430 \u0432 WordPress. \u041c\u0438 \u0434\u043e\u0434\u0430\u043c\u043e \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0443 \u0448\u0438\u0440\u043e\u043a\u0438\u0445 \u0440\u043e\u0437\u0434\u0456\u043b\u0456\u0432, \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0456\u044e \u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0456 \u0441\u0442\u0438\u043b\u0456\u0432 \u0431\u043b\u043e\u043a\u0456\u0432 \u0456 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0443 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0438\u0445 \u0432\u0441\u0442\u0430\u0432\u043e\u043a:<\/p>\n<pre><code>add_theme_support('wp-block-styles');\nadd_theme_support('align-wide');\nadd_theme_support('responsive-embeds');<\/code><\/pre>\n<h3>\u041a\u0456\u043d\u0446\u0435\u0432\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h3>\n<p>\u041e\u0441\u044c \u043e\u0441\u0442\u0430\u043d\u043d\u044f \u0444\u0443\u043d\u043a\u0446\u0456\u044f \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0432 \u043d\u0430\u0448\u043e\u043c\u0443 <code>functions.php<\/code>:<\/p>\n<pre><code>add_action('after_setup_theme', 'wptutorial_setup_theme');\nfunction wptutorial_setup_theme() {\n    $GLOBALS['content_width'] = 840;\n    \/\/ Make your theme ready for translation\n    load_theme_textdomain('wptutorial', get_stylesheet_directory(). '\/lang');\n    \/\/ Add theme support for WordPress functionality\n    add_theme_support('automatic-feed-links');\n    add_theme_support('title-tag');\n    add_theme_support('post-thumbnails');\n    add_theme_support('html5', [\n        'search-form',\n        'comment-form',\n        'comment-list',\n        'gallery',\n        'caption',\n    ]);\n    add_theme_support('custom-logo', [\n        'height'      =&gt; 100,\n        'width'       =&gt; 300,\n        'flex-width'  =&gt; true,\n        'flex-height' =&gt; false,\n    ]);\n    add_theme_support('customize-selective-refresh-widgets');\n    \/\/ Add theme support for Gutenberg specific functionality\n    add_theme_support('wp-block-styles');\n    add_theme_support('align-wide');\n    add_theme_support('responsive-embeds');\n}<\/code><\/pre>\n<p>\u041f\u0456\u0441\u043b\u044f \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043d\u044f \u0432\u0438 \u0437\u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0434\u0430\u0432\u0430\u0442\u0438 \u043f\u0440\u043e\u043f\u043e\u043d\u043e\u0432\u0430\u043d\u0456 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0434\u043e \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0439 \u0432 \u0430\u0434\u043c\u0456\u043d\u0446\u0456! \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0434\u0430\u043c\u043e \u0449\u0435 \u043e\u0434\u043d\u0435 \u0432\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0442\u0435\u043c\u0438, <code>functions.php<\/code>\u043f\u0435\u0440\u0448 \u043d\u0456\u0436 \u0434\u043e\u0434\u0430\u0432\u0430\u0442\u0438 \u043f\u0440\u043e\u043f\u043e\u043d\u043e\u0432\u0430\u043d\u0456 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0434\u043e \u043d\u0430\u0448\u0438\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u0456\u0432; \u043f\u0430\u043c&#8217;\u044f\u0442\u0430\u0439\u0442\u0435, \u0449\u043e <code>wp_title<\/code>\u0437\u0430 <code>header.php<\/code>\u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c \u043c\u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u043c\u043e \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0438 \u043d\u0456\u0447\u043e\u0433\u043e \u043d\u0430 \u0433\u043e\u043b\u043e\u0432\u043d\u0456\u0439 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0446\u0435 \u0432\u0438\u043f\u0440\u0430\u0432\u0438\u043c\u043e.<\/p>\n<h2>\u0414\u043e\u0434\u0430\u0432\u0430\u043d\u043d\u044f \u0444\u0456\u043b\u044c\u0442\u0440\u0430 \u0434\u043e<code>wp_title<\/code><\/h2>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0434\u0430\u043c\u043e \u043d\u0430\u0448\u0443 \u043f\u0435\u0440\u0448\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443 \u0444\u0443\u043d\u043a\u0446\u0456\u044e \u043c\u043e\u0434\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0457 \u0444\u0456\u043b\u044c\u0442\u0440\u0430, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 <code>add_filter()<\/code>. \u0424\u0456\u043b\u044c\u0442\u0440, \u044f\u043a\u0438\u0439 \u043c\u0438 \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0438\u043c\u043e, \u043c\u0430\u0454 \u0442\u0430\u043a\u0443 \u0441\u0430\u043c\u0443 \u043d\u0430\u0437\u0432\u0443, \u044f\u043a \u0456 \u0444\u0443\u043d\u043a\u0446\u0456\u044f, \u044f\u043a\u0443 \u043c\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u043b\u0438 \u0434\u043b\u044f WordPress \u0434\u043b\u044f \u0434\u0438\u043d\u0430\u043c\u0456\u0447\u043d\u043e\u0433\u043e \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438; <code>wp_title<\/code>. \u0429\u043e \u043c\u0438 \u0432\u0438\u043f\u0440\u0430\u0432\u0438\u043c\u043e, \u0442\u0430\u043a \u0446\u0435 \u043f\u0435\u0440\u0435\u043a\u043e\u043d\u0430\u0442\u0438\u0441\u044f, \u0449\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043d\u0435 \u0454 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u043c \u043d\u0430 \u043f\u0435\u0440\u0448\u0456\u0439 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456 \u2013 \u0446\u0435 \u0442\u0438\u043f\u043e\u0432\u043e \u0432 WordPress. \u041d\u0430 \u0433\u043e\u043b\u043e\u0432\u043d\u0456\u0439 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456 \u043c\u0438 \u0445\u043e\u0447\u0435\u043c\u043e, \u0449\u043e\u0431 \u0432\u043e\u043d\u0430 \u0431\u0443\u043b\u0430 \u0437\u0430\u043f\u043e\u0432\u043d\u0435\u043d\u0430 \u043d\u0430\u0437\u0432\u043e\u044e \u0441\u0430\u0439\u0442\u0443 WordPress.<\/p>\n<p>\u041d\u0435 \u0437\u0430\u0431\u0443\u0432\u0430\u0439\u0442\u0435 <strong>\u0437\u0430\u0432\u0436\u0434\u0438 \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0442\u0438<\/strong> \u0432\u0456\u0434\u0444\u0456\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u043d\u0443 \u0437\u043c\u0456\u043d\u043d\u0443 \u0443 \u0432\u0430\u0448\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0456\u044f\u0445 \u0444\u0456\u043b\u044c\u0442\u0440\u0430! \u0423\u0441\u0456 \u0444\u0456\u043b\u044c\u0442\u0440\u0438 \u0437\u043c\u0456\u043d\u044e\u044e\u0442\u044c \u0437\u043c\u0456\u043d\u043d\u0443, \u0456 \u044f\u043a\u0449\u043e \u0432\u0438 \u043d\u0456\u0447\u043e\u0433\u043e \u043d\u0435 \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454\u0442\u0435, \u0437\u043c\u0456\u043d\u043d\u0430 \u0441\u0442\u0430\u0454 \u043d\u0435\u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043e\u044e. \u0426\u0435 \u043c\u043e\u0436\u0435 \u0441\u043f\u0440\u0438\u0447\u0438\u043d\u0438\u0442\u0438 \u0431\u0430\u0433\u0430\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0429\u043e\u0431 \u0434\u0456\u0437\u043d\u0430\u0442\u0438\u0441\u044f \u0431\u0456\u043b\u044c\u0448\u0435 \u043f\u0440\u043e \u0444\u0456\u043b\u044c\u0442\u0440\u0438, \u043f\u043e\u0434\u0438\u0432\u0456\u0442\u044c\u0441\u044f \u043c\u0456\u0439 <a href=\"http:\/\/awhitepixel.com\/blog\/all-about-hooks-in-wordpress\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u043f\u043e\u0441\u0442, \u0434\u0435 \u043f\u043e\u044f\u0441\u043d\u044e\u0454\u0442\u044c\u0441\u044f \u0432\u0441\u0435 \u043f\u0440\u043e \u0445\u0443\u043a\u0438 \u0442\u0430 \u0444\u0456\u043b\u044c\u0442\u0440\u0438<\/a>.<\/p>\n<h3>\u0417\u043d\u0430\u044e\u0447\u0438, \u043a\u043e\u043b\u0438 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a<\/h3>\n<p>\u041c\u0438 \u0445\u043e\u0447\u0435\u043c\u043e \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 \u0437\u043c\u0456\u043d\u043d\u0443 title, \u043b\u0438\u0448\u0435 \u044f\u043a\u0449\u043e \u043c\u0438 \u0437\u043d\u0430\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0448\u0456\u0439 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456. \u0414\u043b\u044f \u0432\u0441\u0456\u0445 \u0456\u043d\u0448\u0438\u0445 \u0441\u0442\u043e\u0440\u0456\u043d\u043e\u043a \u043c\u0438 \u0445\u043e\u0447\u0435\u043c\u043e \u0437\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0439\u043e\u0433\u043e (\u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0438 \u044f\u043a \u0454). \u0410\u043b\u0435 \u044f\u043a \u043c\u0438 \u0434\u0456\u0437\u043d\u0430\u0454\u043c\u043e\u0441\u044f, \u0449\u043e \u043c\u0438 \u043d\u0430 \u043f\u0435\u0440\u0448\u0456\u0439 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456?<\/p>\n<p>\u041c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u0441\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438\u0441\u044f \u043f\u0435\u0440\u0435\u0432\u0430\u0433\u0430\u043c\u0438 <a href=\"https:\/\/codex.wordpress.org\/Conditional_Tags\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0443\u043c\u043e\u0432\u043d\u0438\u0445 \u0442\u0435\u0433\u0456\u0432 WordPress<\/a>, \u044f\u043a\u0456 \u0454 \u0446\u0456\u043b\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u0440\u0438\u0441\u043d\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0456\u0439, \u044f\u043a\u0456 \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u044e\u0442\u044c \u0456\u0441\u0442\u0438\u043d\u0443 \u0430\u0431\u043e \u0445\u0438\u0431\u043d\u0456\u0441\u0442\u044c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 \u0443\u043c\u043e\u0432\u0438. \u041d\u0430\u0439\u0447\u0430\u0441\u0442\u0456\u0448\u0435 \u0432\u043e\u043d\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c\u0441\u044f, \u0449\u043e\u0431 \u0437\u0430\u043f\u0438\u0442\u0430\u0442\u0438, \u0447\u0438 \u043f\u0435\u0440\u0435\u0431\u0443\u0432\u0430\u0454\u043c\u043e \u043c\u0438 \u043d\u0430 \u043f\u0435\u0432\u043d\u0456\u0439 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456 \u0447\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0456. \u041c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0438\u0442\u0430\u0442\u0438: \u00ab\u041c\u0438 \u043d\u0430 \u0433\u043e\u043b\u043e\u0432\u043d\u0456\u0439 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456?\u00bb. \u042f\u043a\u0449\u043e \u0446\u0435\u0439 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 true, \u043b\u0438\u0448\u0435 \u0442\u043e\u0434\u0456 \u043c\u0438 \u0431\u0443\u0434\u0435\u043c\u043e \u0437\u043c\u0456\u043d\u044e\u0432\u0430\u0442\u0438 \u0437\u043c\u0456\u043d\u043d\u0443 title.<\/p>\n<p>\u0412\u0430\u0440\u0442\u043e \u0437\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u0438, \u0449\u043e \u0434\u043b\u044f \u0433\u043e\u043b\u043e\u0432\u043d\u043e\u0457 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438 \u0454 \u0434\u0432\u0430 \u0443\u043c\u043e\u0432\u043d\u0456 \u0442\u0435\u0433\u0438, \u0430 \u0441\u0430\u043c\u0435 <code>is_home()<\/code>\u0442\u0430. <code>is_front_page().<\/code>\u0412\u043e\u043d\u0438 \u0432\u0456\u0434\u0440\u0456\u0437\u043d\u044f\u044e\u0442\u044c\u0441\u044f \u0437\u0430\u043b\u0435\u0436\u043d\u043e \u0432\u0456\u0434 \u0432\u0430\u0448\u0438\u0445 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u044c \u00ab\u0427\u0438\u0442\u0430\u043d\u043d\u044f\u00bb \u2013 \u0447\u0438 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0430\u0454 \u0432\u0430\u0448\u0430 \u0433\u043e\u043b\u043e\u0432\u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430 \u043e\u0441\u0442\u0430\u043d\u043d\u0456 \u0434\u043e\u043f\u0438\u0441\u0438, \u0447\u0438 \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0430\u043d\u043e \u043d\u0430 \u0444\u0456\u043a\u0441\u043e\u0432\u0430\u043d\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443. \u042f\u043a\u0449\u043e \u0432\u0438 \u0434\u043e\u0442\u0440\u0438\u043c\u0443\u0454\u0442\u0435\u0441\u044f \u0446\u044c\u043e\u0433\u043e \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0430 \u0437 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u043e\u0432\u043e\u044e \u0456\u043d\u0441\u0442\u0430\u043b\u044f\u0446\u0456\u0454\u044e WordPress \u0456\u0437 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f\u043c \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c, \u0432\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u0435 <code>is_front_page()<\/code>.<\/p>\n<h3>\u041e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u0441\u0430\u0439\u0442\u0443 WordPress<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440 \u043c\u0438 \u0437\u043d\u0430\u0454\u043c\u043e, \u044f\u043a\u0438\u0439 \u0444\u0456\u043b\u044c\u0442\u0440 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0442\u0430 \u044f\u043a \u043f\u0435\u0440\u0435\u043a\u043e\u043d\u0430\u0442\u0438\u0441\u044f, \u0449\u043e \u043c\u0438 \u0437\u043c\u0456\u043d\u044e\u0454\u043c\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043b\u0438\u0448\u0435 \u044f\u043a\u0449\u043e \u0437\u043d\u0430\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u044f \u0432 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e\u043c\u0443 \u043c\u0456\u0441\u0446\u0456. \u0410\u043b\u0435 \u044f\u043a\u043e\u044e \u043f\u043e\u0432\u0438\u043d\u043d\u0430 \u0431\u0443\u0442\u0438 \u043d\u0430\u0437\u0432\u0430? \u0417\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c \u0433\u043e\u043b\u043e\u0432\u043d\u043e\u0457 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438 \u0431\u0443\u0434\u0435 \u043d\u0430\u0437\u0432\u0430 \u0432\u0430\u0448\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0443 WordPress. \u0410\u043b\u0435 \u044f\u043a \u043c\u0438 \u043e\u0442\u0440\u0438\u043c\u0443\u0454\u043c\u043e \u0446\u044e \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044e?<\/p>\n<p>\u0414\u043b\u044f \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0457 \u043f\u0440\u043e \u043f\u043e\u0442\u043e\u0447\u043d\u0443 \u0456\u043d\u0441\u0442\u0430\u043b\u044f\u0446\u0456\u044e WordPress \u043c\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u043c\u043e <code>bloginfo()<\/code>\u0444\u0443\u043d\u043a\u0446\u0456\u044e. \u042f\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043c\u0438 \u043f\u0440\u043e\u0441\u0438\u043c\u043e \u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0438 \u043d\u0430\u0437\u0432\u0443 \u0441\u0430\u0439\u0442\u0443, \u0449\u043e \u0440\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043d\u0430 \u00ab<code>name<\/code>\u00bb. \u0410 \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0446\u0435 \u0444\u0456\u043b\u044c\u0442\u0440, \u0456 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0439\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0438, \u0430 \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0438, \u043c\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u043c\u043e \u0439\u043e\u0433\u043e \u0434\u043e\u0447\u0456\u0440\u043d\u0456\u0439 \u043c\u0435\u0442\u043e\u0434 <code>get_bloginfo()<\/code>. \u0414\u0437\u0432\u0456\u043d\u043e\u043a <code>bloginfo()<\/code>\u0437\u0430\u0432\u0436\u0434\u0438 \u0432\u0456\u0434\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438\u043c\u0435 \u0432\u0438\u0445\u0456\u0434.<\/p>\n<pre><code>add_filter('wp_title', 'wptutorial_title_filter');\nfunction wptutorial_title_filter($title) {\n    if (is_front_page()) {\n        return get_bloginfo('name');\n    }\n    return $title;\n}<\/code><\/pre>\n<p>\u042f\u043a\u0449\u043e \u0432\u0438 \u043e\u043d\u043e\u0432\u0438\u0442\u0435 \u0433\u043e\u043b\u043e\u0432\u043d\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443, \u0432\u0438 \u043f\u043e\u0431\u0430\u0447\u0438\u0442\u0435, \u0449\u043e \u043d\u0430\u0437\u0432\u0430 \u0432\u0430\u0448\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0443 \u0437\u2019\u044f\u0432\u043b\u044f\u0454\u0442\u044c\u0441\u044f \u0432 <code>&lt;title&gt;<\/code>\u0442\u0435\u0433\u0443 (\u0456 \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u0446\u0456 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430)! \u041d\u0430\u0448 \u0444\u0456\u043b\u044c\u0442\u0440 \u0432\u043f\u043b\u0438\u0432\u0430\u0454 \u043b\u0438\u0448\u0435 \u043d\u0430 \u043f\u0435\u0440\u0448\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443, \u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u044c-\u044f\u043a\u0456 \u0456\u043d\u0448\u0456 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438, \u0442\u0430\u043a\u0456 \u044f\u043a \u043e\u043a\u0440\u0435\u043c\u0430 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u044f, \u043c\u0430\u044e\u0442\u044c \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0442\u0438 \u0442\u0435 \u0441\u0430\u043c\u0435, \u0449\u043e \u0439 \u0440\u0430\u043d\u0456\u0448\u0435; \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457.<\/p>\n<h2>\u0412\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0445 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u044c \u0443 \u0444\u0430\u0439\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0456\u0432<\/h2>\n<p>\u0420\u0430\u043d\u0456\u0448\u0435, \u043a\u043e\u043b\u0438 \u043c\u0438 \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0443\u0432\u0430\u043b\u0438 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0443 \u0442\u0435\u043c, \u043c\u0438 \u0434\u043e\u0434\u0430\u043b\u0438 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0443 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u0438\u0445 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u044c. \u042f\u043a\u0449\u043e \u0446\u0435 \u0430\u043a\u0442\u0438\u0432\u043e\u0432\u0430\u043d\u043e, \u0442\u0435\u043f\u0435\u0440 \u043c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u0432\u0438\u0432\u043e\u0434\u0438\u0442\u0438 \u0446\u0456 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0432 \u043d\u0430\u0448\u0438\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0437\u0440\u043e\u0431\u0438\u043c\u043e \u0446\u0435 \u0437\u0430\u0440\u0430\u0437!<\/p>\n<p>\u0412\u0456\u0434\u043a\u0440\u0438\u0439\u0442\u0435 <code>index.php<\/code>\u0442\u0430 \u0437\u043d\u0430\u0439\u0434\u0456\u0442\u044c \u0434\u043b\u044f \u043d\u0438\u0445 \u043c\u0456\u0441\u0446\u0435 \u0432\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0456 \u043f\u0435\u0442\u043b\u0456. \u042f \u0432\u0438\u0440\u0456\u0448\u0438\u0432 \u0440\u043e\u0437\u043c\u0456\u0441\u0442\u0438\u0442\u0438 \u0439\u043e\u0433\u043e \u043f\u0456\u0441\u043b\u044f \u043d\u0430\u0437\u0432\u0438, \u0430\u043b\u0435 \u0432\u0438 \u0432\u0438\u0440\u0456\u0448\u0443\u0454\u0442\u0435, \u0434\u0435 \u0432\u0438 \u0445\u043e\u0447\u0435\u0442\u0435 \u0457\u0445 \u0440\u043e\u0437\u043c\u0456\u0441\u0442\u0438\u0442\u0438. \u0412\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0456\u044e <code>the_post_thumbnail()<\/code>\u0434\u043b\u044f \u0432\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0454\u0442\u044c\u0441\u044f \u0441\u043f\u0435\u0440\u0448\u0443 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438, \u0447\u0438 \u0434\u043e\u043f\u0438\u0441 \u0432\u0437\u0430\u0433\u0430\u043b\u0456 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u043f\u0440\u043e\u043f\u043e\u043d\u043e\u0432\u0430\u043d\u0435 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f, \u0449\u043e \u043c\u0438 \u0440\u043e\u0431\u0438\u043c\u043e \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e <code>has_post_thumbnail()<\/code>.<\/p>\n<pre><code>...\n    &lt;h2&gt;&lt;a href=\"&lt;?php the_permalink(); ?&gt;\" title=\"&lt;?php the_title(); ?&gt;\"&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;\n    &lt;?php if (has_post_thumbnail()) {\n        the_post_thumbnail();\n    } ?&gt;\n    &lt;?php the_excerpt(); ?&gt;\n...<\/code><\/pre>\n<p>\u042f\u043a\u0449\u043e \u0443 \u0432\u0430\u0448\u0456\u0439 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457 \u043d\u0435\u043c\u0430\u0454 \u0432\u0438\u0434\u0456\u043b\u0435\u043d\u043e\u0433\u043e \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f, \u043f\u0456\u0441\u043b\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u043d\u0456\u0447\u043e\u0433\u043e \u043d\u0435 \u0432\u0438\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f. \u041e\u0434\u043d\u0430\u043a, \u044f\u043a\u0449\u043e \u0432\u0438 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043f\u0440\u043e\u043f\u043e\u043d\u043e\u0432\u0430\u043d\u0435 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0434\u043b\u044f \u043e\u0434\u043d\u0456\u0454\u0457 \u0437\u0456 \u0441\u0432\u043e\u0457\u0445 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0439, <code>the_post_thumbnail()<\/code>\u0432\u0438\u0432\u0435\u0434\u0435 <code>&lt;img&gt;<\/code>\u0442\u0435\u0433 \u0456\u0437 \u0432\u0438\u0431\u0440\u0430\u043d\u0438\u043c \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f\u043c. \u0426\u044f \u0444\u0443\u043d\u043a\u0446\u0456\u044f \u043f\u0440\u0438\u0439\u043c\u0430\u0454 \u0434\u0435\u044f\u043a\u0456 \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438. \u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438, \u044f\u043a\u0438\u0439 \u0440\u043e\u0437\u043c\u0456\u0440 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0432\u0438 \u0445\u043e\u0447\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438, \u0456 \u043a\u0435\u0440\u0443\u0432\u0430\u0442\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c\u0438, \u0434\u043e\u0434\u0430\u043d\u0438\u043c\u0438 \u0434\u043e \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f. \u042f\u043a \u0437\u0430\u0432\u0436\u0434\u0438, \u044f \u0440\u0430\u0434\u0436\u0443 \u0432\u0430\u043c \u0448\u0432\u0438\u0434\u043a\u043e \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u043d\u0443\u0442\u0438 <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/the_post_thumbnail\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0456\u044e<\/a> \u0442\u0430 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 \u0457\u0457 \u043d\u0430 \u0441\u0432\u0456\u0439 \u0441\u043c\u0430\u043a.<\/p>\n<h2>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0456\u044f \u0449\u043e\u0434\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u0456\u0432<\/h2>\n<ul>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/add_action\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">add_action<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/load_theme_textdomain\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">load_theme_textdomain<\/a><\/li>\n<li><a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/get_stylesheet_directory\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">get_stylesheet_directory<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/add_theme_support\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">add_theme_support<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/add_filter\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">add_filter<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/is_front_page\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">is_front_page<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_bloginfo\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">get_bloginfo<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/has_post_thumbnail\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">has_post_thumbnail<\/a><\/li>\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/the_post_thumbnail\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">the_post_thumbnail<\/a><\/li>\n<\/ul>\n<p><div id=\"PostUnique_PostSource\" style=\"padding-top: 50px\">\u0414\u0436\u0435\u0440\u0435\u043b\u043e \u0437\u0430\u043f\u0438\u0441\u0443:  <a target=\"_blank\" rel=\"noopener nofollow\" href=\"\/\/awhitepixel.com\" class=\"external external_icon\">awhitepixel.com<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0426\u0435\u0439 \u0443\u0440\u043e\u043a \u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0443\u0454\u0442\u044c\u0441\u044f \u0434\u043e\u0434\u0430\u0432\u0430\u043d\u043d\u044f\u043c \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0443 \u0434\u043b\u044f \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0442\u0435\u043c\u0438 WordPress. \u041c\u0438 \u0432\u0447\u0438\u043c\u043e\u0441\u044f \u0434\u043e\u0434\u0430\u0432\u0430\u0442\u0438 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0443 \u0442\u0435\u043c \u0456 \u0444\u0456\u043b\u044c\u0442\u0440\u0443\u0432\u0430\u0442\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0435\u0440\u0448\u043e\u0457 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438.<\/p>\n","protected":false},"author":1,"featured_media":224083,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_wp_rev_ctl_limit":""},"categories":[902,725,1110,808,808,839,933,849,869,869,839,902,849,725,933],"tags":[1174],"class_list":{"0":"post-233700","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-kod-3","8":"category-rozrobnyk","9":"category-n-a","10":"category-php-10","12":"category-kerivnytstvo-dlia-pochatkivtsiv","13":"category-predmetiv","14":"category-pidruchnyky","15":"category-wordpress-10","22":"tag-affiai-uk"},"_links":{"self":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts\/233700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/comments?post=233700"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts\/233700\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/media\/224083"}],"wp:attachment":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/media?parent=233700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/categories?post=233700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/tags?post=233700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}