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
- When to use is_home() vs is_front_page()?
- How can I display a menu on certain pages only?
- WooCommerce shop page to use my custom template [closed]
- Add Caret to Menu Items with Sub-Menus in WordPress Theme
- Hide a div that is part of all pages on one specific page
- Adding Action Hooks In Parent Theme For Easier Child Theme Customization
- Add colors to existing color palette without replacing it
- Modifying JS files in Child-theme
- How to add nofollow to wp_nav_menu
- Where is the correct place(s) in twentysixteen’s header.php to add a Google webfont?
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- Can a child theme based on Starker theme be released as free to use theme for public use?
- Custom Nav Walker Displaying Values in Sub Menu
- Changing order title and featured image in blog post (Astra theme)
- Loading files for theme and child theme (Require)
- Create self-populating menu and add extra divs to the menu layout
- how to wrap tag in tag html to wordpress menu conversion
- Why is the Links Manager visible?
- Set default screen option for appearance -> menus
- How to add a second stylesheet to the editor
- Find the Children of a Page then Echo it as a Bulleted List of Links (menu)
- Include Parent functions.php in Child Theme functions.php
- Conditional statement to show pagination
- How to create a custom template to admin dashboard
- Primary navigation menu & footer not showing in category / tag page
- How to first edit in local WordPress editor on page and the add code?
- Custom Field created in add_meta_boxes reappearing itself again in the default Custom Metabox
- How to display all subpages and short by year
- Getting custom posts by post id from cutomizer text input
- Disabling Customizer Selective Refresh shortcut icons for selected controls
- Zoom on custom theme without child
- Can´t access child theme´s scripts dependencies found in parent
- How to override p2 breathe theme plugin in content template file?
- Changing a slider to a grid [closed]
- Where am I doing wrong in my theme menu?
- Recommended method for updating/adding menus when adding new theme
- Is it possible to make *.js and folders visible in theme-editor
- add_filter to parent theme helper class function from child theme
- WordPress Template Part in iFrame
- Using a starter theme vs starter theme with child theme
- How should I use starter content utility to show some default menus?
- How to transfer one domain to another domain without losing theme options (customizer)?
- Second menu has the first menu ID
- How to make theme configurable
- Thesis -style Navigation
- Avada Child Theme Development
- Do I need to re-import Susy to work with it in a child theme? [closed]
- Editing my theme to try to place the default header at the top of the page breaks the rest of the page content
- Create theme for mobile phones and tablets only?
- Using the media library for theme customization
- Alternatives to handle customizer settings
- Converting a theme to a child theme in a network
- Custom nav menu not showing
- Understrap-child conditional js script
- WordPress custom menu can’t show 3. level submenu
- Programatically Created Menu not Editable in Dashboard
- Why front-page.php doesn’t show content of file instead shows loop
- Building a custom menu or use a plugin?
- Theme functions don’t work as expected in partial included via get_template_part() after custom query using Ajax [duplicate]
- How can I access variables from theme in child theme? [closed]
- What is difference between add_theme_support and Theme Customization API?
- How can I show a custom WordPress menu anywhere I want on my website?
- Child theme menu not appearing in Twenty Seventeen
- How can I fix my theme header for my CSS stylesheet?
- Is hand coding required at all?
- WordPress Menu item > Sub menu Class update
- Duplicate child theme incl. design changes
- how to edit woocommerce checkout page
- How to connect two child themes on different sub domains to the same base theme
- How to know and change the machine name of a menu?
- How to customize the colors within a stylesheet using a WordPress setting
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- how can I re-utilize and class on a child theme
- WordPress Customizer Help with FontAwesome Icon
- How to migrate the menu from the site on my own theme in WordPress?
- Menu item not created on theme activation
- Header links also appearing in the footer
- Extending arrays in parent theme without completely overriding the files
- Creating Multiple Menus in the Thesis Theme?
- How do I change the tagline input to textarea?
- Turning WordPress Into full-featured website?
- add_action works outside condition but not inside it
- Should I create a child theme for a parent custom theme? [closed]
- I’m new in developing responsive WordPress Theme, so which framework to use or work from scratch? [closed]
- Modifying posts based on category in TwentyTwentyTwo theme