Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1371181

    Hi
    is someone able to direct me on how I can solve this issue?

    Issue:
    I want a section on my website to have a completely different HEADER and FOOTER branding

    How I would like it to work:
    choose a new TEMPLATE-NEWBRAND .php file that has the Avia Editor but calls new HEADER-NEW .php and FOOTER-NEW .php files. Within the new HEADER and FOOTER I would like to create some ACF options where we can edit the content for this new header and footer.

    example:

    wp_head(‘new’);

    template-blank.php.

    get_footer(‘new’);

    Any help would be greatly appreciated.

    Thanks

    #1371199

    Hi zoik,

    Please try to create a new template, call it template-acf.php, copy the contents from Enfold’s page.php and paste it in.
    In line 2 of the template file, add a template name (just change the name as you see fit):

    /*
      Template Name: ACF Template
    */

    replace:

    get_header();

    with:

    get_header('new');

    and replace:

    get_footer();

    with:

    get_footer('new');

    Hope this helps.

    Best regards,
    Nikko

    #1371232

    thanks, Nikko

    can I get away with a simple header and footer like the one below, or will I have issues because it’s not calling any of the requirements for AVIA Editor?

    header-new.php:
    <!DOCTYPE html>
    <html <?php language_attributes(); ?> class=”<?php echo $html_classes; ?>”>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
    <!– Scripts/CSS and wp_head hook –>
    <?php
    /* Always have wp_head() just before the closing </head>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to add elements to <head> such
    * as styles, scripts, and meta tags.
    */
    wp_head();
    ?>
    </head>
    <body id=”top” <?php body_class( $body_classes ); avia_markup_helper( array( ‘context’ => ‘body’ ) ); ?>>

    footer-new.php
    <div id=”fb-root”></div>
    <?php
    /* Always have wp_footer() just before the closing </body>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to reference JavaScript files.
    */
    wp_footer();
    ?>
    </body>
    </html>

    Thanks again
    James

    • This reply was modified 2 years, 8 months ago by zoik.
    #1371293

    Hi Nikko

    I have tried what you said, but I have an issue where all full-width sections don’t work and want to stay within a container.

    This screen shows how using template-blank.php allows for full-width AVIA SECTIONS and SLIDERS.
    https://www.dropbox.com/s/udtcqdmqds2qwu5/using-blank.png?dl=0

    This screen shows how using page.php DOES NOT allow for the full-width SECTIONS and SLIDERS but forces them to stay within a CONTAINER.
    https://www.dropbox.com/s/90d1xxuqly9zpmx/using-page.png?dl=0

    Is there a way to use template-blank.php but load in my header-new.php and footer-new.php ??

    Thanks again
    James

    • This reply was modified 2 years, 8 months ago by zoik.
    #1371404

    Hi James,

    I see, you can remove those limit on widths via CSS.
    Please try to add this CSS code in Enfold > General Styling > Quick CSS:

    .responsive .page-template-template-acf .container {
        max-width: 100%;
    }

    If you want to remove the left and right padding, then use this CSS code:

    .responsive .page-template-template-acf .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    Hope this helps.

    Best regards,
    Nikko

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.