Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1406520
    Christoffer Ahlback
    Participant

    Hi!

    Working on this page: http://avaliacoesneuropsicologicas.com/main/
    On the blog posts (not created yet) I really would like to have this https://theme-one.com/the-grid/riga/ in the bottom, just above my footer.

    so that every post page would look like this:
    – Header (normal, like for the rest of the page)
    – The post (like usual)
    – The Grid (added in some way)
    – Footer (just the same as on every other post or page on the site)

    As I’ve been looking around, it seems to me that the only way to do this is to create a child theme and edit the template for posts. Just want to make sure if this is correct, or if there’s another way to do it? Is there anything special I should think of doing this?

    Thanks!

    Christoffer

    #1406682
    Jade
    Moderator

    HI Christoffer,

    Please install and activate the child theme and add this code in the customizer:

    function add_grid(){
      if ( is_singular('post') ){ ?>
    
         echo do_shortcode('[the_grid name="The Grid Name"]');
        
      <?php }
    }
    add_action('x_after_the_content_end', 'add_grid');

    Then please replace [the_grid name="The Grid Name"]to the correct shortcode of the grid you have created.

    Hope this helps.

    #1406697
    Christoffer Ahlback
    Participant

    Thanks! 🙂

    #1406701
    Christoffer Ahlback
    Participant

    In the customizer, do I add it to the “global css” or the “java script”?

    #1406820
    Thai
    Moderator

    Sorry for the confusion.

    That code should be added under functions.php file locates in your child theme.

    Regards!

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