Builder Footer Module

From IThemes Codex
(Difference between revisions)
Jump to: navigation, search
(Created page with "<br /> ← Back to Builder Codex Home")
 
(Advanced Note: Editing the Footer Module)
 
(9 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
The '''Footer Module''' adds a place for the site Footer to render. Most Layouts will have this Module at the bottom of the Layout, although a Layout does not require a Footer (even if a Layout does not have a Footer Module, the function calls that some plugins and features require that footers are responsible for will be handled automatically by Builder).
 +
 
<br />
 
<br />
[[:Builder_Test|← Back to Builder Codex Home]]
+
 
 +
==Adding a Footer Module==
 +
 
 +
To add an Footer Module to your Layout, click '''Add Module''' and select the Footer Module from the list of available Modules.
 +
 
 +
<br />
 +
 
 +
[[File:add-footer-module.png|800px|link=]]
 +
 
 +
<br />
 +
 
 +
==Footer Module Settings==
 +
 
 +
Once the Footer Module has been selected and added to the Layout, the '''Modify Footer Module Settings''' box will appear. Customize the settings of the Footer Module by selecting from the following options.
 +
 
 +
<br />
 +
 
 +
[[File:footer-module-settings.png|800px|link=]]
 +
 
 +
<br />
 +
 
 +
'''Available Footer Module settings include:'''
 +
 
 +
*'''Name''' - For widget identification purposes
 +
*'''Sidebars''' - Widget areas to the left, right or on both sides of the HTML Module
 +
*'''Style''' - **Varies by child theme** - If the active child theme (theme design) provides [[Builder_Modules:_Alternate_Module_Styles|Alternate Module Style]] options for this module, select the desired style.
 +
 
 +
<br />
 +
 
 +
Click the '''Save''' button to save the Footer Module Settings. You'll now see the Footer Module added to your Layout, denoting the configuration of sidebars (if applicable).
 +
 
 +
<br />
 +
 
 +
[[File:footer-module-added.png|800px|link=]]
 +
 
 +
==Generic CSS Class==
 +
 
 +
<code>.builder-module-footer</code>
 +
 
 +
==Advanced Note: Editing the Footer Module==
 +
 
 +
=== Method 1 ===
 +
 
 +
Make a copy of ''footer.php'' from parent Builder directory, edit it and place in your child theme's (active theme) directory.
 +
 
 +
*[http://ithemes.com/builder-tip-how-to-edit-footer/ Video and detailed instructions]
 +
 
 +
<br />
 +
 
 +
[[File:Custom-footer.png|800px|thumb|none|Screenshot showing customized footer - Click to enlarge]]
 +
 
 +
<br />
 +
 
 +
'''If you would like a footer.php that looks like the screenshot above as starting point to use as is or further customize''', download [http://cl.ly/0z1C1X32243A30462F1q this zip file], extract it and upload footer.php to your child theme directory.
 +
 
 +
<br />
 +
 
 +
This is the example code in the footer.php just in case the download link does not work:
 +
 
 +
<pre class="brush:php;">
 +
<?php
 +
 
 +
 
 +
function render_footer() {
 +
?>
 +
<!-- Begin changes -->
 +
<div class="alignmiddle">
 +
<p><a href="<?php bloginfo('url'); ?>">Home</a> | <a href="<?php bloginfo('url'); ?>/privacy-policy/">Privacy Policy</a> | <a href="<?php bloginfo('url'); ?>/terms-conditions/">Terms &amp; Conditions</a></p>
 +
<p><?php echo date( 'Y' ); ?> - Copyright &copy; All Rights Reserved</p>
 +
</div>
 +
<!-- End changes -->
 +
 
 +
<?php wp_footer(); ?>
 +
<?php
 +
 
 +
}
 +
 
 +
 
 +
add_action( 'builder_layout_engine_render_footer', 'render_footer' );
 +
 
 +
 
 +
?>
 +
</pre>
 +
 
 +
In the above, replace &amp; with '''& a m p ;''' without spaces and © with '''& c o p y ;''' without the spaces.
 +
 
 +
<br />
 +
 
 +
Add the following at the end of child theme's style.css:
 +
 
 +
<pre class="brush:css;">
 +
.alignmiddle {
 +
text-align: center;
 +
}
 +
</pre>
 +
 
 +
<br />
 +
 
 +
=== Method 2 ===
 +
 
 +
To remove the credit to iThemes Builder (but leave the standard copyright notice, powered by WordPress etc.) you could also include this function in your child theme's functions.php:
 +
 
 +
<pre class="brush:php;">
 +
add_filter( 'builder_footer_credit', 'custom_builder_footer_credit' );
 +
 
 +
function custom_builder_footer_credit( $footer_credit ) {
 +
    $footer_credit = 'Powered by <a href="http://wordpress.org">WordPress</a><br />Customized by <a href="http://me.com/">Myself!</a>';
 +
   
 +
    return $footer_credit;
 +
}
 +
</pre>
 +
 
 +
'''Note:''' Ensure that line numbers are not present in the code in functions.php.
 +
 
 +
* See http://www.screencast.com/t/R2hJBzCRk and http://www.screencast.com/t/ZajvGiQGo
 +
* Source: http://ithemes.com/forum/index.php?/topic/12687-edit-footer/#p59955
 +
 
 +
==See also==
 +
 
 +
*[[Builder_Layouts:_Introduction|Introduction to Builder Layouts]]
 +
* [[Builder_Layouts_Video_Overview|Video Overview]]
 +
* [[Creating_a_Builder_Layout|Creating a Builder Layout]]
 +
** [[Builder_Modules|Builder Modules]]
 +
*** [[Builder_Header_Module|Header Module]]
 +
*** [[Builder_Navigation_Module|Navigation Module]]
 +
*** [[Builder_Image_Module|Image Module]]
 +
*** [[Builder_Widget_Bar_Module|Widget Bar Module]]
 +
*** [[Builder_Content_Module|Content Module]]
 +
*** [[Builder_HTML_Module|HTML Module]]
 +
*** [[Builder_Footer_Module|Footer Module]]
 +
**[[Builder_Modules:_Sidebars|Sidebars]]
 +
*** [[Builder_Duplicate_Sidebar_Widget| Builder Duplicate Sidebar Widget]]
 +
** [[Builder_Modules:_Alternate_Module_Styles|Alternate Module Styles]]
 +
* [[Applying_Builder_Layouts| Applying Layouts to Specific Posts/Pages]]
 +
 
 +
 
 +
<br />
 +
[[:Builder|← Back to Builder Codex Home]]

Latest revision as of 12:55, July 24, 2013

The Footer Module adds a place for the site Footer to render. Most Layouts will have this Module at the bottom of the Layout, although a Layout does not require a Footer (even if a Layout does not have a Footer Module, the function calls that some plugins and features require that footers are responsible for will be handled automatically by Builder).


Contents

Adding a Footer Module

To add an Footer Module to your Layout, click Add Module and select the Footer Module from the list of available Modules.


Add-footer-module.png


Footer Module Settings

Once the Footer Module has been selected and added to the Layout, the Modify Footer Module Settings box will appear. Customize the settings of the Footer Module by selecting from the following options.


Footer-module-settings.png


Available Footer Module settings include:

  • Name - For widget identification purposes
  • Sidebars - Widget areas to the left, right or on both sides of the HTML Module
  • Style - **Varies by child theme** - If the active child theme (theme design) provides Alternate Module Style options for this module, select the desired style.


Click the Save button to save the Footer Module Settings. You'll now see the Footer Module added to your Layout, denoting the configuration of sidebars (if applicable).


Footer-module-added.png

Generic CSS Class

.builder-module-footer

Advanced Note: Editing the Footer Module

Method 1

Make a copy of footer.php from parent Builder directory, edit it and place in your child theme's (active theme) directory.


Screenshot showing customized footer - Click to enlarge


If you would like a footer.php that looks like the screenshot above as starting point to use as is or further customize, download this zip file, extract it and upload footer.php to your child theme directory.


This is the example code in the footer.php just in case the download link does not work:

<?php


function render_footer() {
?>
	<!-- Begin changes -->
	<div class="alignmiddle">
		<p><a href="<?php bloginfo('url'); ?>">Home</a> | <a href="<?php bloginfo('url'); ?>/privacy-policy/">Privacy Policy</a> | <a href="<?php bloginfo('url'); ?>/terms-conditions/">Terms & Conditions</a></p>
		<p><?php echo date( 'Y' ); ?> - Copyright © All Rights Reserved</p>
	</div>
	<!-- End changes -->

	<?php wp_footer(); ?>
<?php

}


add_action( 'builder_layout_engine_render_footer', 'render_footer' );


?>

In the above, replace & with & a m p ; without spaces and © with & c o p y ; without the spaces.


Add the following at the end of child theme's style.css:

.alignmiddle {
	text-align: center;
}


Method 2

To remove the credit to iThemes Builder (but leave the standard copyright notice, powered by WordPress etc.) you could also include this function in your child theme's functions.php:

add_filter( 'builder_footer_credit', 'custom_builder_footer_credit' );

function custom_builder_footer_credit( $footer_credit ) {
    $footer_credit = 'Powered by <a href="http://wordpress.org">WordPress</a><br />Customized by <a href="http://me.com/">Myself!</a>';
    
    return $footer_credit;
}

Note: Ensure that line numbers are not present in the code in functions.php.

See also



← Back to Builder Codex Home

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox