Digital experiences for all disciplines
New Landing › How can we help? › Atelier › promo bar not accepting html
New Landing › How can we help? › Atelier › promo bar not accepting html
- This topic has 6 replies, 3 voices, and was last updated 8 years by Swift Ideas – Ed.
-
Posted in: Atelier
-
December 14, 2016 at 11:19 am #306569
Hello Swift team,
on Atelier I want to add some basic 3 col bootstrap markup on the promo bar
and this seems to not be possible as this outputs the actual code “as is” in the front-end.
<div class="row"> <div class="col-md-4">one column out of three. Here you can put your content.</div> <div class="col-md-4">one column out of three. Here you can put your content.</div> <div class="col-md-4">one column out of three. Here you can put your content.</div> </div>
This is possible with Dante but not with Atelier
I am referring to the promo bar that appears above the footer and NOT to the global header banner.
Is there a way to have a 3 col layout in the global promo bar? ( the row above the footer)
Please let me know any suggestions.
Thanks in advance,
Best,
Bill
December 14, 2016 at 12:00 pm #306575Hi,
Will forward your request to the development team as it’s not possible at the moment.
-Rui
December 14, 2016 at 12:13 pm #306577Hi Rui,
thank you very much – it would be great to have this there – cannot understand why this was removed from Atelier as it was a really helpful feature as sometimes you may require a 3 col global banner above the footer and not the top – or sometimes you may require both.
Please let me know!
Thanks again!
Best,
BillDecember 14, 2016 at 12:55 pm #306582No problem. It’s forwarded.
-Rui
December 15, 2016 at 11:25 am #306704December 15, 2016 at 12:50 pm #306739Hello Ed,
yes this is through the theme options – please see images attached
The goal is to have a 3 col layout in this promo banner above the footer (which is global)
like you can do with the global header banner.
For sure I can create this using the page builder but then this will not be global as it cannot be assigned to taxonomy pages , products etc.
Let me know if any suggestions!
Thanks for your help in advance,
Best,
Bill
Attachments:
You must be logged in to view attached files.December 15, 2016 at 6:46 pm #306832Hi Bill,
Unfortunately HTML isn’t allowed there at the moment – you’d need to edit /swift-framework/core/sf-footer.php file, or override this function in a child theme and make your adjustments:
/* FOOTER PROMO ================================================== */ if ( ! function_exists( 'sf_footer_promo' ) ) { function sf_footer_promo() { global $sf_options; $footer_promo_bar_text_size = ""; $footer_promo_bar_button_type = "drop-shadow"; $enable_footer_promo_bar = $sf_options['enable_footer_promo_bar']; $footer_promo_bar_type = $sf_options['footer_promo_bar_type']; $footer_promo_bar_text = __( $sf_options['footer_promo_bar_text'], "swiftframework" ); $footer_promo_bar_button_color = $sf_options['footer_promo_bar_button_color']; $footer_promo_bar_button_text = __( $sf_options['footer_promo_bar_button_text'], "swiftframework" ); $footer_promo_bar_button_link = __( $sf_options['footer_promo_bar_button_link'], "swiftframework" ); $footer_promo_bar_button_target = $sf_options['footer_promo_bar_button_target']; if ( isset($sf_options['footer_promo_bar_text_size']) ) { $footer_promo_bar_text_size = $sf_options['footer_promo_bar_text_size']; } if ( isset($sf_options['footer_promo_bar_button_type']) ) { $footer_promo_bar_button_type = $sf_options['footer_promo_bar_button_type']; } if ( $enable_footer_promo_bar ) { ?> <!--// OPEN #base-promo //--> <div id="base-promo" class="sf-promo-bar promo-<?php echo $footer_promo_bar_type; ?>"> <?php if ( $footer_promo_bar_type == "button" ) { ?> <p class="<?php echo $footer_promo_bar_text_size; ?>"><?php echo esc_attr($footer_promo_bar_text); ?></p> <a href="<?php echo esc_url($footer_promo_bar_button_link); ?>" target="<?php echo $footer_promo_bar_button_target; ?>" class="sf-button <?php echo $footer_promo_bar_button_type; ?> <?php echo $footer_promo_bar_button_color; ?>"><?php echo esc_attr($footer_promo_bar_button_text); ?></a> <?php } else if ( $footer_promo_bar_type == "arrow" ) { ?> <a href="<?php echo esc_url($footer_promo_bar_button_link); ?>" target="<?php echo $footer_promo_bar_button_target; ?>"><?php echo esc_attr($footer_promo_bar_text); ?> <?php echo apply_filters( 'sf_next_icon', '<i class="ss-navigateright"></i>' ); ?></a> <?php } else { ?> <a href="<?php echo esc_url($footer_promo_bar_button_link); ?>" target="<?php echo $footer_promo_bar_button_target; ?>" class="<?php echo $footer_promo_bar_text_size; ?>"><?php echo esc_attr($footer_promo_bar_text); ?></a> <?php } ?> <!--// CLOSE #base-promo //--> </div> <?php } } add_action( 'sf_main_container_end', 'sf_footer_promo', 20 ); }
– Ed
-
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.