Extra space if no-icon is specified
-
Problem with latest version: if no icon option is set, link still includes icon (broken) with wp-link-css style active. That CSS has margin settings, so the result is extra space where the icon should not be.
Code in plugin
if ( defined('WPLINKS_IMAGE') ) {
add_action('wp_head','WPLINKS_add_css');
$style = ' class="wp-links-icon"';
}
appears to add the CSS all the time, because you are using ‘defined’, and that variable is defined at the top of the code, so it will always be true.
Code needs to be changed to check the setting of the variable, not if the variable has been defined.
See this page for example of extra spacing after the external link: https://www.jerrypournelle.com/chaosmanor/harried-but-still-going/
- The topic ‘Extra space if no-icon is specified’ is closed to new replies.