Tagged: x
-
AuthorPosts
-
June 18, 2016 at 7:45 am #1048413
president75ParticipantHi
I would like to do this for my site:
http://www.ninoblasco.com/wordpress-spostare-i-file-javascript-nel-footer-php/
As I have suggested I use a child theme. How do I change the header.php and footer.php !?
Thanks
June 18, 2016 at 7:45 am #1048414
president75ParticipantThis reply has been marked as private.June 18, 2016 at 8:16 am #1048451
ChristopherModeratorHi there,
Please add this in functions.php file :
//Add code to wp_head function custom_code_in_header() { ?> // Add your code below this line <?php } add_action( 'wp_head', 'custom_code_in_header' ); //Add code to wp_footer function custom_code_in_footer() { ?> // Add your code below this line <?php } add_action( 'wp_footer', 'custom_code_in_footer' );Hope it helps.
June 18, 2016 at 10:33 am #1048522
president75ParticipantThis code just to do everything described in the article !?
I would like to understand. How is it that you changed only functions.php instead they modificanoanche header.php and footer.php.
I want to learn for the next time.
Thank you
June 18, 2016 at 2:25 pm #1048629
Nabeel AModeratorHi there,
Let’s look at this code:
//Add code to wp_head function custom_code_in_header() { ?> // Add your code below this line <?php } add_action( 'wp_head', 'custom_code_in_header' );Anything you write under
// Add your code below this linethis line, will be added in your<head>section of your site. Same is the case with the footer.Hope this helps!
June 18, 2016 at 4:51 pm #1048686
president75ParticipantOk. I get it. But you can tell me the full code to move the script at the bottom of the page. I am not very practical code but I know this helps for the speed of the site.
Can you help me.
Thank you
June 19, 2016 at 2:52 am #1049033
Rue NelModeratorHello There,
Thanks for the updates! If you want to easily add things to the header or footer, you can also customize your header.php and footer.php by copying the files from
wp-content/themes/x/framework/views/integrity/wp-header.phpandwp-content/themes/x/framework/views/integrity/wp-footer.phpand place it in your child theme’s folderwp-content/themes/x/framework/views/integrity/. For more details, please review how we recommend making template changes in Customization Best Practices.Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1048413 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
