New Landing How can we help? Cardinal Add New Footer Layout (Child Theme)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Cardinal
  • #146946
    SmallDogCreative
    Member
    Post count: 55

    Greetings!

    I need to add a new footer layout to Cardinal. First, I:

    1. Copied cardinal/swift-framework/sf-footer.php to cardinal-child.
    2. Added new codeblock to cardinal-child/sf-footer.php:

    <?php } else if ( $footer_config == "footer-9" ) { ?>
    
    <div class="col-sm-6">
    	<?php if ( function_exists( 'dynamic_sidebar' ) ) { ?>
    		<?php dynamic_sidebar( 'footer-column-1' ); ?>
    	<?php } ?>
    </div>
    <div class="col-sm-2">
    	<?php if ( function_exists( 'dynamic_sidebar' ) ) { ?>
    		<?php dynamic_sidebar( 'Footer Column 2' ); ?>
    	<?php } ?>
    </div>
    <div class="col-sm-2">
    	<?php if ( function_exists( 'dynamic_sidebar' ) ) { ?>
    		<?php dynamic_sidebar( 'Footer Column 3' ); ?>
    	<?php } ?>
    </div>
    <div class="col-sm-2">
    	<?php if ( function_exists( 'dynamic_sidebar' ) ) { ?>
    		<?php dynamic_sidebar( 'Footer Column 4' ); ?>
    	<?php } ?>
    </div>

    What else must I modify in order to select it in Cardinal backend? I couldn’t find reference to footer functions in sf-functions.php.

    Thanks!

    #146980
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you explain what are you trying to achieve? More columns in the footer?

    -Rui

    #147006
    SmallDogCreative
    Member
    Post count: 55

    Hey Rui,

    Yes, I wanted to create a new footer layout as shown here:

    https://www.dropbox.com/s/vgm2fpg8gfa3w20/Screenshot%202015-02-03%2016.20.19.png?dl=0

    which is col-sm-6, col-sm-2, col-sm-2, col-sm-2

    Now, I have created this by modifying the core sf-footer.php file (changing footer-2), which we prefer NOT to do for upgrade compatibility reasons.

    Therefore, I want to accomplish two things so that I can create additional layouts and select them at will:

    1) Modify the core files in the child-theme only, if possible

    2) Add new layout(s) (footer-9, footer-10, footer-11, etc) and have them available for selection in the Cardinal Theme Footer Options tab.

    So, I guess I need to know what other core files must be changed to accommodate my request.

    Thanks!

    Steve

    #147054
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Unfortunately you can only override functions in a child them that start with a conditional

    You cannot override the files themselves.

    To activate your footer, you will need to add to the options by editing sf-options.php

    – Kyle

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

You must be logged in to reply to this topic.