Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » No options under Display Type when inserting galleries

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m having the same issue. I’m using a Wootheme…what are theme are you using? Want to see if it’s a theme or plugin conflict.

    Figured out the issue on my end, maybe it will help you. I’m using a child theme and had this code in my functions.php file. I was testing something out and left the code in there. Removing it allowed me to insert galleries into a page with options under Display Type.

    function callback($buffer) {
    		// Remove the Form from the main Shop page
    		$contents =  $buffer;
    		$pattern = '#\<form class="woocommerce-ordering" method="get"\>\s*(.+?)\s*\<\/form\>#s';
    		$contents = preg_replace_callback(
    		  $pattern,
    		  create_function(
    		    '$matches',
    		    'return "<!--<form class=woocommerce-ordering method=get>$matches[1]</form>-->";'
    		  ),
    		  $contents
    		);
    
    		$buffer = $contents;
    
    	  	return $buffer;
    }
    
    function buffer_start() { ob_start("callback"); }
    function buffer_end() { ob_end_flush(); }
    
    //only load on Woocommerce
    add_action('woocommerce_init', 'buffer_start');
    add_action('wp_footer', 'buffer_end');
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No options under Display Type when inserting galleries’ is closed to new replies.