Custom header without Pro Builder or Original Headers

Is there a way to insert a custom header using <?php get_header(); ?> like a standard theme (or similar method)? I tried to create a custom header, such as header-custom.php and loading into child-theme version of template-blank-4.php using get_header( ‘custom’ ), but all the X body classes weren’t added.

What’s the proper method, that also retains the body classes?

Hi there,

Thanks for posting in.

You have to follow the proper template structure for X theme. Please check this https://theme.co/apex/forum/t/customizations-best-practices/205

Example, /framework/views/integrity/wp-header.php, that’s for old version, in new version, it’s here \framework\legacy\cranium\headers\views\integrity\wp-header.php

You have to duplicate X templates and place them in your child theme, then customize it. Adding <?php get_header(); ?> will not work since the theme has stacks where header could have different structure.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.