Forum Replies Created

Viewing 6 replies - 31 through 36 (of 36 total)
  • Thread Starter WPSpeak

    (@devplus)

    Thanks for your reply.
    Yes, I’ve another id that can replace s

    Thanks for your reply

    I think the best way is to provide the live site.

    Clear: both seems the right way to fix the problem, BUT that depends WHERE you use it.

    Thread Starter WPSpeak

    (@devplus)

    Got some rough ideas, but not sure exactly,
    So from you blogpost, I can see these codes (from the Advance example):

    /**
     * Grid Image Sizes
     *
     */
    function be_grid_image_sizes() {
    	add_image_size( 'be_grid', 175, 120, true );
    	add_image_size( 'be_feature', 570, 333, true );
    }
    add_action( 'genesis_setup', 'be_grid_image_sizes', 20 );
    
    /**
     * Grid Loop Featured Image
     *
     * @param string image size
     * @return string
     */
    function be_grid_loop_image( $image_size ) {
    	global $wp_query;
    	$grid_args = be_grid_loop_pagination();
    	if( ! $grid_args )
    		return $image_size;
    
    	// Feature
    	if( ( ! $wp_query->query_vars['paged'] && $wp_query->current_post < $grid_args['features_on_front'] ) || ( $wp_query->query_vars['paged'] && $wp_query->current_post < $grid_args['features_inside'] ) )
    		$image_size = 'be_feature';
    
    	if( ( ! $wp_query->query_vars['paged'] && $wp_query->current_post > ( $grid_args['features_on_front'] - 1 ) ) || ( $wp_query->query_vars['paged'] && $wp_query->current_post > ( $grid_args['features_inside'] - 1 ) ) )
    		$image_size = 'be_grid';
    
    	return $image_size;
    }
    add_filter( 'genesis_pre_get_option_image_size', 'be_grid_loop_image' );

    Ok, on the image-archive.php, I want to have a feature. Just grid. So I need to put the code above, and.. Do I just need to remove this part?

    add_image_size( 'be_feature', 570, 333, true );
    and this part

    // Feature
    	if( ( ! $wp_query->query_vars['paged'] && $wp_query->current_post < $grid_args['features_on_front'] ) || ( $wp_query->query_vars['paged'] && $wp_query->current_post < $grid_args['features_inside'] ) )
    		$image_size = 'be_feature';

    Is this issue has been fixed? Feel insecure to use this plugin

    Thread Starter WPSpeak

    (@devplus)

    AWESOME

    No, it won’t work. Unless you know how to create shortcode for the plugin to be used on the page.

    Btw, try creating widgetized template.

    This is a tutorial on how to create 404 widgetized page – https://genesisthemes.de/en/2011-08/tutorial-widgetized-404-error-page-in-genesis/

    Maybe you can work around a little bit – create a custom page template (give a new name).

Viewing 6 replies - 31 through 36 (of 36 total)