wordpress-sdk icon indicating copy to clipboard operation
wordpress-sdk copied to clipboard

Tab navigation "loses" a the menu entry for the setting page

Open daigo75 opened this issue 4 years ago • 0 comments

🐞 bug report

Behavior: This issue occurs when the tab navigation is enabled (see https://github.com/Freemius/wordpress-sdk/issues/494), and the page is configured as described in the documentation. Example:

<div class="wrap fs-section fs-full-size-wrapper">
  <h2 class="nav-tab-wrapper">
    <a href="#" class="nav-tab fs-tab nav-tab-active home">Settings</a>
  </h2>
  <!-- Plugin settings go here -->
</div>

The result is the following:

  1. When one opens the settings page, it's rendered correctly (kind of, the title is inside the tab, instead of being at the top). Example: https://prnt.sc/136b8zg
  2. When one clicks on Account, the page reloads, but only two tabs are visible: https://prnt.sc/136c57j. Probably, this happens because the page being rendered is no longer the settings page, but the Account page. Due to that, the plugin can't add its own tab to the list.

Versions: (*)

  • Freemius SDK Version: 2.4.2
  • WordPress Version: 5.7.x
  • PHP Version: 7.2-7.4

Plugin / Theme: (*)

  • Name: WooCommerce Prices by Country
  • Slug: woocommerce-prices-by-country
  • Freemius ID: 8339

daigo75 avatar May 20 '21 16:05 daigo75