Support » Themes and Templates » Tiga 1.0.2 Not Showing Widgets In WP 2,2

  • JeffC71

    (@jeffc71)


    I just upgraded to WP 2.2. I fallowed all the directions in the Upgrade guide and all seemed to have went well. When I went to widgets in the dashboard they were all set up the way they should have been. I clicked save and it told me that my widgets had been saved. However, when I view my site it is showing the default sidebars and not my widgets.

    Is there a fix for this as I really don’t want to change my theme.

    Thanks,
    ~Jeff C.

Viewing 15 replies - 1 through 15 (of 27 total)
  • syntax

    (@syntax)

    i’m having the same problem w/tiga after the upgrade. i’m guessing that it’s a compatibility issue with 2.2.

    i’m sure there’s a way to hack tiga into submission to get it to work with the new-style widgets, but i’m very uncomfortable with fiddling w/php code…

    webophir

    (@webophir)

    can I see your sidebar.php from your current active theme?

    does your sidebar.php contain this code?

    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) : ?>
    .
    .
    .
    <?php endif; ?>

    liquidengineer

    (@liquidengineer)

    webophir,

    I’m running the latest Tiga, and I just looked at sidebar.php. It doesn’t seem to have the exact structure you mention, but it does have the following.

    function has_dynamic_sidebar($name) {
    if (!function_exists(‘dynamic_sidebar’))
    return false;

    global $registered_sidebars, $registered_widgets;

    $index = sanitize_title($name);

    $sidebars_widgets = get_option(‘sidebars_widgets’);

    $sidebar = $registered_sidebars[$index];

    if ( empty($sidebar) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) )
    return false;

    $did_one = false;
    foreach ( $sidebars_widgets[$index] as $name ) {
    $callback = $registered_widgets[$name][‘callback’];

    if ( is_callable($callback) ) {
    $did_one = true;
    }
    }

    return $did_one;
    }
    ?>

    This function is used to check for the existence of “Tiga Left Sidebar,” and “Tiga RIght Sidebar,” the two default sidebars.

    Any help or suggestions would be greatly appreciated.

    I am having the same issue and would like to see a resolution.

    If you have the Sidebar Widget plugin installed delete all the files related to that plugin.

    I just downloaded the 1.0.2 on a 2.2 blog and it is working just fine, dragging and dropping widgets. Remember widgets are now native to 2.2 so you don’t need the widget plugin anymore.

    I deleted the widgets directory and it didn’t make a difference. This (and only this) theme ignores my widgets settings (using the new widget functionality) under 2.2.

    Apparently another theme that uses the Tigarator also has similar problems… so it’s probably related to that.

    I was mucking around with Tiga’s sidebars.php tonight, and tried this:

    <?php
    function has_dynamic_sidebar($name) {
    if (!function_exists(‘dynamic_sidebar’))
    return false;
    if (!dynamic_sidebar($name))
    return false;
    return true;
    }
    ?>

    <!– ##################################### Begin – Left Sidebar ##################### –>

    <?php if (has_dynamic_sidebar(‘Tiga Left Sidebar’)) { ?>
    <ul class=”left-sidebar”>
    <?php dynamic_sidebar(“Tiga Left Sidebar”); ?>

    <?php } else { ?>
    <?php } ?> <!– End checking of ‘dynamic_sidebar’ –>

    <!– ##################################### End – Left Sidebar ####################### –>

    <!– ##################################### Begin – Right Sidebar #################### –>

    <?php if (has_dynamic_sidebar(‘Tiga Right Sidebar’)) { ?>
    <ul class=”right-sidebar”>
    <?php dynamic_sidebar(“Tiga Right Sidebar”); ?>

    <?php } else { ?>
    <?php } ?> <!– End checking of ‘dynamic_sidebar’ –>

    <!– ##################################### End – Right Sidebar ###################### –>

    ——————————————————-

    Basically, I changed has_dynamic_sidebar() to match what I saw in other themes, and deleted the default widgets that are populated if the user doesn’t populate the sidebar widgets.

    The good news is that this gets us close — if you populate the widgets under presentation->widgets, the sidebars now show up with the correct widgets!

    The bad news is that the left sidebar is being double-populated — once with the correct sidebar look and feel, and once with the selected widgets for both sidebars but without any formatting. Try it and you’ll see. I’m not sure why that is occuring. I’m hoping someone else will have some ideas.

    Okay, I was wrong–even though I can drag and drop widget in admin, what’s appearing on the site is the standard non-widget stuff. Must have been a dream.

    I have developed a fix to this problem! The solution is available to anybody who wants it at:

    http://learncpp.com/?p=20

    MichaelH, two questions for you:
    1) Is it possible to change your password on this site?
    2) Would it be appropriate to link to this fix from http://codex.wordpress.org/Themes/Theme_Compatibility/2.2?

    That is a really bad way to do widgets and a sidebar. There’s absolutely no need for the has_dynamic_sidebar() function at all. The only reason he’s using that has_dynamic_sidebar function is that he appears to not want to change the default sidebar from DIVs to a proper UL/LI method. Which is just silly, of course. The sidebar should be using either divs or a ul regardless of whether he’s using widgets or not, not one way for one and the other way for the other.

    The theme could be fixed, mind you. I’m just amazed to see that much trouble gone to avoid such a simple fix.

    Tarindel
    1. Password change for the Forums is available via the Edit button under View your Profile. Password change for the Codex is under your Preferences.
    2. Not problem linking as you want there.

    Hello!

    I’m running my blogg ( http://www.hell-man.se ) on this theme, Tiga, but now I’ve been informed that Tiga is not compatibile with the new release of WordPress, version 2.2.

    The reason is said to be that WP 2.2 has an inbuildt handing of widgets. As I’ve been told, there is needed to be an upgrade of Tiga to fix this.

    Is there anyone out there knowing if there will be such an upgrade?

    I love this theme. It is 100 % fitting my needs. I absolutely don’t like to change to some other theme.

    Regarding this post in this discusion:

    “I have developed a fix to this problem! The solution is available to anybody who wants it at:

    http://learncpp.com/?p=20

    After that post, it seems that not everybody agree this is an sollution, so my question is, how would you have done if you were me?

    Thanks in advance! Feel free to mail me on hell-man@hell-man.se, if you prefer that.

    Regards,

    /Linus

    Here’s how the sidebar.php file should really look.

    I would post this over at wordpress.pastebin, but it’s blocked for me for the moment. Mod, feel free to post it over there for me and link to it if you want…

    [moderated code pasted at http://wordpress.pastebin.ca/523651

    and thanks for that Otto 😉 ]

    Otto is correct in saying that the sidebars and widgets were poorly coded in this theme. The fix I made available does not correct the poor coding. What the fix does is update the function that the theme’s author wrote to detect whether the user has overridden the default widgets to a version that works with WordPress v2.2.

    Is it the best solution possible? No, the best solution possible would be to recode the theme correctly.

    Is it the best solution available? Yes, until the author (or someone else) recodes the theme properly.

    Does the fix work? Yes, and it won’t leave you any worse off than you were under v2.1.3.

    Thanks! You’re an super heroe, Tarindel!! Shall change it all in some day or so.

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Tiga 1.0.2 Not Showing Widgets In WP 2,2’ is closed to new replies.