• Hello,

    I’m currently using Hueman as a second theme for my blog, but I have a problem with the widget AlxTabs. In fact, when you add a second theme to your site (with jonradio Multiple Theme plugin), the widgets aren’t saved, and it is the case with AlxTabs. The “normal” widgets such as “text”,”search”,”recent posts” … are saved, but not those which are proper to Hueman Theme (like AlxTabs or AlxPosts). Do you think there is a way to make AlxTabs saved, even if Hueman is the secondary theme of my website ?

    Thanks for your answers !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi benjamin. Welcome to the Hueman forum. Don’t know of a way to use a theme-specific widget across multiple themes. You could create the AlxTabs widget in the other theme by:

    1. Copy hueman/functions/widgets/alx-tabs.php to the other theme in a separate folder, like /widgets.
    2. Load the widget in that theme by adding this line to that theme (preferably using a child theme) functions.php file:

    load_template( get_template_directory() . '/widgets/alx-tabs.php' );

    Downside is you’ll have to maintain it in both themes.

    Thread Starter benjamin.gru

    (@benjamingru)

    Hey bdbrown, thanks for your answer !

    I understand what you say and it seems logical even though I’m waiting a bit before trying it on my site. I just don’t understand you last sentence “Downside is you’ll have to maintain it in both themes”. Does that mean I will have to also update the secondary theme every time it is possible ?

    Thanks again !

    If you update your Hueman theme, any changes in the alx-tabs.php file will be automatically applied. That won’t happen for your other theme where you’ve copied the alx-tabs.php file. You’d need to copy the new alx-tabs.php file to your second theme after every update just to make sure it’s at the same version as the alx-tabs.php file in your Hueman theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AlxTabs Widget Saver Multiple Theme’ is closed to new replies.