php - Allow user to choose header style

admin2025-06-05  3

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 1
Add a comment  | 

1 Answer 1

Reset to default 0

Do 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/

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749106668a316417.html

最新回复(0)