Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter _brv_

    (@_brv_)

    I don’t want to change the font size as per h3 tag. I want the title to be a h3 tag.
    I found a solution modifying the files functions.php and footer.php.
    BUT I’m not sure that these are done in a proper way. Here what I have right now:
    in functions.php:

    function brv_widgets_init() {
            unregister_sidebar('footer-widget-area');
            register_sidebar( array(
                            'name' => __( 'Footer Widget Area', 'brv' ),
                            'id' => 'footer-widget-area',
                            'description' => __( 'footer widget area', 'brv' ),
                            'before_widget' => '<div class="col-md-3 col-sm-6 enigma_footer_widget_column">',
                            'after_widget' => '</div>',
                            'before_title' => '<div class="enigma_footer_widget_title"><h3>',
                            'after_title' => '</h3><div class="enigma-footer-separator"></div></div>'
                    ) );
            dynamic_sidebar( 'footer-widget-area' );
    }
    
    remove_action( 'widgets_init', 'weblizar_widgets_init' );
    add_action( 'widgets_init', 'brv_widgets_init' );

    and in footer.php with call to brv_widgets_init();:

    <!-- enigma Callout Section -->
    <?php $wl_theme_options = weblizar_get_options(); ?>
    <!-- Footer Widget Secton -->
    <div class="enigma_footer_widget_area">
            <div class="container">
                    <div class="row">
                            <?php
                            if (  is_active_sidebar( 'footer-widget-area' ) ){
                                    //dynamic_sidebar( 'footer-widget-area' );
                                    brv_widgets_init();
                            } else
                            {
                            $args = array(
                            'before_widget' => '<div class="col-md-3 col-sm-6 enigma_footer_widget_column">',
                            'after_widget'  => '</div>',
                            'before_title'  => '<div class="enigma_footer_widget_title"><h3>', // added <h3> BRV 01/12/2015
                            'after_title'   => '</h3><div class="enigma-footer-separator"></div></div>' ); // added </h3> BRV 01/12/2015
                            the_widget('WP_Widget_Pages', null, $args);
                            } ?>
                    </div>
            </div>
    </div>

    is it OK this way of doing things? It’s not clear for me the sequence order when the page is loading…

    Thread Starter _brv_

    (@_brv_)

    Hi Mr Case, thanks for your quick answer.
    Without the typos, the site is back again but the enigma_footer_widget_title is NOT a h3 tag.
    Here is the updated file functions.php:

    function brv_widgets_init() {
            unregister_sidebar('footer-widget-area');
            register_sidebar( array(
                            'name' => __( 'Footer Widget Area', 'brv' ),
                            'id' => 'footer-widget-area',
                            'description' => __( 'footer widget area', 'brv' ),
                            'before_widget' => '<div class="col-md-3 col-sm-6 enigma_footer_widget_column">',
                            'after_widget' => '</div>',
                            'before_title' => '<div class="enigma_footer_widget_title"><h3>',
                            'after_title' => '</h3><div class="enigma-footer-separator"></div></div>'
                    ) );
    }
    
    remove_action( 'widgets_init', 'weblizar_widgets_init' );
    add_action( 'widgets_init', 'brv_widgets_init' );

Viewing 2 replies - 1 through 2 (of 2 total)