admin管理员组文章数量:1130349
I am working on developing a simple WP theme that our office will use as a starting point for any future projects that come in. My question is this: How would I go about adding functionality that would allow for the user to select from several different pre-built header styles using the native WP Customizer panel? I have seen similar functionality in several popular themes (Linstar, BeTheme, etc.) in their Theme Options panel, and I know that they have created multiple header.php files (header-1.php, header-2.php, etc.), but I was wondering if and how this might be accomplished using the WP Customizer panel. Any help is appreciated.
I am working on developing a simple WP theme that our office will use as a starting point for any future projects that come in. My question is this: How would I go about adding functionality that would allow for the user to select from several different pre-built header styles using the native WP Customizer panel? I have seen similar functionality in several popular themes (Linstar, BeTheme, etc.) in their Theme Options panel, and I know that they have created multiple header.php files (header-1.php, header-2.php, etc.), but I was wondering if and how this might be accomplished using the WP Customizer panel. Any help is appreciated.
Share Improve this question asked Dec 11, 2018 at 21:24 David SennDavid Senn 11 Answer
Reset to default 0Do you want this to be an option per page? Or side wide.
If first, look into this: https://www.advancedcustomfields/ If second, look into this: https://blog.templatetoaster/wordpress-settings-api-creating-theme-options/
I am working on developing a simple WP theme that our office will use as a starting point for any future projects that come in. My question is this: How would I go about adding functionality that would allow for the user to select from several different pre-built header styles using the native WP Customizer panel? I have seen similar functionality in several popular themes (Linstar, BeTheme, etc.) in their Theme Options panel, and I know that they have created multiple header.php files (header-1.php, header-2.php, etc.), but I was wondering if and how this might be accomplished using the WP Customizer panel. Any help is appreciated.
I am working on developing a simple WP theme that our office will use as a starting point for any future projects that come in. My question is this: How would I go about adding functionality that would allow for the user to select from several different pre-built header styles using the native WP Customizer panel? I have seen similar functionality in several popular themes (Linstar, BeTheme, etc.) in their Theme Options panel, and I know that they have created multiple header.php files (header-1.php, header-2.php, etc.), but I was wondering if and how this might be accomplished using the WP Customizer panel. Any help is appreciated.
Share Improve this question asked Dec 11, 2018 at 21:24 David SennDavid Senn 11 Answer
Reset to default 0Do you want this to be an option per page? Or side wide.
If first, look into this: https://www.advancedcustomfields/ If second, look into this: https://blog.templatetoaster/wordpress-settings-api-creating-theme-options/
本文标签: phpAllow user to choose header style
版权声明:本文标题:php - Allow user to choose header style 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749106644a2316679.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论