Pi Zi
Forum Replies Created
-
Thanks cblaz, I will add a prefix to the class names in the next release.
Forum: Plugins
In reply to: [External Links - nofollow, noopener & new window] exclusions for targetHello Nata-lee,
The link (of your example) contains a
target="_none". This is not set by the WPEL plugin. The plugin removes this attribute of the link, because it does not work in browsers (and it will open in a new tab).Maybe the
target="_none"is set by another plugin? (fancybox, phpbb)A workaround could be by using the filter (with a very high priority number):
function external_link_filter($created_link, $original_link, $label, $attrs = array()) { // remove target="_none" return preg_replace('/\s*target\s*=\s*(["\'])_none\1/', '', $created_link); } add_filter('wpel_external_link', 'external_link_filter', <strong>1000000</strong>, 4);That code was not created by WPML, but (probably) by another plugin.
Do you have the url the page?Should be compatible. Did you already cleared the cache? (to be sure it does not show the old page, before activating the plugin)
Did the additional code (function.php) broke the social sidebar?
What do you mean by “broke”?
Forum: Plugins
In reply to: [External Links - nofollow, noopener & new window] WordPress 3.6 supportYes sorry, I know it’s a late response. I have to do this in my spare free time. Hope you will understand.
And, it is even compatible with 3.8.1 😉
Forum: Plugins
In reply to: [External Links - nofollow, noopener & new window] Suggestion for the iconsHello Christopher, very good suggestion. It’s on the TODO list.
Forum: Plugins
In reply to: [External Links - nofollow, noopener & new window] Not working on commentsDo you have an example? (url of the site)
Forum: Plugins
In reply to: [External Links - nofollow, noopener & new window] UpdateHello Rishikant, what do you mean?
New version should be oke.
Forum: Plugins
In reply to: [External Links - nofollow, noopener & new window] WordPress 3.6 supportShould be oke
It’s technical, but the reason was caused by the new parse attributes function. This was nescessary to solve some bugs. Officially attribute values cannot contain < or >.
In your case you could create a workaround by adding this function to the functions.php file in your theme folder:
function external_link_js_template_fix($created_link, $original_link, $label, $attrs = array()) { if (isset($attrs['href']) && strpos($attrs['href'], '<%= encodeURIComponent(song.artist.name) %') !== false) { $created_link = str_replace('<%= encodeURIComponent(song.artist.name) %', '<%= encodeURIComponent(song.artist.name) %>', $created_link); } return $created_link; } add_filter('wpel_external_link', 'external_link_js_template_fix', 10, 4);You have to encode the whole mailto link. This should work:
$mailto = '<a title="click here to open the email" href="mailto:' . get_field('emailforrequest') . '?subject=the subject line&Body=my body content that may call other php function such as ' . get_the_title() . '"><img class="imgclass" title="imgtitle" alt="imgalt" src="imgsource.png" width="240" height="24" /></a>'; echo eeb_email_filter($mailto);Could you be more specific? On wich page? (which links?)
Like f.e. the links of “Find me on facebook” will not be precessed by the plugin, because it’s an iframe. It’s actually a page from another site (domain). The plugin has only effect on your own pages/content.
Could you check if the option “Replacing with <\/a> in JavaScript code” (under “Extra Settings”) is enabled?