diff --git a/en/rubrics-mobile-en.php b/en/rubrics-mobile-en.php index bcbe3a7..7b437af 100644 --- a/en/rubrics-mobile-en.php +++ b/en/rubrics-mobile-en.php @@ -26,7 +26,14 @@ array_push($categories, $firstElement); name; ?> - + Parts diff --git a/frontend/dist/assets/main.css b/frontend/dist/assets/main.css index 4622500..2270d97 100644 --- a/frontend/dist/assets/main.css +++ b/frontend/dist/assets/main.css @@ -2588,6 +2588,11 @@ h3, .rating { margin-right: 0; } + + .lang-switch{ + font-size: 1em; + } + } .menu-item a { diff --git a/frontend/src/styles/components/nav.css b/frontend/src/styles/components/nav.css index c6b17f4..61108fe 100644 --- a/frontend/src/styles/components/nav.css +++ b/frontend/src/styles/components/nav.css @@ -38,6 +38,11 @@ .rating { margin-right: 0; } + + .lang-switch{ + font-size: 1em; + } + } .menu-item a { diff --git a/functions.php b/functions.php index 0edfcd0..31cb5da 100644 --- a/functions.php +++ b/functions.php @@ -538,6 +538,18 @@ function get_category_name($post = null) return $category_name; } +function get_category_name_en($post = null) +{ + $categories = get_the_category($post); + $categories = array_filter($categories, function (WP_Term $category) { + return $category->slug !== 'en'; + }); + $categories = array_values($categories); + $category_name = !empty($categories) ? esc_html($categories[0]->name) : 'Все события'; + + return $category_name; +} + // Добавляем функцию для формирования мета-тегов страницы function custom_meta_tags() { diff --git a/single-en.php b/single-en.php index 32ec812..49db06f 100644 --- a/single-en.php +++ b/single-en.php @@ -4,7 +4,7 @@
- +
@@ -14,7 +14,7 @@
-
+