-
AuthorPosts
-
November 23, 2014 at 1:30 pm #356197
Hi.
I use Enfold 3.0.1 on WordPress 4.0.1
On this page http://frame3d.de/team/ the social-icons used to work in WordPress 4.0.
Since a few days the icons won’t appear anymore.This is the DEBUG-Code of one of the elements:
[av_team_member name='Markus Schwab' job='CEO / Marketing' src='http://www.frame3d.de/wp-content/uploads/2013/04/markus-485x430.jpg' attachment='3070' attachment_size='' description='Er ist unser kaufmännischer Geschäftsführer. Kundenkontakt, Marketing und Projektleitung liegen in seinem Verantwortungsbereich. Wenn er nicht gerade für frame mit irgendjemandem kommuniziert, reist er gerne durch die Welt und schaut sich fremde Kulturen an.' font_color='' custom_title='' custom_content='' custom_class=''] [av_team_icon title='E-Mail an Markus' link='mailto: (Email address hidden if logged out) ' link_target='' icon='ue805' font='entypo-fontello'] [av_team_icon title='Markus auf Xing' link='https://www.xing.com/profile/Markus_Schwab?sc_o=mxb_p' link_target='_blank' icon='ue923' font='entypo-fontello'] [/av_team_member]
If you take a look at our DEV-Page (see private-content below) you will see, that the single- or double-quotes are replaced by these other ones: ” or ’
I guess that the wordpress-function shortcode_parse_atts() cannot handle these. so i tries to str_replace them in the file enfold\config-templatebuilder\avia-template-builder\php\shortcode-helper.class.php like this:$content = str_replace("’", "'", $content); $content = str_replace("”", '"', $content); preg_match_all( "/$pattern/s", $content , $matches);
But this didn’t seem to work.
Do you have any idea, what could be the problem?
- This topic was modified 10 years ago by frame_michael.
November 24, 2014 at 6:54 am #356538Hi Michael!
Thank you for using Enfold.
The version that you’re using is not compatible with WordPress 4.0.1. Please update the theme to Enfold 3.0.4.
Cheers!
IsmaelNovember 24, 2014 at 9:22 pm #357119Ah i see.
Can you please tell me, which files where modified, so i can copy the changes row by row or file by file?
November 24, 2014 at 9:34 pm #357129Btw: “No Updates available. You are running the latest version! (3.0.4)”
But on the dev-page, still no team-icons available.November 24, 2014 at 10:40 pm #357179I did a quick-fix in this file:
themes\enfold\config-templatebuilder\avia-template-builder\php\shortcode-helper.class.phpOld:
/** * Converts a shortcode into an array **/ static function shortcode2array($content, $depth = 1000) { $pattern = empty(ShortcodeHelper::$pattern) ? ShortcodeHelper::build_pattern() : ShortcodeHelper::$pattern; $depth --; preg_match_all( "/$pattern/s", $content , $matches); ...
NEW:
/** * Converts a shortcode into an array **/ static function shortcode2array($content, $depth = 1000) { $pattern = empty(ShortcodeHelper::$pattern) ? ShortcodeHelper::build_pattern() : ShortcodeHelper::$pattern; $depth --; // fixing shortcode-bug with wordpress 4.0.1 // $content = html_entity_decode($content); // does not seem to work. $content = str_replace("’", "'", $content); $content = str_replace("”", '"', $content); $content = str_replace("”", "''", $content); $content = str_replace(array("’", "′"), "'", $content); preg_match_all( "/$pattern/s", $content , $matches); ...
Perhaps this helps someone.
- This reply was modified 10 years ago by frame_michael.
-
AuthorPosts
- The topic ‘Team-Icon Shortcodes don't render’ is closed to new replies.