-
AuthorPosts
-
May 31, 2018 at 3:29 pm #964809
Hi,
we have a rather strange observation. In our portfolio pages all images have their width as configured. However the Header image that is defined as the portfolio items image is inserted with a rather lower width of 845px. For an example of the issue, please check
- https://3hasen.de/portfolio-item/dinner-in-einem-flugzeug-hangar/
.
What do we need to do, to make the header images also the same width as the rest of the portofolio page?
For the record – the header images in question are all available in a higher resolution (up to 2000px width) on the server. It is simply that enfold choses to insert a lower resolution for some odd reason.
- This topic was modified 6 years, 5 months ago by aheinermann.
May 31, 2018 at 9:16 pm #964948Hey aheinermann,
Add this to quick css:
.page-thumb img.wp-post-image{ width:100%!important; }
Best regards,
Jordan ShannonJune 9, 2018 at 10:50 am #970373Hey Jordan,
I tried this but the result is not satisfactory. Now I have an image that has a pixel width of 845px bloated up to 1210px, which effectively makes the image blurry.
I would like to see a proper solution, that ensures that the actual image that is embedded is not too narrow. As said, for all other images on the portfolio pages this works. The header image should be responsive like all other images, using srcset and sizes.
Michael
June 11, 2018 at 7:40 pm #971355Hi,
Have you attempted to use an image editor to increase the size of the actual image. This give it more pixel density to adjust to the various image sizes utilized in WP.
Best regards,
Jordan ShannonJune 11, 2018 at 8:30 pm #971378Hi Jordan,
no need to try. :)
As I initially stated, the image is available in multiple resolutions up to 2000px width on the server. But I have no direct influence on how the header image is linked in by the theme.As stated in my previous answer, if you look at the html of the page that I linked in my initial post you can also see that the image tag that is created for the header image simply lacking the attributes for responsiveness (i.e. srcset and the sizes). All other images on the page however employ the responsive features and are OK. For some odd reason (maybe a bug in the theme?) only the header image however gets embedded with a fixed width and without the attributes for it to become responsive.
Michael
June 13, 2018 at 5:46 am #972046Hi,
Thanks for the update.
The default thumbnail is set to “entry_with_sidebar”. If you want to change it, edit the single-portfolio.php file. Look for this code around line 29.
$avia_config['size'] = avia_layout_class( 'main' , false) == 'entry_without_sidebar' ? '' : 'entry_with_sidebar';
Set it to “extra_large” or “full”.
Best regards,
IsmaelJuly 8, 2018 at 7:52 pm #982795Hey Ismael,
thanks – setting that value to full gives me the expected behavior.
Is there any way for me to set this in a child-theme or another way that won’t require to redo this edit after each theme update?bye,
MichaelJuly 8, 2018 at 8:46 pm #982830Hi Michael,
You need to copy this file to the child theme and make customizations there.
https://kriesi.at/support/topic/new-shortcodes-or-edited-shortcodes-in-child-theme/Best regards,
VictoriaJuly 8, 2018 at 9:02 pm #982837Victoria,
I was hoping for some wordpress filter magic instead of duplicating the file, but better than re-applying the fix.
Anyways – thanks. This should do the trick for now.
Support from Kriesi is top notch.Michael
July 9, 2018 at 4:04 am #982920 -
AuthorPosts
- You must be logged in to reply to this topic.