Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #405432

    Hi,

    Could you advise how to change the height of the “Fullwith Easy Slider” in Enfold?

    Thanks a lot in advance.

    BR
    Ben

    #405767

    Hey Benny861028!

    You can click on it to edit slider and change the size as needed – http://i.imgur.com/vl5UyTO.png

    Regards,
    Yigit

    #406107

    Hi Yigit,

    Sorry I wasn’t clear enough in my question. I have of course found these options.

    The question sounds correctly: how do I add a custom height and width to the Easy Slider (in pixels)?

    I will probably need 610 or 620 instead of 630.

    Also, can I add a file upload field in the contact form or is it not possible with this contact form?

    Thanks,
    Ben

    • This reply was modified 9 years, 8 months ago by Benny861028.
    #406511

    Hey Ben

    1- Please go to Appearance > Editor and open Functions.php file and find

    $avia_config['imgSize']['featured_large'] 		= array('width'=>1500, 'height'=>630 );						// images for fullsize pages and fullsize slider

    and change it as needed and then regenerate thumbnails using this plugin – https://wordpress.org/plugins/regenerate-thumbnails/
    2- Unfortunately it is currently not possible with native contact form however you can use Contact Form 7 plugin – https://wordpress.org/plugins/contact-form-7/
    for documentation, please see – http://contactform7.com/file-uploading-and-attachment/

    Regards,
    Yigit

    #406707

    Hi Yigit,

    Thank you, I appreciate your help. I will let you know if I have further questions.

    Best wishes,
    Ben

    #406757

    Hi,

    Me again. I do have another question: I am using a child theme of Enfold, so in this case how do I implement the changes?

    Do I just upload this amended code line into the child theme’s empty functions.php?

    Thanks a lot in advance.

    Ben

    #407046

    Hi!

    Yes and please add following to the top of functions.php file of your child theme after starting of php tag

    global $avia_config;

    Cheers!
    Yigit

    #407356

    Hi Yigit,

    Thanks for your reply.

    I did what you suggested, copied the

    global $avia_config;

    after the PHP tag in the child theme’s function.php and also added this code line below with my desired resolution (1920 x 760)

    $avia_config[‘imgSize’][‘featured_large’] = array(‘width’=>1920, ‘height’=>760 ); // images for fullsize pages and fullsize slider

    Then regenerated thumbnails with the named plugin, but my new resolution “1920 x 760” does not appear in the list of the easy slider image size drop-down menu.

    It does appear although if I amend the functions.php in the original theme, but that’s what I want to avoid doing and keep track of the changes in my child theme instead of amending the parent theme, right?

    If you have another idea or if I missed something, please let me know.

    I can also give you temp access to my website to have a look if that’s quicker and easier for you guys.

    Thanks a lot in advance.

    Best regards,
    Ben

    • This reply was modified 9 years, 8 months ago by Benny861028.
    #407814

    Hey!

    Please refer to this link: https://kriesi.at/support/topic/best-way-to-add-image-sizes/#post-351286

    Best regards,
    Ismael

    #408509

    Hi Ismael,

    Thanks for the link, but I don’t see how this could help on my particular issue.

    Any other idea?

    As I said if I amend the functions.php it works well. I was just wondering if I could do the same in the child theme as well?

    Thanks,
    Ben

    #408636

    Hi Ben!

    Yes, it should work from your child themes functions.php as well, and it is the recommended method since it won’t be overwritten on updates.

    Regards,
    Rikard

    #410112

    Hi Rikard,

    Thanks for your reply.

    I understand that it should work in the child’s theme functions.php but it doesn’t work only if I amend the functions.php in the parent theme – see the above message trail where I detailed what my issue is exactly.

    Does anyone else have an idea how to solve this issue please?

    Thanks,
    Ben

    #410343

    Hi!

    You will be able to create a custom Slideshow Image Size by adding the code inside the child theme’s functions.php:

    // add new size
    add_image_size( 'awesome-size', 1500, 630, true );
    
    // make the new size available in the media library (and image element etc.)
    add_filter( 'image_size_names_choose', 'my_custom_sizes' );
    
    function my_custom_sizes( $sizes ) {
        return array_merge( $sizes, array(
            'awesome-size' => __( 'Awesome Size' ),
        ) );
    }

    Upload the images again then select the “Awesome Size” in the easy slider’s Slideshow Image Size setting.

    Regards,
    Ismael

    #414863

    Hi Ismael,

    Thank you that worked finally. Genius.

    Thank you guys!

    Ben

    #415112

    Hi!

    Great, glad we could help :)

    Regards,
    Rikard

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘how to change the height of the "Fullwith Easy Slider" in Enfold?’ is closed to new replies.