Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #708849

    Goodmorning everyone. I need to insert at the end of each page of the site (regardless of whether the home page, a page or article) an image. How I can do this only once and do not add the items in a picture at the end of each page? Thanks to everyone in advance

    • This topic was modified 8 years ago by minogig.
    #708868

    well if you work with a child theme do the following in the child theme functions.php :

    add_action('get_footer', 'add_div_before_footer');
    function add_div_before_footer(){
    	?>
    	<div class="container_wrap" id="extracontainer">
    		<div class="container">
                         Content
    		</div>
    	</div>
    	<?php
    }

    the id is for styling your container than. The Content is what you like to position there ( Images or something else)

    if you like to place some content which you built with the advanced layout builder – activate the debug mode – copy that code and place it inbetween instead of “Content”.

    #708876

    Hi!

    Let us know if that answer works for u or if you need anything else.

    Thanks a lot

    Regards,
    Basilis

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