-
Author
-
August 1, 2015 at 10:17 #71050k3mParticipant
Hi, I need to customise the theme_options.php file (add new sections to the config screens) but would not like to change the core file itself. Is there any way to either use child-theme for this file or add new sections via add filter/action?
I’ve tried both ways but neither seems to work.August 3, 2015 at 02:43 #71278LauraModeratorHello, will assign the ticket to a higher support lever who can help and advise you in your query.
Thanks! 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
August 7, 2015 at 09:08 #72122k3mParticipantHi, what’s the estimated time for the response to that ticket? It starts to be urgent.
Thank you
August 7, 2015 at 14:54 #72161AndreiModeratorHi,
You can extend the theme options by using the filters of the args, sections and tabs from the construct of the Kleo_Options class from the following file: “wp-content/themes/sweetdate/framework/options/defaults.php”.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 11, 2016 at 13:11 #125272k3mParticipantHi,
I have to get back to this subject. Unfortunately the filters squeen-opts-sections- … defined in defaults.php do not seem to work. Could you please have a look what is the issue.
My source code is as follows:
“wp-content/themes/sweetdate/framework/options/defaults.php” contains the following line:
$this->sections = apply_filters(‘squeen-opts-sections-‘ . $this->args[‘opt_name’], $sections);My filter is defined as below:
function set_sweetdate_options_sections($sections){
echo “test”;
return $sections;
}
add_filter( ‘squeen-opts-sections-sweetdate’, ‘set_sweetdate_options_sections’ );I’ve also tried to change apply_filters to apply_filters_ref_array in defaults.php but it still does not work.
Thank you
-
AuthorPosts
The topic ‘theme_option’ is closed to new replies.