Add X Header / Footer

Hi Support,

I’m testing a new support ticket plugin that takes over the page and doesn’t use the WordPress page templates from inside the editor. The plugin has it’s own header.php and footer.php files.

Is there a php script to call X-Themes header / footer that I could add to the files?

I’ve tried the WordPress codex suggestions, and they work, but they are only returning text.

Thanks

Brad

Hi Brad,

On sample template that you can find on this folder: x\framework\views\integrity\template-blank-1.php, we are using the following to call header and footer:

<?php

// =============================================================================
// VIEWS/INTEGRITY/TEMPLATE-BLANK-1.PHP (Container | Header, Footer)
// -----------------------------------------------------------------------------
// A blank page for creating unique layouts.
// =============================================================================

get_header();

?>
<?php get_footer(); ?>

If you want to be specific content, please check the files on the following folder:
\wp-content\themes\x\framework\views\header\
\wp-content\themes\x\framework\views\footer\

Hope this helps.

Hey @Lely,

I’ve tried a variety of approaches and can’t get it to work.

This will likely be outside support but here is there header.php file:

 <?php
/**
 * Clean slate footer
 *
 * @package Fast Plugin
 *
 * @copyright 2019 Oxygenna.com
 * @license http://themeforest.net/licenses/standard
 * @version 1.15.4
 * @author Oxygenna
 */

    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
        <head>
            <?php do_action('wp_clean_slate_head'); ?>
            <?php wp_head(); ?>
        </head>
        <body class="mat-typography" dir="<?php echo is_rtl() ? 'rtl': 'ltr'; ?>">

Any ideas would be great!!

Thanks

Brad

Hello Brad,

Usually, if you will create the template inside the child theme, above code should work. You just need to copy 1 template on the root folder of the child theme and use it as guide.

In case you are building the template inside the plugin, you should have a code on the plugin that calls the template from the child theme if it exist or if not found use the template that exist on the plugin itself. You might accomplish this using this:


Then, build what you need on the template you just called inside the child theme. That way when you called above functions as suggested it will work as intended

Since this is clearly customization and outside the scope of our support, we can only give guides on how to achieve it. Thank you.

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