Okay
  Public Ticket #3509168
Custom image size
Closed

Comments

  •  5
    Caspar started the conversation

    Hi 

    I want to adjust the format of a normal image, but I only have the "large" "full" etc. options. With other themes I can easily add my own size, e.g. 1000x800. 

    How is this possible with Salient? I just see "custom size", but you need to add a name?

    best, Caspar

    Attached files:  Bildschirmfoto 2023-10-27 um 14.29.08.jpg

  •  2,958
    Andrew replied

    Hey Casper,

    Thank you for reaching out to us.

    You can modify the image sizes in your theme as shown in this guide https://themenectar.com/docs/salient/modify-image-sizes/ then you can add the name as you add your images.

    I hope that helps.

    Kind regards,

  •  5
    Caspar replied

    Hi Andrew

    I've seen this, but here I can alter only exisitng sizes. I just want to adjust the width and hight of a single image without using it as background image. I would have 5 different sizes in this section. The lightbox image should not be changed. 

    Is there no workaround? 

    Best, Caspar

    Attached files:  Bildschirmfoto 2023-10-27 um 15.32.03.jpg

  •  8,839
    Tahir replied

    Hey Again,

    If you wish to use a "1000x600" custom size you will first have to add it using code such as below and run the regenerate thumbnails plugins. See instructions here: https://themenectar.com/docs/salient/modify-image-sizes/#:~:text=Altering%20image%20sizes 

    add_action( 'after_setup_theme', 'salient_child_remove_image_sizes', 11 );
    function salient_child_remove_image_sizes() {
        
       
        add_image_size( '1000x600', 1000, 600, true );   
          
    }
    

    Thanks.


    ThemeNectar Support Team 

  •  5
    Caspar replied

    Thanks. It's not planned to add such a feature? Or how can you work on heigth / width of images without using them as background images? You can work on position, but not size?

  •  8,839
    Tahir replied

    Hey Again,

    That field is used to add in registered image sizes in Wordpress therefore  if you wish to create your own and use that, you will have to register it using the code mentioned earlier. 

    Hope this explains it better. 

    Thanks.


    ThemeNectar Support Team