Tagged: x
-
AuthorPosts
-
March 14, 2017 at 10:18 am #1406520
Christoffer AhlbackParticipantHi!
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
March 14, 2017 at 11:23 am #1406682
JadeModeratorHI 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.
March 14, 2017 at 11:30 am #1406697
Christoffer AhlbackParticipantThanks! 🙂
March 14, 2017 at 11:32 am #1406701
Christoffer AhlbackParticipantIn the customizer, do I add it to the “global css” or the “java script”?
March 14, 2017 at 12:28 pm #1406820
ThaiModeratorSorry for the confusion.
That code should be added under functions.php file locates in your child theme.
Regards!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1406520 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
