WordPress.org

Ready to get started?Download WordPress

Forums

Jigoshop
[resolved] Jigoshop shop page loaded without headers... (4 posts)

  1. larsemil
    Member
    Posted 2 years ago #

    Hi!
    I have set up Jigoshop at http://newtynell.dalnix.se/product/ and as you can see it loads without headers.

    My function.php file looks like the following:

    function mytheme_open_jigoshop_content_wrappers()
    {
        echo '<div id="content" class="mainbar entry-content clearfix">
    		<div class="content">';
    }
    
    function mytheme_close_jigoshop_content_wrappers()
    {
        echo '</div></div>';
    }
    
    function mytheme_prepare_jigoshop_wrappers()
    {
        remove_action( 'jigoshop_before_main_content', 'jigoshop_output_content_wrapper', 10 );
        remove_action( 'jigoshop_after_main_content', 'jigoshop_output_content_wrapper_end', 10);
    
        add_action( 'jigoshop_before_main_content', 'mytheme_open_jigoshop_content_wrappers', 10 );
        add_action( 'jigoshop_after_main_content', 'mytheme_close_jigoshop_content_wrappers', 10 );
    }
    
    add_action( 'wp_head', 'mytheme_prepare_jigoshop_wrappers' );

    The problem seems to be that when loading shop page, the functions.php file is not even being run.

    http://wordpress.org/extend/plugins/jigoshop/

  2. larsemil
    Member
    Posted 2 years ago #

    Oh: almost forgot.
    The theme running on page is Arctica by AIT.
    They use WPLatte(http://www.ait-themes.com/doc/wplatte-html-templates/) to generate templates. Could that be the case?

    /E

  3. IvicaD
    Member
    Posted 2 years ago #

    Themes must be properly wrapped up, Jigoshop works out of box for TwentyEleven and TwentyTen default WordPress Themes.

  4. mcart@mail.ru
    Member
    Posted 1 year ago #

    I have same problem with wrapping. But problem wasn't in incorect wrapping logic. It's more simple. I found ob_get_clean() in hook function.
    More read here

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.