Long story, but I'm building a site with social icons in my menu bar (as menu items). I'd like them to open respectively on the device's app when clicked on (for example Facebook app on iOS). Problem is, is that my theme isn't allowing me to save menu items with links starting with anything other than http or https.
Where and how can I allow this feature in the theme's file or wherever it is?
Long story, but I'm building a site with social icons in my menu bar (as menu items). I'd like them to open respectively on the device's app when clicked on (for example Facebook app on iOS). Problem is, is that my theme isn't allowing me to save menu items with links starting with anything other than http or https.
Where and how can I allow this feature in the theme's file or wherever it is?
Share Improve this question asked Dec 6, 2018 at 17:26 Marcel Du PlessisMarcel Du Plessis 11 bronze badge 1- You need to provide more details. What theme are you using? What have you tried? How are you adding these links: admin menu creator? – RiddleMeThis Commented Dec 6, 2018 at 17:59
1 Answer
Reset to default 0It's not your theme that's preventing menu items from being saved with fb:
protocol. It's WP Core. WP Menu items are intended to be web URLs, because visitors can typically access a WP site from any device - not just a mobile device. Even a mobile device that doesn't have the Facebook app installed would not recognize a fb:
link.
My suggestion would be to create a menu through your theme through some other means - not a WP Menu, but programmatically or even hard-coded, depending on your site's needs.