Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

How to change the link on the logo at the menu?

It’s better to do it with Jquery, To set the href attribute, use the following code:

$('selector a').attr('href','http://example.com');

For example:

$('.logo a').attr('href','http://example.com');

Related Posts:

  1. Add custom menu item using wp_nav_menu_items filter
  2. Custom ID for certain menu item?
  3. Removing link ” from ” menu for some “links” without JS
  4. Using filters to change href of nav menu page link
  5. Links open only on new tab or window
  6. How to get current page menu item name instead of full menu item list
  7. Adding different classes to anchor in navigation menu
  8. Pending Custom Link in Menu
  9. Force PDF download from custom menu?
  10. Page-Linking Structure
  11. How to add wechat (weixin) link to navigation menu?
  12. Admin only menu/page
  13. Image as a link using wp_nav_menu()
  14. how to remove the top navigation bar or header top on wordpress website?
  15. Link that refers to a menu item with dynamically generated URL
  16. Fragment URL in navigation item without a custom link
  17. Link to Homepage in Menu
  18. Separator for custom nav menu
  19. How do you link to a place in another page without any styling issues?
  20. Custom Links menu items include in Search Results
  21. Menu custom link not working for external site
  22. Why is wordpress forcing https link generation?
  23. Links do not open from click, only in new tab [closed]
  24. Adding existing links to custom navigation menus?
  25. Creating Menu Links in a Custom Theme
  26. The cart, checkout, and shop links not getting removed
  27. URL links consistent with menus?
  28. Opening Menu link in another tab
  29. Active class to current link
  30. How to add class to anchor using wp_nav_menu
  31. Simple form to add custom links to menu?
  32. Main menu navigation links and new pages
  33. custom menu widget where menu title is a link
  34. 2 item in a same menu pointing to 1 page
  35. How to show pages in menu without link
  36. Problem with links once in portfolio item
  37. How to create a link-less parent (top level) menu item that doesn’t use an anchor tag
  38. Menu links URL with PHP GET method
  39. Classes CSS (Optional) – how do I reference this in php?
  40. Why does WordPress convert absolute URLs to relative URLs for menu items?
  41. Parent link need to go first child submenu
  42. Add a data attribute to list item element in menu
  43. Links in new menu don’t work
  44. How to make menu output links absolute
  45. change link of menu particular tab
  46. Menu Structure with Links failure to update
  47. Top menu link anchor href value change after online server?
  48. Show content of subdomain from specific menu-item?
  49. Navigational error
  50. How do I add a link to the menu that has a charector (?) in it?
  51. Remove link from Page name in navigation bar
  52. Change menu item order
  53. Menu System: Custom Links
  54. Unsual behaviour of navigation Menus
  55. How to centre menu items on horizontal nav bar? (e.g. make margins equal) [closed]
  56. How do i add logo in wordpress studiopress (glam theme)?
  57. Wrapping my ‘s with
  58. Displaying list of random links using wp_nav_menu
  59. WordPress removes URL parameters from menu elements when saving the menu
  60. how to add permalink/slug to wordpress custom link menu item
  61. I need to change the hyperlink attached to the logo on the mobile menu
  62. Main Menu Hover is Always White
  63. Render link description in navigation block
  64. Redirect Issue on a link from the client side
  65. link a page I created as a under construction and link it to the menu
  66. Display a portion/ branch of the menu tree using wp_nav_menu()
  67. Programmatically add a Navigation menu and menu items
  68. Any docs for wp_nav_menu’s “items_wrap” argument?
  69. Customizing Only a Specific Menu using the “wp_nav_menu_items” Hook?
  70. Changing the Order of Admin Menu Sections?
  71. How make top level menu item not have link, but have sub-menus that are linked?
  72. Add ‘has_children’ class to parent li when modifying Walker_Nav_Menu
  73. Get WP Navigation Menu from REST API V2
  74. How to Hard Code Custom menu items
  75. How to add a Custom Link to a Menu with a URL that is relative to the blog URL
  76. How do I remove UL on wp_nav_menu?
  77. Retrieving a list of menu items in an array
  78. WordPress default menu in database
  79. Adding an Arbitrary Link to the Admin Menu?
  80. Dynamically exclude menu items from wp_nav_menu
  81. Add “Logout” link to navigation menu
  82. Error: Declaration of MyClass::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl()
  83. Split up wp_nav_menu with custom walker
  84. Removing container from wp_nav_menu not working
  85. Custom Nav walker display current menu item children, or siblings on no children
  86. wp_nav_menu: show menu only if one exists, otherwise show nothing
  87. Is there an easy way to replace a custom menu link with a page or post?
  88. Convert output of nav_menu items into a tree-like multidimensional array
  89. Get page IDs from nav items
  90. Add a custom walker to a menu created in a widget
  91. Using a menu walker add a custom item at the end of the menu’s items
  92. Add settings to menu items in the Customizer
  93. wp_get_nav_menu_items() not working with slug
  94. How to get current-menu-item title as variable?
  95. Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
  96. Add Class to Specific Link in Custom Menu
  97. Remove a menu item in menu
  98. Generate a Menu that Displays Child Pages using wp_list_pages() with the New Menu Functionality in WordPress 3.0?
  99. How do I get the name of a menu in WordPress?
  100. How to Add to Each Menu Link with link text to data-attr?
Categories menus Tags code, links, logo, menus
Pulling in featured image into default recent posts widget
How can I add a title to this ‘maintenance mode’ function?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress