Skip to content

Commit

Permalink
09-04-2024
Browse files Browse the repository at this point in the history
  • Loading branch information
midkiffaries committed Sep 6, 2024
1 parent 081ac4c commit d189f59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions assets/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,11 @@ Site Header
font-size: 0.6rem;
}

.menu-item-image {
width: 32px;
margin: 5px;
}

.header-secondary-navigation {
display: none;
}
Expand Down
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -957,8 +957,8 @@ function start_el( &$output, $item, $depth = 0, $args = [], $id = 0 ) {
add_action( 'wp_nav_menu_item_custom_fields', function( $item_id, $item ) {
$menu_img = get_post_meta( $item_id, 'menu_thumbnail', true );
?>
<p class="description">
<label for="menu_thumbnail-<?=$item_id;?>"><?php _e( "Display Thumbnail", 'menu_thumbnail' ); ?></label><br>
<p class="description" style="margin-bottom:10px">
<label for="menu_thumbnail-<?=$item_id;?>"><?php _e( "Display Thumbnail", 'menu_thumbnail' ); ?></label> &nbsp;
<input type="hidden" class="nav-menu-id" value="<?=$item_id;?>">
<input type="radio" id="menu_img_no-<?=$item_id;?>" name="menu_thumbnail[<?=$item_id;?>]" value="0">
<label for="menu_img_no-<?=$item_id;?>">No</label> &nbsp;
Expand Down

0 comments on commit d189f59

Please sign in to comment.