Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
  • #15236


    I would like to have a different size for static images on top of fullwidth pages – and only on those pages; the sliders (like my KenBurn on the frontpage for example) should remain “as is”.

    I found in functions.php the sizes, and registered a new for my fullwidth pages static images:

    $avia_config = array('width'=>930, 'height'=>230); // big static images for fullsize pages only

    But now … where can I add what kind of code, so that static images on top of fullwidth pages uses this new size?

    Note: if I add a slider on these pages, the silders should remain the original image size format (“featured”) of 930x390px.



    Could you please show the links to the pages you described ?




    I don’t understand? I mean just in general the use of an extra image size and how to use it for pages.

    The site is currently not yet ready, but here an example: is the frontpage

    there the fullsize slider should remain in its size as it is described in the functions.php:

    $avia_config = array('width'=>930, 'height'=>390); // big images for fullsize pages and fullsize 2D & 3D slider

    Now I need in addition to this an extra image size of 930x230px for fullsize pages (not frontpage) like this example page:

    Above this page I need not a fullsize image as described in the functions.php as “featured” image, but an own like I have already added to the functions.php:

    $avia_config = array('width'=>930, 'height'=>230); // big images for fullsize pages only

    now I already need to know, how I can implement it in which file (page.php?), so that at normal pages (not frontpage) it shows my new fullsize image above all content in my new size of 930x230px.



    Additional note: sure, I could change in functions.php the size of the “featured” image size, but then the slider size at the frontpage changes, too, which I don’t want. I just want to have another size (930x230px) for fullsize static (i.e. not slider) images for normal fullsize pages (not the frontpage).


    Hi colorit2,

    In your includes>loop-page.php change the following line:

    echo $slider->display_small($avia_config['size']);


    echo $slider->display_small('page');

    and change page to the name of your new image size. That should work in theory though it may still require some additional styling for the individual pages.




    thanks, but this doesn’t work:

    I have added there a 930x230px image at “add featured media” section of that page.

    My functions.php:

    $avia_config = array('width'=>930, 'height'=>230); // big images for fullsize pages only

    My loop-page.php:

    <div class='post-entry'>


    $this_id = get_the_ID();

    $heading_style = strpos(avia_post_meta($this_id, 'heading_style'), 'special');

    //call the function that displays featured images and slideshows within posts

    $slider = new avia_slideshow($this_id);

    echo $slider->display_small($avia_config);


    any other suggestions?

    Thanks a lot.


    P.S. I have regenerated the thumbnails!

    Got a similar question here concerning CORONA, but this helped me not for VELVET, perhaps it is helpful for you? (Purchase code hidden if logged out) -column-frontpage


    You first need to replace the line I specified above then replace ‘page’ with ‘fullsizestaticimage’. Try that and then see it if works.

    Right now the image is getting spit out in the page but not getting the proper javascript attached to it.




    ah, there were some code too much in my loop-page.php, thanks, now it works perfect!


    Hi colorit2,

    Glad that Devin helped you. :)



Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘New image size for fullwidth pages only’ is closed to new replies.