• Resolved frunky

    (@frunky)


    Hello again!

    Thanks for all.

    I have one question – How I can display only parent colors in widget?

    For example if I have grey(parent) and dark grey(children) show only grey(parent).

    Thanks so much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter frunky

    (@frunky)

    I’m trying use just ‘parent’ attribute, but I’m just edit the widgets.php file on plugin folder.

    $get_terms = get_terms( 'product_color', apply_filters( 'elm_cf_get_terms_args', array( 'parent' => 0, 'hide_empty' => $hide_empty ) ) );
    

    It’s not good tone and in future I can’t update this plugin. I’m right?

    How I can redeclare widget function?

    Thanks

    • This reply was modified 8 years ago by frunky.
    • This reply was modified 8 years ago by frunky.
    Dominykas

    (@dominykasgel)

    Hi Frunky,

    You are right. It’s not good to change the plugin files because they will disappear after updating the plugin.

    You can’t redeclare. You can only create a new widget with the same functions and place it in your theme folder..

    Thread Starter frunky

    (@frunky)

    Ok, thanks, @dominykasgel

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show only parent colors on widget’ is closed to new replies.