Digital experiences for all disciplines
New Landing › How can we help? › Atelier › sf_woo_help_bar in Footer
New Landing › How can we help? › Atelier › sf_woo_help_bar in Footer
- This topic has 5 replies, 2 voices, and was last updated 8 years by Mohammad – SUPPORT.
-
Posted in: Atelier
-
February 14, 2016 at 11:13 pm #248965
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?
February 15, 2016 at 9:49 am #249027Hi,
Please paste this code at functions.php of child theme.add_action('sf_footer_wrap_content','sf_woo_help_bar',20);
Thanks
MohammadFebruary 15, 2016 at 4:45 pm #249289I’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?
February 15, 2016 at 5:02 pm #249291Hi,
What changes do you want exactly in this function? Please explain me in detail.
Thanks
MohammadFebruary 15, 2016 at 6:29 pm #249326I 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.February 16, 2016 at 6:34 am #249401Hi,
Brilliant! I am glad that you managed to resolve the issue.
Thanks
Mohammad -
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.