Oh man, sorry 'bout that. I will from now on use the PHP tags. And yes, that makes perfect sense. Good programming by the way (in regards to the PHP tags).
Okay, now I just need to crack this problem. Time to start tinkering.
Here’s the functions.php file.
[php]<?php
/*-----------------------------------------------------------------------------------
FUNCTIONS
-----------------------------------------------------------------------------
Editing this file will break the theme and possibly the universe.
This file connects to our awesome framework.
-----------------------------------------------------------------------------------*/
/-----------------------------------------------------------------------------------/
/* Paths
/-----------------------------------------------------------------------------------/
$moonbear_customizer_path = get_template_directory().’/framework/customizer’;
$moonbear_tgm_path = get_template_directory().’/framework/tgm’;
$moonbear_importer_path = get_template_directory().’/framework/importer’;
$moonbear_hooks_path = get_template_directory().’/framework/hooks’;
/-----------------------------------------------------------------------------------/
/* Paths
/-----------------------------------------------------------------------------------/
require_once(get_template_directory()."/framework/functions.php");
require_once($moonbear_customizer_path . ‘/init.php’);
if (!get_option(“moonbear_installed”)) {
require_once($moonbear_importer_path . ‘/setup.php’);
}
require_once($moonbear_hooks_path . ‘/hook_mobile_navigation.php’);
require_once($moonbear_hooks_path . ‘/hook_navigation.php’);
require_once($moonbear_hooks_path . ‘/hook_post.php’);
require_once($moonbear_hooks_path . ‘/hook_single_portfolio_slider.php’);
require_once($moonbear_hooks_path . ‘/hook_style_switcher.php’);
?>
[/php]
and here’s what I had… which is clearly not working.
[php]<?php
/*-----------------------------------------------------------------------------------
FUNCTIONS
-----------------------------------------------------------------------------
Editing this file will break the theme and possibly the universe.
This file connects to our awesome framework.
-----------------------------------------------------------------------------------*/
/-----------------------------------------------------------------------------------/
/* These two lines avover “paths” were added to make WooCommerce work.
/-----------------------------------------------------------------------------------/
remove_action( ‘woocommerce_before_main_content’, ‘woocommerce_output_content_wrapper’, 10);
remove_action( ‘woocommerce_after_main_content’, ‘woocommerce_output_content_wrapper_end’, 10);
/— 2nd thing to add —/
add_action(‘woocommerce_before_main_content’, ‘my_theme_wrapper_start’, 10);
add_action(‘woocommerce_after_main_content’, ‘my_theme_wrapper_end’, 10);
function my_theme_wrapper_start() {
echo ‘’; /* was echo ‘’; …but I changed it to match the page.php */
}
function my_theme_wrapper_end() {
echo ‘’;
}
/— 3rd thing to add —/
add_action( ‘after_setup_theme’, ‘woocommerce_support’ );
function woocommerce_support() {
add_theme_support( ‘woocommerce’ );
}
/-----------------------------------------------------------------------------------/
/* Paths
/-----------------------------------------------------------------------------------/
$moonbear_customizer_path = get_template_directory().’/framework/customizer’;
$moonbear_tgm_path = get_template_directory().’/framework/tgm’;
$moonbear_importer_path = get_template_directory().’/framework/importer’;
$moonbear_hooks_path = get_template_directory().’/framework/hooks’;
/-----------------------------------------------------------------------------------/
/* Paths
/-----------------------------------------------------------------------------------/
require_once(get_template_directory()."/framework/functions.php");
require_once($moonbear_customizer_path . ‘/init.php’);
if (!get_option(“moonbear_installed”)) {
require_once($moonbear_importer_path . ‘/setup.php’);
}
require_once($moonbear_hooks_path . ‘/hook_mobile_navigation.php’);
require_once($moonbear_hooks_path . ‘/hook_navigation.php’);
require_once($moonbear_hooks_path . ‘/hook_post.php’);
require_once($moonbear_hooks_path . ‘/hook_single_portfolio_slider.php’);
require_once($moonbear_hooks_path . ‘/hook_style_switcher.php’);
?>
[/php]