New Landing How can we help? Themeforest Theme Support Dante Dante Developer Customisations

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #66563
    Nic
    Member
    Post count: 5

    Hi there,

    I’m relatively new to child themes… could you please tell me how to load in my own customised / edited version of sf-options.php in to my child theme’s functions file?

    I made a copy of the sf-options.php and moved in to child theme/includes/sf-options.php, and I’d like to make it load in to my site instead of the one that currently loads.

    Basically, I would like to customise the descriptions in the backend to make them easier to understand for my client, but I don’t want my descriptions to be overwritten. I have never used a child theme before, so I’m not sure how to load / replace the file with my own.

    Any help would be greatly appreciated.

    #66967
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Add this to your functions.php file:

    if (!function_exists('sf_include_theme_options')) {
    		function sf_include_theme_options() {
    			require_once(SF_INCLUDES_PATH . '/sf-options.php');
    		}
    		add_action('after_setup_theme', 'sf_include_theme_options', 0);
    	}

    – Kyle

    #67090
    Nic
    Member
    Post count: 5

    Great, thanks Kyle!

    #67137
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register