Welcome to WPSO. You need to modify the Walker_Nav_Menu Class. That class is responsible for rendering the HTML menu output in first place. The theme you are using is calling the WordPress menu class, which will then output your menu.
As alexwc_ mentioned the alt attribute is for images, not for anchor tags.
So in order to maniputelate the menu output, you need to implement your own “walker”.
See:
Related Posts:
- start_lvl Ignored in Custom walker_nav_menu
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- Add data-id attribute to child page links
- Menu Custom Data Attributes
- How can I use custom menus with a Bootstrap WordPress theme?
- how to changes mobile menu toggle breakpoint in WordPress
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- Vertical Menu for one page only
- wp nav menu without label
- Add extra markup to WP menus
- Hide main div if wp_nav_menu is empty
- add_filter the_content str_replace after shortcode
- WordPress Ajax always returns a 404 error
- How to remove a metabox from menu editor page?
- How to create different menu’s for not logged in visitors and for logged in members?
- How to add active class to custom menu using while loop and wp_list_pages
- How to place login logout link on menu that redirects users back to current page?
- How do I make wordpress comment fields required?
- Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error
- WordPress Wysiwyg Content not being displayed
- Javascript code inside “” in core WordPress files .php
- How do I add HTML to a PHP function [closed]
- wp nav menu: add attributes to menu items [duplicate]
- WordPress automatically adding html tag around PHP code
- Missing sidebar parameter “fix” – before_content
- Change Navigation Bar based on logged in or not
- How to get the POST TITLE using the POST ID?
- Load a page into a div with Ajax
- Converting HTML Template to WordPress Theme
- Multiple options not staying selected after saving
- Where to place PHP code that inserts (or doesn’t insert) menu item?
- Add data attribute to each li in menu
- Remove metabox from WordPress menu editor page?
- How to add an arrow to menu items has submenus
- wp_nav_menu returns menu list in ascending order. How can I arrange the menu same as dashboard menu
- How to remove ?wp-mce-4103-20162941
- parts of url disappear when using # inside href=”” [closed]
- Dot is not added at the end of href
- Add .htm extention to a custom taxonomy
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Noscript not working as it should in wordpress site
- Wrapping a Sidebar within
- New walker for walker_nav_menu to change inside container data
- How to edit HTML of my website on WordPress? [closed]
- Prevent redirect to wp-login.php
- wp_nav_menu not working correctly in my underscores theme
- How to add post meta in while loop?
- Adding function to child theme’s function.php
- Notice: Trying to get property of non-object
- How to use the checked() function to check for a non-empty var
- Find out last 7 days of upload images, last week uploaded image from Gallery and display them in different pages
- Link to page with posts of specific type
- Nav-Menu not showing up
- How to tell if a user has gone in and created a menu
- Hard-coding a shortcode as the last menu item in primary navigation?
- Custom forms with HTML
- Wrap title and excerpt in a div (latest posts block)
- Displaying images outside the content
- Add class to ul and li in wp_na
- Nav Walker that shows only children and siblings of top level parent menu item
- How to display already created menus via php?
- PHP inside echo HTML
- PHP function for horizontal Woocommerce thumbnails and badges
- What are the advantages/disadvantages of ways to use php template files?
- Remove span tags from WooCommerce Downloads page
- Drop down question
- How to enable HTML tags in category description without breaking the category page
- Can’t display anything through homepage text editor
- How to let mobile navigation menu close when link is clicked?
- Add element after navigation element title don’t works like I expect
- Woocommerce custom attributes list help
- How to override html codes in wordpress?
- Access certain Entry in HTML-Table and pass the entry-data in WP not working [closed]
- How to create a sub-page of sub-page?
- Widget Logic – display on page and all child
- Code works on page-example.php by not category-example.php
- How to create a php page to collect information from a html page
- Adding button to wordpress menu
- Can’t make product images clickable
- I need help implement a Javascript code into the PHP file
- WooCommerce – Print Processing orders [closed]
- Category – “No content found”
- Add options to WordPress backend
- Using ‘array’ method in wp_nav_menu causes it to disappear
- Automatically create a loop for post ID
- WordPress – Image href for home menu nav not working
- How to get the count for each taxonomy term
- WP_Nav Highlight Parent Issue
- if is_home(), change class of menu-item-225 of wp_nav_menu
- Save Option on Database
- Change order that the menu is generated with wp_list_pages
- Make a permalink to the most recent blog post
- Can you not edit the HTML and PHP of your WordPress without paying?
- Parse error: syntax error, unexpected ‘}’ in
- Load wp_editor on button click
- Add topbar to static html page
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- Why do I get a 404 error on my custom post type archive pagination?
- How to modify default tags in wp_head()