Dear ecollot,
Thank you for contacting us.
Please, be kindly informed that currently in Portfolio plugin the width can be set by the user and the height is 160 px fixed. (which we plan to change in the upcoming update)
In the case, if you provide us with your website link we can check and suggest you a solution.
If you do not want to publish your website link here, please, contact us directly on our website, which is Huge-IT.com or use this contact us form https://huge-it.com/contact-us/
Regards,
Thanks for your quick response.
I can’t see where the width can be defined. The “Main Image Height” and “Main Image Width” in “General Options” are greyed out since they are part of the pro version. I only have the free version.
If I look into the portfolio directly, I can’t see anywhere where I can change anything. Could you please tell me where I can change the width?
I’m afraid I can’t provide you with a website link as this page is not currently published since it’s not ready yet.
Best regards,
Dear ecollot,
You are right, the options are available in the PRO option.
Anyway, the changes can be done in the main code. Please, check below how to make the changes:
Please, find this file:
/wp-content/plugins/portfolio-gallery/templates/front-end/view/toogle-up-down/toogle-up-down.css.php
Remove this part:
.portelement_<?php echo $portfolioID; ?> .default-block_<?php echo $portfolioID; ?> img {
margin: 0 !important;
padding: 0 !important;
max-width:<?php echo $portfolio_gallery_get_options[‘portfolio_gallery_ht_view0_block_width’];?>px ;
max-width:none !important;
border-radius: 0;
<?php if($portfolio_gallery_get_options[‘portfolio_gallery_port_natural_size_toggle’] == ‘resize’){ ?>
height: 100%;
width: 100%;
<?php }?>
}
Inject this code instead:
.portelement_<?php echo $portfolioID; ?> .default-block_<?php echo $portfolioID; ?> img {
padding: 0 !important;
border-radius: 0;
max-width: 100% !important;
max-height: 100% !important;
height: 100% !important;
width: auto !important;
margin: 0 auto !important;
left: 0 !important;
right: 0 !important;
}
Please, keep us updated about the results.
Regards,
Sorry for the time it took me to answer.
This works fine, thank you very much!
Dear ecollot,
Thanks for getting back to us.
We really appreciate your feedback.
Let us know if you need our help any further.
Thank you!