Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1276450

    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!

    #1276776

    Hi support, I’m interested in this too …

    #1276827

    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

    #1276878

    Thanks Nikko!

    #1276880

    Nikko, thanks from me also – it’s exactly the information I needed!

    /closed

    #1276953

    Hi LarryLayouter and bnetz,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Create a new content-element for all pages, blogposts etc.’ is closed to new replies.