That edit explains it. Alphabet is poorly written. Its use of php’s include rather than WordPress’s own include functions like get_header
and get_template_part
is breaking the parent/child hierarchy. You could probably make a copy of the file header.php
and change those includes, as long as the file calling in header.php
does it correctly!
As long as alphabet_get_option
returns just those valid values or something falsy
this should fix it:
<div class="header">
<div class="inner_header">
<!-- Start Header Position -->
<?php
$header_layout = alphabet_get_option('header_position');
if( $header_layout ) {
get_template_part( 'includes/header_layout/' . $header_layout );
}
?>
<!-- End Header Position -->
</div>
</div>
Related Posts:
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- Extend walker – navigation, adding data attribute to a tag
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Best practices: Custom theme sidebar menu – hardcode or widget?
- Removing non native customizer settings from a child theme
- which is the best way to customize nav-menu-template.php?
- How to make theme elements customizable in wordpress?
- Show woocommerce categories on my theme menu styling
- Custom Navigation build using wp_nav_menu and walker
- How to create and populate with few links a menu in child theme functions.php?
- Remove/Hide a Widget on a Custom Template
- WordPress menu walker – Get parent item text inside end_lvl function
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- WordPress theme Modifications not showing up on live server
- Global Navigation menu in diiferrent wordpress setups
- Override customizer values on a per-menu base
- Why does has_nav_menu return false when get_registered_nav_menus shows the opposite?
- Using My Own Classes On Wp Unit Tests
- Is it possible to visually group items on the theme customizer?
- Recommended method for updating/adding menus when adding new theme
- Is it possible to make *.js and folders visible in theme-editor
- Custom Blocks as part of a theme
- add_filter to parent theme helper class function from child theme
- Customize how a WordPress theme looks like in the Theme Selector
- WooCommerce: multiple input field for multiple product variations
- How to properly create a child theme
- Replace function in a child theme
- Redirect to another page using contact form 7? [closed]
- Can’t remove DIV from hooks in Storefront child theme [closed]
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Renaming a theme so it aids SEO and the theme used is hidden
- Integrate WooCommerce theme with a WordPress theme [closed]
- Admin: sub menu doesnt display under apperance when activate my themes
- Widget Option is Missing
- How do you use WordPress for a website that’s not in a blog format?
- filemtime(): stat failed warning within a child theme
- Overrite parent functions using child functions
- How can I override a require() used in functions.php of parent theme to my child theme
- Default Text not showing from customizer
- Derive child theme from separate theme
- Why wp_nav_menu() doesnt show the proper meny when invoked two consecutive times?
- How to develop a menu like wwe.com?
- How to have content scroll over background
- 3 Level Deep Navigation Menu Not Showing All Levels
- Need help with adding templates (archives and sitemap) to WordPress child theme
- WordPress Template Part in iFrame
- Why are some of my menu items not displaying on my menu?
- How to Create custom xml file for demo content for custom theme?
- Using a starter theme vs starter theme with child theme
- How should I use starter content utility to show some default menus?
- Replace site title with logo when logo is uploaded in customizer using
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to transfer one domain to another domain without losing theme options (customizer)?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Create a child theme from multiple themes
- Overide enqueue in non plugable function via child theme
- Second menu has the first menu ID
- Is there a WordPress boolean for “theme_customizer_active()”?
- How to add menù section to my WordPress template?
- Why would changing a child theme to a normal theme pass a Template is missing. error
- How to make theme configurable
- Starting point for custom Themes [closed]
- Extending Twenty Eleven Theme
- Simple child theme modification but links are broken
- wp_nav_menu and its fallback
- Thesis -style Navigation
- Making a child theme for “Airi”
- How to change footer credit text in Twenty Twenty One theme with a hook?
- Why still output /wp-content/themes/twentynineteen?
- Do I need to create a child theme for JointsWP
- How to clean up the theme for production?
- Templates without a loop, best practice?
- Theme development – Automatically menu creation
- Hestia Child theme creation
- Alignment Problem [closed]
- Why is switching between themes breaking my child theme?
- Avada Child Theme Development
- Questions from a new WP Dev [closed]
- What $handle does WordPress use for a theme’s implicit style.css?
- searchform.php doesn’t work properly
- CSS added through customizer neglects the need of a child theme?
- How to override template files in parent theme?
- How can i make multilevel menu in wordpress theme with bootstrap
- how do i develop a global nav and local nav to be wordpress dynamic?
- jQuery from parent theme loaded with many other scripts in a single min.js file
- Customizer: get_preview_url() inside customize_save_after hook
- Is There A WordPress Hook for Accessing Attachments for A Particular Page?
- How to add custom meta box when you have a custom page template file
- Do I need to re-import Susy to work with it in a child theme? [closed]
- add shortcode support in customizer
- Clearing dummy data before launch
- Theme development: How to add CSS classes to menu items?
- Editing my theme to try to place the default header at the top of the page breaks the rest of the page content
- Navbar- disable “onClick” drop-down
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- LESS not working in WordPress [closed]
- How to call a widget in a loop at a specific iteration value?
- Translate a child theme with pure PHP and gettext
- Right procedure when you develop a WP Website for a client
- Different themes on one site