Forum Replies Created
-
AuthorPosts
-
June 27, 2014 at 12:07 pm in reply to: Unable to edit theme_options.php without editing the parent theme #36570prajaktaMember
Thanks for the reply..just want to know whether removing the action stops it from executing the old function catchkathmandu_theme_options_do_page() …is there any plugin availbale to see hooks and the actions applied to them while executing…I tried Hook Sniffer but it’s crashing as its outdated.
June 26, 2014 at 12:16 pm in reply to: Unable to edit theme_options.php without editing the parent theme #36396prajaktaMemberThanks for the reply …I just need to clarify that will not executing 1200-1400 same lines again for just 10 lines of modification in this function affect the performance…or is there any other efficient way
or can we do something like this in child’s function.php
remove_action( ‘admin_menu’, ‘catchkathmandu_options_menu’ );
add_action( ‘admin_menu’, ‘catchkathmandu_child_options_menu’ );function catchkathmandu_child_options_menu() {
add_theme_page(
__( ‘Theme Options’, ‘catchkathmandu’ ), // Name of page
__( ‘Theme Options’, ‘catchkathmandu’ ), // Label in menu
‘edit_theme_options’, // Capability required
‘theme_options’, // Menu slug, used to uniquely identify the page
‘catchkathmandu_child_theme_options_do_page’ // Function that renders the options page
);function catchkathmandu_child_theme_options_do_page() {
}Is this way correct ?
I am not sure whether removing the action stops it from executing the old function catchkathmandu_theme_options_do_page()June 25, 2014 at 8:09 pm in reply to: Unable to edit theme_options.php without editing the parent theme #36294prajaktaMember@sakin: Moving the file theme_options.php is working…[pls refer my question].I need to change this function
inc/panel/theme_options.php -> catchkathmandu_theme_options_do_page() function as i am adding one theme option field here.I think catchkathmandu_theme_options_do_page() could be overwritten if function_exists was used.Can we do this in future versions ? or is there any way out
I Just need to add a single field so Options Framework is expensive …can anybody help with the other way…i am new to wordpress
June 25, 2014 at 8:01 pm in reply to: How to use different responsive.css in child theme without changing parent theme #36293prajaktaMemberThanks for the reply…it’s working.
-
AuthorPosts