
-
AuthorPosts
-
November 3, 2022 at 7:09 am #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 brandingHow 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
November 3, 2022 at 11:10 am #1371199Hi 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,
NikkoNovember 3, 2022 at 2:16 pm #1371232thanks, 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.
November 4, 2022 at 2:05 am #1371293Hi 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=0This 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=0Is 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.
November 5, 2022 at 7:08 am #1371404Hi 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 -
This reply was modified 2 years, 8 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.