Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Uplift › Image resolution of Team Member featured image
New Landing › How can we help? › Themeforest Theme Support › Uplift › Image resolution of Team Member featured image
- This topic has 22 replies, 6 voices, and was last updated 8 years by Mohammad – SUPPORT.
-
Posted in: Uplift
-
September 2, 2016 at 1:59 pm #290367
Hi,
I have added two screenshots of how I want a Team Member to look and how it’s currently showing, I am working locally so cannot provide a URL.
As you can see, the image is so blurry, and the image is actually 933 ร 1400. So is there a way to not make it blurry and also, is it possible to change it so that the image is longer and not a square, so like how I’ve designed it in Photoshop? ๐
Thanks,
Amber
Attachments:
You must be logged in to view attached files.September 2, 2016 at 2:27 pm #290374Hi
Have you used the team member asset to create that?
– Kyle
September 2, 2016 at 2:28 pm #290375Hi,
Yeah and I’ve used it loads of times as well and never had an issue with it so not really sure why it’s doing that now?
Thanks,
Amber
September 2, 2016 at 2:38 pm #290376Can you please take a screenshot of the pagebuilder in the backend so I can check how you have set it up
– Kyle
September 2, 2016 at 2:47 pm #290379September 2, 2016 at 2:50 pm #290383Try put the team asset in a 1/2 column
– Kyle
September 2, 2016 at 3:11 pm #290384Tried and it doesn’t work!
Thanks
Amber
September 5, 2016 at 12:43 pm #290570Please install and activate the supplied child theme once complete, please supply us with your WP login details and your FTP details which you can ask your host to provide you with.
– David.
September 5, 2016 at 12:46 pm #290571Hi,
The child theme is already installed and active? I’ll get it up on a subdomain now and provide you with the details ๐
Thanks,
Amber
September 5, 2016 at 1:15 pm #290578Ok thanks
September 5, 2016 at 1:50 pm #290589This reply has been marked as private.September 6, 2016 at 7:17 pm #290836I was not able to override this via a child theme.
Rather I had to edit the Swift Framework plugin for you. I’ll describe what I did for your reference.
1) Open:
/wp-content/plugins/swift-framework-v4/includes/page-builder/shortcodes/team.php
.2) Locate:
if ( $image ) { $items .= '<img itemprop="image" src="' . $image[0] . '" width="' . $image[1] . '" height="' . $image[2] . '" alt="' . $member_name . '" />'; }
3) Replace with:
if ( $image ) { if ( is_front_page() ) { $items .= '<img itemprop="image" src="' . $thumb_img_url . '" width="' . $image[1] . '" height="' . $image[2] . '" alt="' . $member_name . '" />'; } else { $items .= '<img itemprop="image" src="' . $image[0] . '" width="' . $image[1] . '" height="' . $image[2] . '" alt="' . $member_name . '" />'; } }
September 7, 2016 at 8:57 am #290870Hi,
Perfect! Thanks for your help ๐
Amber
September 7, 2016 at 8:59 am #290873No problem!
September 8, 2016 at 7:41 pm #291190Hi
Sorry for re-opening a topic, but i tried the above solution, and after i saved and re-uploaded the team.php file, my WordPress install went blank. I enabled debug, and it gave me the following warning:
Warning: require_once(/removed_dev_url/wp-content/plugins/swift-framework/includes/page-builder/shortcodes/team.ph.php): failed to open stream: No such file or directory in /removed_dev_url/wp-content/plugins/swift-framework/includes/page-builder/sf-page-builder.php on line 69
Fatal error: require_once(): Failed opening required ‘/removed_dev_url/wp-content/plugins/swift-framework/includes/page-builder/shortcodes/team.ph.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /removed_dev_url/wp-content/plugins/swift-framework/includes/page-builder/sf-page-builder.php on line 69
I saw, that he was searching for team.ph.php
Than i renamed my edited file to team.my, and reauploaded the original to check if i messed up something. Warning came back, but even more strangely:
Warning: require_once(/removed_dev_url/wp-content/plugins/swift-framework/includes/page-builder/shortcodes/team.ph.php.php): failed to open stream: No such file or directory in /removed_dev_url/wp-content/plugins/swift-framework/includes/page-builder/sf-page-builder.php on line 69
Fatal error: require_once(): Failed opening required ‘/removed_dev_url/wp-content/plugins/swift-framework/includes/page-builder/shortcodes/team.ph.php.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /removed_dev_url/wp-content/plugins/swift-framework/includes/page-builder/sf-page-builder.php on line 69
Yes: it added the extension again.
So what i did is i renamed teamp.php to team.ph.php.php and now it works, but this is not a solution ๐
Can you help me with it?
TY
-
Posted in: Uplift
You must be logged in to reply to this topic.