From 9ff9de46a4807cc59994b19bf7c5cb20981dec2e Mon Sep 17 00:00:00 2001 From: argoexpert press Date: Mon, 5 May 2025 22:55:06 +0300 Subject: [PATCH] new style picture --- content-post.php | 2 +- frontend/src/styles/pages/main.css | 6 ++++++ functions.php | 4 ++++ header.php | 5 +++-- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/content-post.php b/content-post.php index 14fa61d..e3dfbf0 100644 --- a/content-post.php +++ b/content-post.php @@ -5,7 +5,7 @@ $class = $full_width ? 'article-item article-item--lg' : 'article-item'; ?>
- +
diff --git a/frontend/src/styles/pages/main.css b/frontend/src/styles/pages/main.css index 28ef713..d6cd96b 100644 --- a/frontend/src/styles/pages/main.css +++ b/frontend/src/styles/pages/main.css @@ -38,6 +38,12 @@ ul.wp-block-list li{ display: block; } +.news-list-picture{ + height: 21rem !important; + object-fit: cover; + width: 100%; +} + .article-single IMG{ max-width: 100%; } diff --git a/functions.php b/functions.php index 5c336f2..9b8b18a 100644 --- a/functions.php +++ b/functions.php @@ -30,6 +30,10 @@ function redirect_non_admin_users() { } add_action('admin_init', 'redirect_non_admin_users'); + + //require_once get_template_directory() . '/filters/fix_agroexpert_links.php'; + + define('ENPART', 740); define('EN_PARTS', '746,741,742,743,744,745'); diff --git a/header.php b/header.php index 9d3e0e9..a23f36c 100644 --- a/header.php +++ b/header.php @@ -62,9 +62,10 @@ height="0" width="0" style="display:none;visibility:hidden">
- +