Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1012406
    Stanley Tan
    Participant

    Hi, how can we add a custom content in between the body and the footer?
    More specifically in between body and <footer class=”x-colophon top” role=”contentinfo”>
    Here’s a link to the sample url: http://www.owlguru.com/test-page/

    #1012465
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Add this on your child theme’s functions.php file.

    function content_before_footer() { 
      ?>
        <div class="custom-footer">
          <div class="x-container max width">
            <p>SOME TEXT CONTENT HERE</p>
          </div>
        </div>
      <?php 
    }
    add_action('x_before_view_renew_wp-footer','content_before_footer', 30);

    Hope it helps, Cheers!

    #1012483
    Paul R
    Moderator

    Hi,

    Thanks for writing in!

    To add custom content, you can add this in your child theme’s functions.php file

    
    function add_custom_content() { ?>
    
    <div class="custom-content">
        <div class="inner-wrap">
        ADD CONTENT HERE
    
        </div>
    </div>
    
    <?php }
    
    add_action( 'x_after_site_end', 'add_custom_content',9999 );
    

    Hope that helps.

  • <script> jQuery(function($){ $("#no-reply-1012406 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>