Viewing 5 replies - 1 through 5 (of 5 total)
  • You can add this in your child-theme functions.php:

    add_filter( 'tc_footer_widgets', 'my_footer_widgets');
    function my_footer_widgets( $default_widgets_area ) {
        unset($default_widgets_area['footer_three']);
        unset($default_widgets_area['footer_two']);
        return $default_widgets_area;
    }
    add_filter('footer_one_widget_class', 'new_footer_widget_class');
    function new_footer_widget_class(){
        return 'span12';
    }

    Thread Starter vidaldewit

    (@vidaldewit)

    Great!

    But it seems not to work, do I really need to use a child theme?

    Vidal

    1) It works (tested) ?? unless you have some weird code :P, or unless I’m missing something .. but I tested it so.. dunno
    2) If you want to be able to upgrade your customizr version without losing your changes you shouldn’t put code in the parent theme functions.php, and then you have to use a child-theme,
    3) You can always use the css way, uglier, but still works:

    footer #footer_two, footer #footer_three {
        display: none;
    }
    
    footer #footer_one { width: 940px;}
    @media (min-width: 1200px){
        footer #footer_one { width: 1170px;}
    }
    @media (max-width: 979px) and (min-width: 768px){
        footer #footer_one { width: 724px;}
    }
    @media (max-width: 767px){
        footer #footer_one { width: 100%;}
    }

    hope this helps ??

    Thread Starter vidaldewit

    (@vidaldewit)

    The child theme did the trick!

    thanks!

    Great,
    would you mind marking this topic as resolved?
    thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove 2 widget area and use only one in’ is closed to new replies.