If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
February 11, 2013 at 7:51 pm #20276
I am creating a site for a client of mine where they can display their photos as well sell it. For the most part the theme works wonderfully but I have one issue which is sizing for the slider. I have read a lot of the other threads with sizing issues and tried most of the solutions but with no success. From what it seems like is I will need to create another slider option in the drop down under “Slideshow Size on single” option. The reason for this is some of the images are panoramic horizontal while others are panoramic vertical. When I tried the code solution below in the functions.php file it helped some but the width is still to big for my vertical images :
$avia_config = array(‘width’=>930, ‘height’=>9999, ‘crop’=>false); // images for fullsize pages and fullsize slider
Also I do not know if the sizing dimensions above just affect the light box size when you click on the slider image or the actually slider image size itself?
You can see my issue on this page below and why the code above does not work for me:
This slider is fine in this link below:
If someone can point me in the direction of the files that would need to be altered that would help me a lot! I have looked and most of the files but cant seem to location all the needed files that I would need to alter to create a new slider option in the drop down menu for the product page. Do not mind the site as its my sand box for my client.February 12, 2013 at 4:00 pm #106993
For the image size issue, it isn’t just that you are changing the size of the generated thumbnail, but you also need to understand that the slideshows css attempts to make whatever image is inside of it fit the container. So if the image is 100 pixels wide and 200 pixels tall but the containers is 200 pixels wide, the image will stretch to fit the width and the height will scale. As with all things web, the width is easy to scale and height is not.
The easiest and by far best solution for portrait images that are not wide enough to fit the minimum width of the portfolio container or that will look too skewed is to put them on a square canvas in a photo editor before uploading.
Unfortunately when you are working with code that is built to automate a process it will have issues for certain specific cases.
DevinFebruary 12, 2013 at 5:09 pm #106994
Thanks for replying Devin and that was actually a simple yet smart idea! I created the image with a wider canvas size then the actual image and put the image on a black background. You can see the end result below and it fixed what I was looking to accomplish:
Thanks!February 13, 2013 at 1:24 pm #106995
The topic ‘How do I create a new slider option on the drop down menu?’ is closed to new replies.