-
Author
-
March 30, 2014 at 11:03 #13877wisinyyandel7Participant
Hi @Sqadmin
I was having a look at this file on my child theme and I realized that the one on sweetdate (function.php) is so much longer, I mean it has more codes that the one on my child theme. Is it right? does the child theme needs to have more codes?
In one of the forum I found that the file from @fcm2013 is almost the same like in the sweetdate file (function.php) and this is mine:<?php
/**
* @package WordPress
* @subpackage Sweetdate
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since Sweetdate 1.0
*//**
* Sweetdate Child Theme Functions
* Add extra code or replace existing functions
*/add_action(‘after_setup_theme’,’kleo_remove_actions’);
/**
* Override existing actions
* Use these functions to replace/remove existing actions
* @since Sweetdate 1.3
*/
function kleo_remove_actions()
{
/* For example uncomment the line bellow to disable matching on member profile */
//remove_action(‘kleo_bp_before_profile_name’, ‘kleo_bp_compatibility_match’);
}/**
* Uncomment to change Looking for group with your own
*/
/*
add_filter(‘kleo_extra_tab1’, ‘custom_tab’);
function custom_tab()
{
return ‘Base’;
}
*//**
* Uncomment to change default tab on member profile
*/
/*
add_filter(‘kleo_bp_profile_default_top_tab’,’my_default_tab’);
function my_default_tab() {
return ‘my-photos’;
}
*/add_filter(‘kleo_pmpro_level_restrictions’, ‘my_restriction_option’);
function my_restriction_option($settings) {
$settings[] = array(
‘title’ => __(‘Restrict users from chatting with their friends’,’kleo_framework’),
‘front’ => __(‘Chat with your friends’,’kleo_framework’),
‘name’ => ‘my_setting_alias’
);return $settings;
}
?>What should I do? Should I have to copy the files the same like in sweetdate? or Should I leave it like this?
Thanks for your support.
April 1, 2014 at 23:13 #14066AbeKeymasterYou file is perfectly OK because it should contain just extra code or functions override and never the same code as in functions.php from the parent theme
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.