don't render fb:app_id if inputbox is empty
-
Hi,
Your plugin is great for comments, however I’m using several social plugins, and this creates duplicate og tags issue.
Would you kindly add some logic to not output `<meta content=”” property=”fb:app_id”>’ when the FB app id input is empty?
With my limited php knowledge I managed to do this myself though I’m not sure it’s the proper way to do it:
public function generete_front_javascript(){ wp_enqueue_script('thickbox'); wp_enqueue_style('thickbox'); if(!empty($this->params['wpdevart_comment_facebook_app_id'])) { echo '<meta property="fb:app_id" content="'.$this->params['wpdevart_comment_facebook_app_id'].'"/>'; } }
Thanks!!
https://www.ads-software.com/plugins/comments-from-facebook/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘don't render fb:app_id if inputbox is empty’ is closed to new replies.