add button allnews
This commit is contained in:
@@ -53,6 +53,34 @@ ul.wp-block-list li{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.allnews-container{
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.allnews{
|
||||
display: flex; /* включаем flex-контейнер */
|
||||
justify-content: center; /* по горизонтали по центру */
|
||||
align-items: center;
|
||||
padding: 1rem;
|
||||
background: var(--primary);
|
||||
font-weight: 700;
|
||||
font-size: 1.6rem;
|
||||
line-height: 1.8rem;
|
||||
color: #fff;
|
||||
-webkit-transition: 0.3s;
|
||||
transition: 0.3s;
|
||||
border-radius: .5rem;
|
||||
border-right: 2px solid var(--secondary);
|
||||
border-bottom: 2px solid var(--secondary);
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
.allnews:hover{
|
||||
background: var(--secondary);
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.content {
|
||||
grid-template-columns: 36.4rem 1fr;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
||||
@@ -62,8 +62,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<header class="header">
|
||||
<div class="container">
|
||||
<div class="header__inner">
|
||||
<?php $site_logo = get_field('site_logo', 'option');
|
||||
$site_logo = "https://agroexpert.press/wp-content/uploads/2025/04/80_ae_logo.svg"?>
|
||||
<?php $site_logo = get_field('site_logo', 'option');?>
|
||||
<a href="<?php echo home_url(); ?>" class="logo header__logo">
|
||||
<img src="<?php echo esc_url($site_logo); ?>" width="158" alt="" />
|
||||
</a>
|
||||
|
||||
@@ -84,8 +84,8 @@ if (!empty($top_posts)) {
|
||||
|
||||
}?>
|
||||
|
||||
<div class="most-read__link">
|
||||
<a href="https://agroexpert.press/all-events/" class="most-read__link-inner text-13 link-icon-after">
|
||||
<div class="allnews-container">
|
||||
<a href="https://agroexpert.press/all-events/" class="allnews">
|
||||
Все новости
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user