I'm using the Fixer theme and all is generally going well, thanks.
My primary navigation area is currently just two button elements (that I dragged in from the Upfront editor) that link to internal pages.
I'd like to add a third button for users to Logout, and I've tried a couple of things that were unsuccessful:
1. Using another button and linking to wp-login?action=logout
This doesn't contain the nonce so it takes me to the "Are you sure you want to logout?" error page.
2. Dragging in a code element and setting the following as the code: < a href="<? php echo wp_logout_url(); ? >">Logout< /a>
But this doesn't resolve the php code and literally makes the target of the link <?php echo wp_logout_url(); ?>
I found other solutions (like this: https://www.doitwithwp.com/add-logout-link-without-going-confirmation-page/) where you add code to the functions.php file, but I wasn't sure if doing that (to Fixer's functions.php file) was a good idea, or if it would even work.
Please advise, and thanks so much.