Andy Galaxy
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Proper Way To Do A Child Theme FunctionsTo be more precise. The error is
“Warning: Cannot modify header information – headers already sent by (output started at /path/to/functions.php:17)…”Line 17 in parent functions.php is:
require_once( $template_directory . '/epanel/custom_functions.php' );
If it helps, I have not entered anything in the epanel custom background.Forum: Themes and Templates
In reply to: Proper Way To Do A Child Theme FunctionsActually the action hook was not ‘styleshop_bg_image’. So actual function is now:
function unhook_original_functions() { remove_action('wp_head','et_add_background_image'); } add_action('init','unhook_original_functions'); function my_add_background_image(){ $bg = et_get_option( 'styleshop_bg_image' ); if ( '' == $bg ) $bg = get_template_directory_uri() . '/images/new-body-bg.jpg'; }
but still same error.
Forum: Themes and Templates
In reply to: Proper Way To Do A Child Theme FunctionsThanks dude. I I’m trying to get my head round this. I’ve used:
function unhook_original_functions() { remove_action('styleshop_bg_image','et_add_background_image'); } add_action('init','unhook_original_functions'); function my_add_background_image(){ $bg = et_get_option( 'styleshop_bg_image' ); if ( '' == $bg ) $bg = get_template_directory_uri() . '/images/new-body-bg.jpg'; }
and get the error:
“Warning: Cannot modify header information – headers already sent by…”Forum: Themes and Templates
In reply to: Proper Way To Do A Child Theme FunctionsSorry I don’t really know how to override the function with the child. I put:
function et_add_background_image(){ $bg = et_get_option( 'styleshop_bg_image' ); if ( '' == $bg ) $bg = get_template_directory_uri() . '/images/new-body-bg'; }
And get “Fatal error: Cannot redeclare et_add_background_image()..”
Forum: Plugins
In reply to: [YAK for WordPress] Buy Button does not displayprobably not properly so it seems…
Forum: Plugins
In reply to: [YAK for WordPress] No 'add to cart' button on new 'product' (article)no way, come on tell us, come on, I dare you…
Forum: Plugins
In reply to: [YAK for WordPress] No 'add to cart' button on new 'product' (article)go on tell us then…