correct bg menus
This commit is contained in:
@@ -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
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user