Title: target problems and solution
Last modified: August 30, 2016

---

# target problems and solution

 *  [Marc Queralt i Bassa](https://wordpress.org/support/users/marcqueralt/)
 * (@marcqueralt)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/target-problems-and-solution/)
 * Hi Manuel,
    You did a nice job. It’s a simple but great plugin. However I found
   some small problems that I managed myself to solve. When you are using target,
   target fails to work because of extra spaces in front. Attached you’ll find my
   solution tagged with MQB in the comments
 *     ```
       if (is_array($atts) && $atts['target']){
       		$target = $atts['target'];}
           else {$target="_self";}//MQB
   
       	if (is_array($atts) && $atts['href']){
       		$href = $atts['href'];}
   
       	return isset($href) ?
       		// "<a class=' ".$aclass."' href='".$href."' target=' ".$target."'><i class='fa ".$iclass."'></i></a>" //MQB-
       		"<a class='".$aclass."' href='".$href."' target='".$target."'><i class='fa ".$iclass."'></i></a>"    //MQB+
       		:
       		"<i class='fa ".$iclass."'></i>";
       ```
   
 * Can you introduce this changes in the next version, please?
    Thank you
 * [https://wordpress.org/plugins/font-awesome-integration/](https://wordpress.org/plugins/font-awesome-integration/)

The topic ‘target problems and solution’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/font-awesome-integration_f8f9fb.svg)
 * [Font Awesome Integration](https://wordpress.org/plugins/font-awesome-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/font-awesome-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/font-awesome-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/font-awesome-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/font-awesome-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/font-awesome-integration/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Marc Queralt i Bassa](https://wordpress.org/support/users/marcqueralt/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/target-problems-and-solution/)
 * Status: not resolved