New Landing How can we help? Atelier promo bar not accepting html

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Atelier
  • #306569
    BillK
    Member
    Post count: 66

    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

    #306575
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Will forward your request to the development team as it’s not possible at the moment.

    -Rui

    #306577
    BillK
    Member
    Post count: 66

    Hi 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,
    Bill

    #306582
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. It’s forwarded.

    -Rui

    #306704
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @BillK

    Is this using the theme option version – rather than the page builder version?

    – Ed

    #306739
    BillK
    Member
    Post count: 66

    Hello 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.
    #306832
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi 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

Viewing 7 posts - 1 through 7 (of 7 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