New Landing How can we help? Atelier sf_woo_help_bar in Footer

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #248965
    Oriol90
    Member
    Post count: 6

    I would like to add the help bar of woocommerce that appear in /checkout and goes with the theme, called sf_woo_help_bar, to the Copyright/footer menu, is there a way to do that?

    #249027
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    add_action('sf_footer_wrap_content','sf_woo_help_bar',20);

    Thanks
    Mohammad

    #249289
    Oriol90
    Member
    Post count: 6

    I’m experencing styling problems, to solve it I’m trying to modify sf-woocommerce.php, where it is declared the function and the html of it:

        if ( ! function_exists( 'sf_woo_help_bar' ) ) {
            function sf_woo_help_bar() {
                global $sf_options;
    
                $help_bar_text  = __( $sf_options['help_bar_text'], 'swiftframework' );
                $email_modal    = __( $sf_options['email_modal'], 'swiftframework' );
                $shipping_modal = __( $sf_options['shipping_modal'], 'swiftframework' );
                $returns_modal  = __( $sf_options['returns_modal'], 'swiftframework' );
                $faqs_modal     = __( $sf_options['faqs_modal'], 'swiftframework' );
    
                $modal_delete_icon = apply_filters( 'sf_close_icon', '<i class="ss-delete"></i>' );
                ?>
                <div class="container">
                    <span><?php echo do_shortcode( $help_bar_text ); ?></span>
                    <ul class="nav nav-tabs">
                        <?php if ( $email_modal != "" ) { ?>
                            <li><a href="#email-form" class="inline"
                                   data-toggle="modal"><?php _e( "Email customer care", "swiftframework" ); ?></a></li>
                        <?php } ?>
                        <?php if ( $shipping_modal != "" ) { ?>
                            <li><a href="#shipping-information" class="inline"
                                   data-toggle="modal"><?php _e( "Shipping information", "swiftframework" ); ?></a></li>
                        <?php } ?>
                        <?php if ( $returns_modal != "" ) { ?>
                            <li><a href="#returns-exchange" class="inline"
                                   data-toggle="modal"><?php _e( "Returns & exchange", "swiftframework" ); ?></a></li>
                        <?php } ?>
                        <?php if ( $faqs_modal != "" ) { ?>
                            <li><a href="#faqs" class="inline"
                                   data-toggle="modal"><?php _e( "F.A.Q.'s", "swiftframework" ); ?></a></li>
                        <?php } ?>
                    </ul>
                </div>

    Any class modification of the html tags do not change nothing, I mean, it really do nothing:
    <ul class=”who cares what im going to put here, it’s not going to appear”>

    I do not have activated cache or anything that could make that, why that?

    #249291
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    What changes do you want exactly in this function? Please explain me in detail.
    Thanks
    Mohammad

    #249326
    Oriol90
    Member
    Post count: 6

    I was trying to use nav-tabs in the ul tag to avoid css problems when inserting sf_woo_help_bar in the footer, but looks like sf_woo_help_bar() is not charging from the function defined in sf-woocommerce.php, because any change on that code did nothing :S

    Finally what I’ve done:

    To insert it, I’ve modified sf-footer.php:

    
                            <?php if ( $copyright_right == "menu" ) { ?>
                                <div class="woocommerce">
    				<?php sf_woo_help_bar();?>
                                </div>
                            <?php } else { ?>

    L337

    to make appear the woo_help_bar on the right side of the footer, when menu is selected on the copyright_right option.

    To solve the styling problems, I’ve modified the help-bar class in sf-combined.css and that was enough.

    Now I have the woo_help_bar popups in the footer showing properly and working well.

    Thanks any way!
    Maybe you could add this as a theme option for the copyright_right footer, it’s useful for shops.

    #249401
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Brilliant! I am glad that you managed to resolve the issue.
    Thanks
    Mohammad

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register