Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Waiting for user confirmation] Setting up an slider with Views with irregular grid

$
0
0

Dear Caridad

I have tried adding another image size but it behaves weirdly: just for testing I added this to my Views-slider:

[wpv-layout-start]
	[wpv-items-found]
<div class="projektcontainer">
          <wpv-loop wrap="8" pad="true">
      
	[wpv-item index=1]
            <div class="left"><div class="tekst"><h3>[wpv-post-link]</h3></div><a href="[wpv-post-url]">[wpv-post-featured-image size=”slider-low”]</a></div>
	[wpv-item index=2]
<div class="left"><div class="tekst"><h3>[wpv-post-link]</h3></div><a href="[wpv-post-url]">[wpv-post-featured-image]</a></div>
            [wpv-item index=3]
<div class="left"><div class="tekst"><h3>[wpv-post-link]</h3></div><a href="[wpv-post-url]">[wpv-post-featured-image]</a></div>
            [wpv-item index=4]
<div class="left"><div class="tekst"><h3>[wpv-post-link]</h3></div><a href="[wpv-post-url]">[wpv-post-featured-image]</a></div>
            [wpv-item index=5]
<div class="left"><div class="tekst"><h3>[wpv-post-link]</h3></div><a href="[wpv-post-url]">[wpv-post-featured-image]</a></div>
            [wpv-item index=6]
<div class="left"><div class="tekst"><h3>[wpv-post-link]</h3></div><a href="[wpv-post-url]">[wpv-post-featured-image]</a></div>
            [wpv-item index=7]
<div class="left"><div class="tekst"><h3>[wpv-post-link]</h3></div><a href="[wpv-post-url]">[wpv-post-featured-image]</a></div>
	[wpv-item index=8]
<div class="left"><div class="tekst"><h3>[wpv-post-link]</h3></div><a href="[wpv-post-url]">[wpv-post-featured-image]</a></div>
            
	[wpv-item index=pad]
<div class="left"><div class="tekst">index=pad</div></div>  
             
	[wpv-item index=pad-last]
            <div class="left"><div class="tekst"></div></div> 
</div>   
	</wpv-loop>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		[wpml-string context="wpv-views"]<strong>No items found</strong>[/wpml-string]
	[/wpv-no-items-found]
[wpv-layout-end]

Just adding a very small image size to index 1.

In functions.php I added

//Add new image size for slider
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'slider-low', 455, 30, true ); //(cropped)
}
add_filter('image_size_names_choose', 'my_image_sizes');
function my_image_sizes($sizes) {
$addsizes = array(
"slider-low" => __( "Slider low")
);
$newsizes = array_merge($sizes, $addsizes);
return $newsizes;
}

but it actually makes the featured image in index 1 larger? Can you please help me figure out what is happening? You can see it here: http://corearkitekter.dk/wp/test-irregular-grid/ or in picture…

Regards,
Bolette


Viewing all articles
Browse latest Browse all 20145

Trending Articles