Tagged: Images, mega menu, mobile menu
-
AuthorPosts
-
December 16, 2014 at 3:44 pm #368932
Hi Team,
I managed to resize the image size for high res icons in mega menu with this code:
#header .avia_mega_div img { max-width: 100% !important; width: 50px; }
But on the mobile menu, the icons are huge! How can I tell the theme to reduce the inserted mega menu images on mobiles and tablets?
Cheers,
Jan :)December 16, 2014 at 3:55 pm #368934Hey Jan! :)
Please add following code to Quick CSS and adjust as needed
ul#mobile-advanced img { max-width: 10%; }
Regards,
YigitDecember 17, 2014 at 4:21 pm #369500Hi Yigit,
awesome, thanks. Works perfectly! :)
Two more things:
1) How can I set the thumbnail proportion to 3:2 (the original is 1200×800 px) in the 1-column portfolio (normal, not special) so that it doesn’t cut the image?
2) How can I change the following text in the search box, when looking for portfolio items: “Portfolio Einträge” – In my case it should say “Reparaturen”.
Thanks,
Jan :)December 17, 2014 at 4:29 pm #369505Hey!
1- Please go to Appearance > Editor and open Functions.php file and find
$avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column) $avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columns $avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 ); // images for portfolio entries (2,3 column)
and change as needed. Then regenerate thumbnails using this plugin – https://wordpress.org/plugins/regenerate-thumbnails/
2- Please use this plugin to change the string – https://wordpress.org/plugins/codestyling-localization/Cheers!
YigitDecember 18, 2014 at 2:52 pm #369953Hey Yigit,
thank you very much.
How willl I insert it in my child theme’s functions.php? Now, there’s nothin’ in this file. Would I just insert the code from above and upload it via ftp?
It’s the first time I’m working with a child theme ;)
Thanks, I really appreciate your help every time!!
Jan :)
December 18, 2014 at 3:11 pm #369958 -
AuthorPosts
- You must be logged in to reply to this topic.