correct bg menus

This commit is contained in:
argoexpert press
2025-02-04 00:19:35 +03:00
parent 19f12627a0
commit 06f2f95ae8
7 changed files with 75 additions and 77 deletions

View File

@@ -17,6 +17,7 @@ foreach ($categories as $category) {
$bg_image = get_field('bg_image', 'category_' . $category->term_id);
$category_link = get_category_link($category->term_id);
?>
<?php if ($icon) : ?>
<a href="<?php echo esc_url($category_link); ?>" class="menu-link">
<div class="menu-link__bg">
<?php if ($bg_image) : ?>
@@ -30,6 +31,7 @@ foreach ($categories as $category) {
</div>
<span class="menu-link__text"><?php echo esc_html($category->name); ?></span>
</a>
<?php endif; ?>
<?php
}
?>