Skip to main content
10 events
when toggle format what by license comment
Feb 16, 2021 at 15:58 comment added Nick There's no wysiwyg editor available under Wordpress's Appearance > Menus. I don't think that is something available here in Wordpress.
Feb 16, 2021 at 15:56 history edited Buttered_Toast CC BY-SA 4.0
added 9 characters in body
Feb 16, 2021 at 15:56 comment added Buttered_Toast putting the shorcode inside the link input will not work, try adding it in a wysiwyg and see what it outputs, if its what you want then try to find the right wysiwyg that works best for you
Feb 16, 2021 at 15:50 comment added Nick Sorry, it doesn't work. If I look in the source code what this produces, is <a href="http://[bt_custom_logout_link]" class="menu-link">Log Out</a> So it doesn't replace the url. The snippet is activated and set to run everywhere, so that can't be the problem. I litereally copy-pasted your code.
Feb 16, 2021 at 15:33 comment added Buttered_Toast Edited my answer to include the code you need to add to code snippets in order to create a shortcode that will output a logout link
Feb 16, 2021 at 15:32 history edited Buttered_Toast CC BY-SA 4.0
new edit with code snippets answer
Feb 16, 2021 at 15:25 comment added Nick I'm using the default Appearance > Menus option that comes with Wordpress. I've now also installed wordpress.org/plugins/code-snippets. Is it perhaps also possible with a code snippet?
Feb 16, 2021 at 15:18 comment added Buttered_Toast Seems like you are trying to add this code inside a wysiwyg as link option, this is not possible. wysiwyg with link option will escape any special characters. you will need to go inside your theme and add it there. or find the right action to hook into it and output the code
Feb 16, 2021 at 15:14 comment added Nick I don't think Wordpress accepts that as a custom link. When I enter that and click on Save, Wordpress converts the url to http://a%20href=?=%20wp_logout_url('/');%20?%20title=LogoutLogout/a. See: ibb.co/yy66S1F
Feb 16, 2021 at 15:10 history answered Buttered_Toast CC BY-SA 4.0