Title: WPide Tabs Code causing error
Last modified: October 27, 2020

---

# WPide Tabs Code causing error

 *  Resolved [nwdropship](https://wordpress.org/support/users/nwdropship/)
 * (@nwdropship)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wpide-tabs-code-causing-error/)
 * So I was trying to remove the “additional info” tab under a product in the Flatsome
   Woocommerce theme. I googled the code I would use to remove it. I also downloaded
   the plugin WPide so that I could attempt to even edit the code because I know
   nothing about coding. I pasted code that someone said would remove the additional
   info tab but it just showed up as code on the bottom of the page. So then I removed
   said code but now it says there’s a syntax error.
 * error: Parse Error: Syntax error, unexpected EOF, expecting T_ENDIF on line 76
 * The code I tried to paste below everything (oops?) was the following
 * /**
    * [@snippet](https://wordpress.org/support/users/snippet/) Remove Additional
   Information Tab @ WooCommerce Single Product Page * [@how-to](https://wordpress.org/support/users/how-to/)
   Get CustomizeWoo.com FREE * [@author](https://wordpress.org/support/users/author/)
   Rodolfo Melogli * @testedwith WooCommerce 3.8 * [@donate](https://wordpress.org/support/users/donate/)
   $9 [https://businessbloomer.com/bloomer-armada/](https://businessbloomer.com/bloomer-armada/)*/
 * add_filter( ‘woocommerce_product_tabs’, ‘bbloomer_remove_product_tabs’, 9999 );
 * function bbloomer_remove_product_tabs( $tabs ) {
    unset( $tabs[‘additional_information’]);
   return $tabs; }
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwpide-tabs-code-causing-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Remi Corson](https://wordpress.org/support/users/corsonr/)
 * (@corsonr)
 * Automattic Happiness Engineer
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wpide-tabs-code-causing-error/#post-13584591)
 * Hi there,
 * The snippet is actually correct, but it seems that you placed it within an if
   statement, that is probably why it’s failing. Also, when it comes to tabs edition,
   we usually suggest using this extension:
 * – [https://woocommerce.com/products/woocommerce-tab-manager/](https://woocommerce.com/products/woocommerce-tab-manager/)
 *  Thread Starter [nwdropship](https://wordpress.org/support/users/nwdropship/)
 * (@nwdropship)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wpide-tabs-code-causing-error/#post-13587365)
 * Thank you. So I tried simply removing the snippet but now the original code has
   a syntax error. How should I change the code (in the link for pastebin) so that
   it works and my product page works again??
 *  [Remi Corson](https://wordpress.org/support/users/corsonr/)
 * (@corsonr)
 * Automattic Happiness Engineer
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wpide-tabs-code-causing-error/#post-13587540)
 * Your snippet is outside the PHP tags that’s why it’s breaking: [https://d.pr/i/WD6VjD](https://d.pr/i/WD6VjD)
 * it has to be within <?PHP ?> tags
 *  Thread Starter [nwdropship](https://wordpress.org/support/users/nwdropship/)
 * (@nwdropship)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wpide-tabs-code-causing-error/#post-13587595)
 * Thank you! I also realized why when I deleted the code it was saying a syntax
   error. I had accidentally removed the <?php endif; ?> in front of the new code.
   So, should the code be like the following?
 *     ```
       <?php endif; add_filter( 'woocommerce_product_tabs', 'misha_remove_additional_information' );
   
       function misha_remove_additional_information( $tabs ) {
   
       	unset( $tabs['additional_information'] );
       	return $tabs;
   
       }?>
       ```
   
 *  [Remi Corson](https://wordpress.org/support/users/corsonr/)
 * (@corsonr)
 * Automattic Happiness Engineer
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wpide-tabs-code-causing-error/#post-13587624)
 * this should be good: [https://d.pr/i/GxqkzS](https://d.pr/i/GxqkzS)
 *  Thread Starter [nwdropship](https://wordpress.org/support/users/nwdropship/)
 * (@nwdropship)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wpide-tabs-code-causing-error/#post-13593677)
 * I figured out how to do it without coding at all. When editing the attributes,
   you can unselect display on product page. If there are no attributes that “show
   on the product page” then there is nothing to display in the additional information
   tab.
 *  [Remi Corson](https://wordpress.org/support/users/corsonr/)
 * (@corsonr)
 * Automattic Happiness Engineer
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wpide-tabs-code-causing-error/#post-13595076)
 * Ha, yes, you’re totally right!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘WPide Tabs Code causing error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [flatsome](https://wordpress.org/support/topic-tag/flatsome/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [Themes](https://wordpress.org/support/topic-tag/themes/)

 * 7 replies
 * 2 participants
 * Last reply from: [Remi Corson](https://wordpress.org/support/users/corsonr/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/wpide-tabs-code-causing-error/#post-13595076)
 * Status: resolved