I've set up some team members using the Team Member feature in PageBuilder. I'm using the Meta Below layout and I would like to add a shortcode into the "description" text box (see image attached).
However, it seems like that text box does not accept any html or shortcodes. When I preview, I just see the whole shortcode spelled out as text.
Is there a way to enable this? Happy to edit theme files if needed.
I've found the corresponding PHP and I see the code, but I'm not well-versed in PHP to know exactly what needs to be added or changed. I assume it's something with these values:
Hello,
I've set up some team members using the Team Member feature in PageBuilder. I'm using the Meta Below layout and I would like to add a shortcode into the "description" text box (see image attached).
However, it seems like that text box does not accept any html or shortcodes. When I preview, I just see the whole shortcode spelled out as text.
Is there a way to enable this? Happy to edit theme files if needed.
Hey Again,
Yes, the Team Member PHP template would have to be edited for this. This should help: https://themenectar.com/docs/salient/overriding-salient-wpbakery-element-template-files-through-a-child-theme/ .
Thanks
ThemeNectar Support Team
Thanks Tahir,
I've found the corresponding PHP and I see the code, but I'm not well-versed in PHP to know exactly what needs to be added or changed. I assume it's something with these values:
extract(shortcode_atts(array(
"description" => '',
'team_member_bio_full_html' => 'simple',
'team_member_bio' => '',
'team_member_mini_bio' => '',
'team_memeber_style' => '',
Any help would be greatly appreciated!
Hey Again,
You need to copy this file http://wearesummer.com/wp-admin/plugin-editor.php?file=salient-core%2Fincludes%2Fvc_templates%2Fteam_member.php&plugin=salient-core%2Fplugin.php and then add it to the Child Theme.
Thanks
ThemeNectar Support Team
Ah I actually figured it out! Thanks for pointing me to the PHP file. Here is the fix for anyone who needs it:
Find this @ line 281:
$html .= '<p class="description">' . wp_kses_post($description) . '</p>';
And replace with:
$html .= '<p class="description">' . do_shortcode($description) . '</p>';
Hello,
Thanks for sharing the code and glad you were able to fix it.
Cheers!