Categories

Featured templates

CherryFramework 3. How to change number of columns in footer

Andre Flores January 26, 2016
Rating: 5.0/5. From 2 votes.
Please wait...

Hello! This video tutorial shows how to change number of columns in footer of CherryFramework 3.x templates.

CherryFramework 3. How to change number of columns in footer

You may have some certain columns number in the footer area of your website that you may want to change.

Let’s learn how to do that.

The tutorial assumes you are already logged into your WordPress dashboard.

  1. Navigate to Appearance -> Editor tab in your site back-end:

    cherry_3.x_how_to_change_number_of_columns_in_footer_1

  2. Then click on wrapper-footer.php file name on the left side to open the file for editing:

    cherry_3.x_how_to_change_number_of_columns_in_footer_2

In the file you can see the code with several “span” tags:

cherry_3.x_how_to_change_number_of_columns_in_footer_3

Each span section is responsible for certain column in the footer.

If you sum up these spans, you will receive span12 as a result (2+2+2+2+1+3=12). This is the main condition to have 12 after summing up all the spans no matter how many columns you wish to have.

Let’s say you want to display four columns instead of five – first, second, third and fifth.

First of all, remove the code responsible for the forth column:

	<div class="span2 footer-wid" data-motopress-type="static" data-motopress-static-file="static/static-footer-nav.php">
	<?php get_template_part("static/static-footer-nav"); ?>
	</div>

Secondly, you need to increase the span value for one of four columns in order to have columns displayed nicely.

Since the removed column had a value of span2, let’s increase the value of the third column by 2:

	<div class="span2 footer-wid" data-motopress-type="dynamic-sidebar" data-motopress-sidebar-id="footer-sidebar-3">
	<?php dynamic_sidebar("footer-sidebar-3"); ?>
	</div>

Replace this code with the following:

	<div class="span4 footer-wid" data-motopress-type="dynamic-sidebar" data-motopress-sidebar-id="footer-sidebar-3">
	<?php dynamic_sidebar("footer-sidebar-3"); ?>
	</div>

Click Update File” button to apply changes:

cherry_3.x_how_to_change_number_of_columns_in_footer_4

Navigate to your site front-end and refresh the page to see the changes.

You can see there are four columns displayed in the footer area now:

cherry_3.x_how_to_change_number_of_columns_in_footer_5

This is the end of the tutorial. You have learnt how to change number of columns in footer of CherryFramework 3.x templates.

Feel free to check the detailed video tutorial below:

CherryFramework 3. How to change number of columns in footer

Awesome Wordpress Themes
This entry was posted in WordPress Tutorials and tagged column, footer, number, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket