Hi,
I want to add an element to all pages of my website. Let’s say, a button at the very top. Or a textbox just above the footer.
I am somehow missing the approach where to start. Would appreciate any hint …
Thanks!
Hi support, I’m interested in this too …
Hi,
There’s an option to use Page as a footer, however, if this is not a good option for you then you can do the following instead:
1. You’ll need to use a child theme, you can download and find instructions in this link: https://kriesi.at/documentation/enfold/child-theme/
2. Go to functions.php of your child theme and add this code at the bottom:
function builder_set_debug() {
return 'debug';
}
add_action( 'avia_builder_mode', 'builder_set_debug' );
3. Create a separate page for the layout you want to put above the footer, once you have made the layout/design, go to the bottom of the builder, you should see a Textarea where some shortcodes are generated, copy all these codes.
4. In functions.php again of the child theme, add this code:
function enfold_before_footer() {
echo do_shortcode("SHORTCODE");
}
add_action('ava_before_footer', 'enfold_before_footer');
replace SHORTCODE with the shortcodes you copied in step 3.
Hope this helps.
Best regards,
Nikko
Thanks Nikko!
Nikko, thanks from me also – it’s exactly the information I needed!
/closed
Hi LarryLayouter and bnetz,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko