Е
т.е. тут по идее для каждого блока нужны такие поля https://prnt.sc/two4s1
и нужно на странице как-то добавлять или удалять такие блоки
Size: a a a
Е
Е
AZ
CT
<div class="figure"> или что то подобное НО КОНКРЕТНО НЕ УПОТРЕБЛЯЯ ТЕГ <figure>
Может посоветуете какую-то шуструю тему что не использует этот тег?add_filter('the_content', 'my_filter_function');
function my_filter_function($content){
$content = str_replace('<figure>', '<div class="figure">', $content);
$content = str_replace('</figure>', '</div>', $content);
$out = $content;
return $out;
}
the_content();
попробовал реализовать, ошибок нет, но ни каких изменений не произошло.<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED - Do not modify or remove comment markers above or below:
if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
function chld_thm_cfg_locale_css( $uri ){
if ( empty( $uri ) && is_rtl() && file_exists( get_stylesheet_directory() . '/rtl.css' ) )
$uri = get_template_directory_uri() . '/rtl.css';
return $uri;
}
endif;
add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
// END ENQUEUE PARENT ACTION
add_filter('the_content', 'my_filter_function');
function my_filter_function($content){
$content = str_replace('<figure>', '<div class="figure">', $content);
$content = str_replace('</figure>', '</div>', $content);
$out = $content;
return $out;
}
the_content();V
<div class="figure"> или что то подобное НО КОНКРЕТНО НЕ УПОТРЕБЛЯЯ ТЕГ <figure>
Может посоветуете какую-то шуструю тему что не использует этот тег?add_filter('the_content', 'my_filter_function');
function my_filter_function($content){
$content = str_replace('<figure>', '<div class="figure">', $content);
$content = str_replace('</figure>', '</div>', $content);
$out = $content;
return $out;
}
the_content();
попробовал реализовать, ошибок нет, но ни каких изменений не произошло.<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED - Do not modify or remove comment markers above or below:
if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
function chld_thm_cfg_locale_css( $uri ){
if ( empty( $uri ) && is_rtl() && file_exists( get_stylesheet_directory() . '/rtl.css' ) )
$uri = get_template_directory_uri() . '/rtl.css';
return $uri;
}
endif;
add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
// END ENQUEUE PARENT ACTION
add_filter('the_content', 'my_filter_function');
function my_filter_function($content){
$content = str_replace('<figure>', '<div class="figure">', $content);
$content = str_replace('</figure>', '</div>', $content);
$out = $content;
return $out;
}
the_content();Е
M
<div class="figure"> или что то подобное НО КОНКРЕТНО НЕ УПОТРЕБЛЯЯ ТЕГ <figure>
Может посоветуете какую-то шуструю тему что не использует этот тег?add_filter('the_content', 'my_filter_function');
function my_filter_function($content){
$content = str_replace('<figure>', '<div class="figure">', $content);
$content = str_replace('</figure>', '</div>', $content);
$out = $content;
return $out;
}
the_content();
попробовал реализовать, ошибок нет, но ни каких изменений не произошло.<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED - Do not modify or remove comment markers above or below:
if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
function chld_thm_cfg_locale_css( $uri ){
if ( empty( $uri ) && is_rtl() && file_exists( get_stylesheet_directory() . '/rtl.css' ) )
$uri = get_template_directory_uri() . '/rtl.css';
return $uri;
}
endif;
add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
// END ENQUEUE PARENT ACTION
add_filter('the_content', 'my_filter_function');
function my_filter_function($content){
$content = str_replace('<figure>', '<div class="figure">', $content);
$content = str_replace('</figure>', '</div>', $content);
$out = $content;
return $out;
}
the_content();M
CT
CT
M
M
M
CT
M
return '<h1>AAAAAAAAAAAAA</h1>'.$content;SZ
MD
SZ
MD