-
AuthorPosts
-
March 3, 2015 at 9:54 pm #405432
Hi,
Could you advise how to change the height of the “Fullwith Easy Slider” in Enfold?
Thanks a lot in advance.
BR
BenMarch 4, 2015 at 2:33 pm #405767Hey Benny861028!
You can click on it to edit slider and change the size as needed – http://i.imgur.com/vl5UyTO.png
Regards,
YigitMarch 4, 2015 at 10:36 pm #406107Hi 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.
March 5, 2015 at 5:04 pm #406511Hey 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,
YigitMarch 5, 2015 at 9:59 pm #406707Hi Yigit,
Thank you, I appreciate your help. I will let you know if I have further questions.
Best wishes,
BenMarch 5, 2015 at 11:57 pm #406757Hi,
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
March 6, 2015 at 4:15 pm #407046Hi!
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!
YigitMarch 7, 2015 at 12:43 am #407356Hi 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.
March 9, 2015 at 2:37 am #407814Hey!
Please refer to this link: https://kriesi.at/support/topic/best-way-to-add-image-sizes/#post-351286
Best regards,
IsmaelMarch 9, 2015 at 10:15 pm #408509Hi 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,
BenMarch 10, 2015 at 6:17 am #408636Hi 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,
RikardMarch 11, 2015 at 9:25 pm #410112Hi 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,
BenMarch 12, 2015 at 8:27 am #410343Hi!
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,
IsmaelMarch 19, 2015 at 10:00 pm #414863Hi Ismael,
Thank you that worked finally. Genius.
Thank you guys!
Ben
March 20, 2015 at 8:57 am #415112 -
AuthorPosts
- The topic ‘how to change the height of the "Fullwith Easy Slider" in Enfold?’ is closed to new replies.