• When the nav item has a description the HTML output is:

    <a class="wp-block-navigation-item__content" href="https://new-zealand-ukulele-trust.local/resources/"><span class="wp-block-navigation-item__label">Resources</span><span class="wp-block-navigation-item__description">Rauemi</span></a>

    However if the item has a submenu the description does not render:

    <li data-wp-context="{ &quot;submenuOpenedBy&quot;: { &quot;click&quot;: false, &quot;hover&quot;: false, &quot;focus&quot;: false }, &quot;type&quot;: &quot;submenu&quot; }" data-wp-interactive="core/navigation" data-wp-on--focusout="actions.handleMenuFocusout" data-wp-on--keydown="actions.handleMenuKeydown" data-wp-on-async--mouseenter="actions.openMenuOnHover" data-wp-on-async--mouseleave="actions.closeMenuOnHover" data-wp-watch="callbacks.initMenu" tabindex="-1" style="font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.03), 0.9rem);" class=" wp-block-navigation-item has-child open-on-hover-click wp-block-navigation-submenu"><a class="wp-block-navigation-item__content" href="https://new-zealand-ukulele-trust.local/resources/" title="Mō mātou">About Us</a><button data-wp-bind--aria-expanded="state.isMenuOpen" data-wp-on-async--click="actions.toggleMenuOnClick" aria-label="About Us submenu" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false"><svg xmlns="https://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true" focusable="false"><path d="M1.50002 4L6.00002 8L10.5 4" stroke-width="1.5"></path></svg></button><ul data-wp-on-async--focus="actions.openMenuOnFocus" class="wp-block-navigation__submenu-container wp-block-navigation-submenu"><li style="font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.03), 0.9rem);" class=" wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="https://new-zealand-ukulele-trust.local/our-vision-te-moemoea/"><span class="wp-block-navigation-item__label">Our Vision / Te Moemoeā</span></a></li><li style="font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.03), 0.9rem);" class=" wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="https://new-zealand-ukulele-trust.local/what-we-do-a-matou-mahi/"><span class="wp-block-navigation-item__label">What we do / ā Mātou Mahi</span></a></li><li style="font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.03), 0.9rem);" class=" wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="https://new-zealand-ukulele-trust.local/who-we-are-ko-wai-matou/"><span class="wp-block-navigation-item__label">Who we are / Ko wai mātou</span></a></li><li style="font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.03), 0.9rem);" class=" wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="https://new-zealand-ukulele-trust.local/news-panui/"><span class="wp-block-navigation-item__label">News / Pānui</span></a></li><li style="font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.03), 0.9rem);" class=" wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="https://new-zealand-ukulele-trust.local/faq-patai-auau/"><span class="wp-block-navigation-item__label">FAQ / Pātai Auau</span></a></li></ul></li>
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hank

    (@poku1010)

    @mikednz

    It appears that your website is in a local environment (https://new-zealand-ukulele-trust.local/). It’s recommended to provide your website’s Site Info to help clarify the cause of the issue.

    Using the Site Health Tool:

    1. Log in to your WordPress admin dashboard.
    2. Navigate to?Tools > Site Health.
    3. Click on the?Info?tab.
    Thread Starter mikednz

    (@mikednz)

    ` wp-core

    version: 6.6.2
    site_language: en_US
    user_language: en_US
    timezone: +00:00
    permalink: /%postname%/
    https_status: false
    multisite: false
    user_registration: 1
    blog_public: 1
    default_comment_status: open
    environment_type: local
    user_count: 1
    dotorg_communication: true wp-paths-sizes

    wordpress_path: /Users/michaelstory/Local Sites/new-zealand-ukulele-trust/app/public
    wordpress_size: 55.37 MB (58058034 bytes)
    uploads_path: /Users/michaelstory/Local Sites/new-zealand-ukulele-trust/app/public/wp-content/uploads
    uploads_size: 93.10 MB (97623961 bytes)
    themes_path: /Users/michaelstory/Local Sites/new-zealand-ukulele-trust/app/public/wp-content/themes
    themes_size: 16.52 MB (17322424 bytes)
    plugins_path: /Users/michaelstory/Local Sites/new-zealand-ukulele-trust/app/public/wp-content/plugins
    plugins_size: 171.90 MB (180246890 bytes)
    fonts_path: /Users/michaelstory/Local Sites/new-zealand-ukulele-trust/app/public/wp-content/uploads/fonts
    fonts_size: 277.13 KB (283780 bytes)
    database_size: 5.61 MB (5881856 bytes)
    total_size: 342.77 MB (359416945 bytes) wp-active-theme

    name: NZUT (nzut)
    version: 1.0
    author: Miked
    author_website: (undefined)
    parent_theme: none
    theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates
    theme_path: /Users/michaelstory/Local Sites/new-zealand-ukulele-trust/app/public/wp-content/themes/nzut
    auto_update: Disabled wp-plugins-active (15)

    Advanced Custom Fields PRO: version: 6.3.10, author: WP Engine, Auto-updates disabled
    Create Block Theme: version: 2.6.0, author: www.remarpro.com, Auto-updates disabled
    Custom Post Type UI: version: 1.17.1, author: WebDevStudios, Auto-updates disabled
    Disable Comments: version: 2.4.6, author: WPDeveloper, Auto-updates disabled
    Gravity Forms: version: 2.8.18, author: Gravity Forms, Auto-updates enabled
    Safe SVG: version: 2.2.6, author: 10up, Auto-updates disabled
    The Icon Block: version: 2.0.0, author: Nick Diego, Auto-updates disabled
    Theme My Login: version: 7.1.9, author: Theme My Login, Auto-updates disabled
    Theme My Login Moderation: version: 1.1.1, author: Theme My Login, Auto-updates disabled
    Theme My Login Notifications: version: 1.1.5, author: Theme My Login, Auto-updates disabled
    Theme My Login Profiles: version: 1.0.7, author: Theme My Login, Auto-updates disabled
    Theme My Login reCAPTCHA: version: 1.1, author: Theme My Login, Auto-updates disabled
    Theme My Login Redirection: version: 1.1, author: Theme My Login, Auto-updates disabled
    Theme My Login Security: version: 1.1.4, author: Theme My Login, Auto-updates disabled
    WP Armour - Honeypot Anti Spam: version: 2.2.03, author: Dnesscarkey, Auto-updates disabled wp-plugins-inactive (6)

    Gutenberg: version: 19.6.1, author: Gutenberg Team, Auto-updates disabled
    Mailgun: version: 2.1.0, author: Mailgun, Auto-updates disabled
    Redirection: version: 5.5.0, author: John Godley, Auto-updates disabled
    W3 Total Cache: version: 2.7.7, author: BoldGrid, Auto-updates disabled
    Wordfence Security: version: 8.0.0, author: Wordfence, Auto-updates disabled
    Yoast SEO: version: 23.8, author: Team Yoast, Auto-updates disabled wp-media

    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1808
    imagemagick_version: ImageMagick 7.1.0-46 Q16 aarch64 5ef3d4d66:20220816 https://imagemagick.org
    imagick_version: 3.7.0
    file_uploads: 1
    post_max_size: 1000M
    upload_max_filesize: 300M
    max_effective_size: 300 MB
    max_file_uploads: 20
    imagick_limits:
    imagick::RESOURCETYPE_AREA: 16 GB
    imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
    imagick::RESOURCETYPE_FILE: 6144
    imagick::RESOURCETYPE_MAP: 16 GB
    imagick::RESOURCETYPE_MEMORY: 8 GB
    imagick::RESOURCETYPE_THREAD: 1
    imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
    imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVIF, AVS, BAYER, BAYERA, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, QOI, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, STRIMG, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X3F, XBM, XC, XCF, XPM, XPS, XV, YAML, YCbCr, YCbCrA, YUV
    gd_version: bundled (2.1.0 compatible)
    gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF
    ghostscript_version: 9.56.1 wp-server

    server_architecture: Darwin 22.6.0 arm64
    httpd_software: nginx/1.16.0
    php_version: 8.1.29 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 4000
    time_limit: 1200
    memory_limit: 256M
    max_input_time: 600
    upload_max_filesize: 300M
    php_post_max_size: 1000M
    curl_version: 8.1.2 (SecureTransport) LibreSSL/3.3.6
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: false
    current: 2024-11-12T01:25:42+00:00
    utc-time: Tuesday, 12-Nov-24 01:25:42 UTC
    server-time: 2024-11-12T01:25:39+00:00 wp-database

    extension: mysqli
    server_version: 8.0.16
    client_version: mysqlnd 8.1.29
    max_allowed_packet: 16777216
    max_connections: 151 wp-constants

    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /Users/michaelstory/Local Sites/new-zealand-ukulele-trust/app/public/wp-content
    WP_PLUGIN_DIR: /Users/michaelstory/Local Sites/new-zealand-ukulele-trust/app/public/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: local
    WP_DEVELOPMENT_MODE: undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined wp-filesystem

    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    fonts: writable acf

    version: 6.3.10
    plugin_type: PRO
    update_source: ACF Direct
    activated: true
    activated_url: https://new-zealand-ukulele-trust.local
    license_type: Developer
    license_status: active
    subscription_expires: undefined
    ui_field_groups: 1
    php_field_groups: 0
    json_field_groups: 0
    rest_field_groups: 0
    post_types_enabled: true
    ui_post_types: 5
    json_post_types: 0
    ui_taxonomies: 4
    json_taxonomies: 0
    ui_options_pages_enabled: true
    ui_options_pages: 0
    json_options_pages: 0
    php_options_pages: 0
    rest_api_format: light
    registered_acf_blocks: 0
    blocks_per_api_version:
    blocks_per_acf_block_version:
    blocks_using_post_meta: 0
    preload_blocks: true
    admin_ui_enabled: true
    field_type-modal_enabled: true
    field_settings_tabs_enabled: false
    shortcode_enabled: false
    registered_acf_forms: 0
    json_save_paths: 1
    json_load_paths: 1
    Hank

    (@poku1010)

    @mikednz

    It appears that your theme is custom-made.

    Could you provide the PHP code related to the navigation items?

    Additionally, if you use an official theme, such as Twenty Twenty-Two, do you encounter the same issue?

    Best regards,

    Thread Starter mikednz

    (@mikednz)

    Yes I can confirm with the default theme the description doesn’t show in the HTML when the page has a submenu. You can the last li has a link and a submenu but when I add a description to the li it doesn’t appear in the HTML while the others that have no submenu have a span with wp-block-navigation-item__label and wp-block-navigation__description

    Hank

    (@poku1010)

    I tested the menu name description, and it displays correctly when there is a dropdown menu, as shown in the following link:
    https://wpdev.wantnote.com/

    I suggest using the official theme, then re-editing the navigation menu and updating it to try again.

    Thread Starter mikednz

    (@mikednz)

    In your example Hank there is no .wp-block-navigation-item__description in your menu. Have you added a description to any of your menu items?

    Hank

    (@poku1010)

    It seems that not all themes display the Menu Description. I switched the theme to Twenty Fifteen, and now the Menu Description is displayed correctly.

    Image Link
    Website Link

    You can try using Twenty Fifteen to check if the Menu Description displays properly.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.