admin管理员组文章数量:1130349
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.
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.
本文标签: customizationHow can I edit the Wordpress menu link to allow fb instead of http
版权声明:本文标题:customization - How can I edit the Wordpress menu link to allow fb: instead of http 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749122628a2319256.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论