I need to set up functions.php fiolder in my child theme as any functions added are not working/showing on the front end for some reason? Can you help me here?
Thanks Rob
I need to set up functions.php fiolder in my child theme as any functions added are not working/showing on the front end for some reason? Can you help me here?
Thanks Rob
Hello There,
Thanks for writing in! It is just a functions.php file which can be found in your child theme’s folder wp-content/themes/x-child/. It’s contents must be something like this:
<?php
// =============================================================================
// FUNCTIONS.PHP
// -----------------------------------------------------------------------------
// Overwrite or add your own custom functions to X in this file.
// =============================================================================
// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
// 01. Enqueue Parent Stylesheet
// 02. Additional Functions
// =============================================================================
// Enqueue Parent Stylesheet
// =============================================================================
add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );
// Additional Functions
// =============================================================================
Any function you will add needs to be valid and correct which will be added below the “Additional Functions”. And by the way, the child theme must be active when you check in Appearance > Themes so that all of your custom codes will take effect. Could you please share the whole contents of your functions.php file in your next reply so that we can check it?
Hope this helps. Kindly let us know.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.