If your theme adheres to WordPress standards the menu is generated with a call to wp_nav_menu. This function has a filter that allows you to modify the html. Like this:
add_filter ('wp_nav_menu', 'wpse312466_add_loginlink');
function wpse312466_add_loginlink ($nav_menu, $args) {
$nav_menu = '<div id="loglink"><a href="https://wordpress.stackexchange.com/link/to/loginpage">Login here</a></div>' . $nav_link
return $nav_menu
}
Now it depends on your css skills to get that link in the place where you want it to be.
The obvious place to stick this code is in a child theme, but you could also make it into a plugin.
Related Posts:
- Editing ‘Password Reset’ E-mail
- Change “You are now logged out” text
- Removing labels and tag on WordPress’s default login form
- Customize user account activation message
- How do we check if the user is logging in or registering?
- add filter login_redirect does not contain original requested redirect
- Change username before login
- Custom Login Errors and variables I can use
- Correct method of redirecting user login
- Filters on Login Page
- How can I change the email that is inside the default email texts of wordpress?
- How do I hook my function to run only after submitting login form
- Change login CSS
- How to redirect non-logged in users to login with post_password_required()
- Filter page title (displayed in browser tab) of wp-login
- How to redirect a unique link based on login status
- login_url filter creates permanent wp-admin -> wp-login redirection loop
- Hook into ‘when user logs in’ [persistent login]
- Change password reqts with NO plugin without breaking resetpass link?
- Not able to change wp_title using add_filter
- How to hook a filter to catch get_post_meta when alternate a custom field output?
- Changing JPEG compression depending on image size
- How to add headers to outgoing email?
- Advanced Custom Fields and Yoast SEO keyword analysis [closed]
- Insert Custom HTML After Shortcode
- Is there a way to add another row to the tinyMCE kitchen sink toggle?
- add_filter to youtube embeds?
- How can I detect if a user changes their password?
- SSL certificate for the host could not be verified
- Store source permalink on XMLRPC calls
- How to limit the pages displayed for choosing parent page on page attribute’s menu?
- WordPress RSS feed – filter RSS content by custom field value
- What is the filter hook for custom fields content?
- Filter keywords from search query
- Add class to woocommerce checkout body based on filter [closed]
- changing variable through filters or action hooks
- filter the_title problem in nav
- Changing Gutenberg / WP block editor width only on pages, not posts or other taxonomies
- How to replace any occurence of Gravatars with a local placeholder image?
- Ignore dots when searching in the media library?
- How to change the blog title with add_filter? details below
- How To Get User Data in Callback Function for pre_user_nicename?
- What’s the best way to split admin-only functionality in the theme’s functions.php file?
- the_content filter – checking the post
- Which built-in WordPress files are safe to edit?
- Why won’t my preg_replace work with content_save_pre?
- How do I target a single page to modify the comment form of only that page?
- How Does comment_author Filter Work?
- How to removes all instances of thumbnails displayed in my theme?
- Contact Form 7 filter similar to preprocess_comment [closed]
- Walker_Nav_Menu doesn’t work in wp_page_menu_args filter
- get_posts() and filters
- Adding TinyMCE buttons without removing plugin buttons?
- upload_files cap to not loggen in users – add_cap to not logged in users
- How to customize the “Insert/edit link” popup box?
- How to filter backend post list showing only posts having a shortcode
- Problem with login form
- Add Lightbox To WordPress Native Gallery
- What hooks to hook onto for automatic cache clearing
- Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
- Modify Redux Framework Options in Child Theme
- How can I output all apply_filters and do_action?
- Override has_post_thumbnail function
- How to allow code block in wordpress comments
- remove_action: how to access to a method in an child class?
- Set default value for “Additional CSS class(es)” for specific block types
- Contact Form 7 Custom Validation Doesn’t Get Called [closed]
- add_filter to wp_nav_menu_objects having no impact
- Trimming a custom field to a length
- How to add a filter to the get_body_class function?
- Using add_filter to modify a public function of a class
- How to hide/remove GhostKit component panel in gutenberg block inspector
- WordPress removing slashes from shortcode output
- when use function the_content break
- Adding html banner to posts
- How does wordpress add ‘style’ attribute to element
- How do I safely force get_theme_mod() to use a defined get_option(“stylesheet”) value?
- conditional search
- output custom Posts on a Page
- Filter “Your latest posts”
- Is it better to use a constant or apply_filter?
- Hide certain product filters from specific product categories
- Hooked into wp_get_attachment_caption to add content to the default description; not working for jetpack slideshow. Why?
- WordPress Gutenberg core/heading block (wp-block-heading)
- Add an attribute to the root from functions.php with add_filter
- Would like to use hook or filters to customize email templates
- Removing menus from users other than the administrator
- Can’t understand apply_filter logic
- Modify oembed code conditionally
- Filter and validate user role in registration
- wordpress filtering out caps in wp_title? (UpperCase is changed to Uppercase)
- What scope is $blog_url = get_bloginfo() inside a function
- String Replace Caching & Chance of Collisions
- is_page_template() doesn’t work with excerpt_length filter
- Turn wp_tag_cloud into a front-end filter
- Add HTML to Page Content
- Filter dashboard custom post listing by user
- GET form action. Redirect to self
- Is there a way to override only a portion of the function print_media_templates defined in wp-includes\media-template.php?
- How to override hook from themes functions.php which is defined in plugin