This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Module name: Custom Settings | |
* | |
* @package ACF | |
* @see README.md for details | |
*/ | |
use StoutLogic\AcfBuilder\FieldsBuilder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add file with command wordmove init | |
# Add your change | |
# Control with command wordmove doctor | |
# If all right - wormuve pull or push )) | |
global: | |
sql_adapter: default ## Change this stroke to default !!!!!! | |
local: | |
vhost: http://wzc.test ## Chano to your site | |
wordpress_path: /var/www/wzc.test/web # use an absolute path here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// установим обработчик события click, элементу с идентификатором foo | |
$('#foo').click(function(){ | |
alert('Вы нажали на элемент "foo"'); | |
}); | |
// вызовем событие click на элементе foo | |
$('#foo').click(); | |
// установим еще один обработчик события click, на этот раз элементам | |
// с классом block. В обработчик передадим дополнительные данные |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$screen = get_current_screen(); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function theme_prefix_setup() { | |
add_theme_support( 'custom-logo' ); | |
} | |
add_action( 'after_setup_theme', 'theme_prefix_setup' ); | |
// или | |
function theme_prefix_setup() { | |
add_theme_support( 'custom-logo', array( | |
'height' => 175, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function theme_prefix_setup() { | |
add_theme_support( 'custom-logo' ); | |
} | |
add_action( 'after_setup_theme', 'theme_prefix_setup' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Элемент <style> с атрибутом scoped="scoped" может располагаться в любом месте документа, а находящиеся в нем инструкции CSS будут распространяться только на элемент-родитель, в котором находится этот <style>, и вложенные в него дочерние элементы. | |
<style type="text/css" media="screen" scoped="scoped"> | |
.status{color:red} | |
#download{font-weight:bold;} | |
</style> | |
<article pubdate="2010-03-04"> | |
<header> | |
<h1>Разметка веб-страницы</h1> | |
<p>Вместе с появлением HTML 5 изменилась идеология…</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Убираем надпись Показаны товары | |
*/ | |
remove_action ( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$true_page = 'myparameters.php'; // это часть URL страницы, рекомендую использовать строковое значение, т.к. в данном случае не будет зависимости от того, в какой файл вы всё это вставите | |
/* | |
* Функция, добавляющая страницу в пункт меню Настройки | |
*/ | |
function true_options() | |
{ | |
global $true_page; |