Forum Replies Created
-
AuthorPosts
-
Claude Dagenais
ParticipantIn case it can help someone, since I have a multilingual website using wpml and that I use WPML Shortcodes here is the final code to make this work with 2 languages:
add_filter( 'cn_output_link', 'th_cn_output_link', 10, 4 ); function th_cn_output_link( $html, $link, $entry, $atts) { $url = cnSanitize::field( 'url', $link->url ); $th_langue = wpml_e__if_language( 'Visit us on the web !', 'en' ); wpml_e__if_language( 'Visitez-nous sur le web !', 'fr' ); $html = '<a class="url" href="' . $url . '" target="_blank">' . $th_langue . '</a>'; return $html; }-
This reply was modified 10 years, 3 months ago by
Steven Zahm. Reason: Fix code block
Claude Dagenais
ParticipantExcept for a missing semicolon this is exactly what I was looking for. Thank you so much once more and have a great weekend!
Claude Dagenais
ParticipantI just want to add that I found a temporary solution to do this using CSS and that I could change your file class.entry-output.php to achieve this in PHP but I rather have a clean solution if one exist.
You can see it there
txClaude Dagenais
ParticipantThank you! Works great.
Claude Dagenais
ParticipantAlso you you can I a sneak peak at http://staging.infosutton.com/?lang=en
Claude Dagenais
ParticipantThank you Steven it does solve almost everything… But since I have you… I did a small change in class.entry-output.php to change the size of the social media icons (line 1941) – is there a way to change that without the hard coding?
And finally, I just want to add that I really like you product!
Claude Dagenais
ParticipantThank you Steven
It did help!
CladueClaude Dagenais
ParticipantHi Steve,
How can I go about to renew?
ClaudeClaude Dagenais
ParticipantYes it does. Tx.
-
This reply was modified 10 years, 3 months ago by
-
AuthorPosts
