Builder Footer Module

From IThemes Codex
(Difference between revisions)
Jump to: navigation, search
(Method 1)
(Advanced Note: Editing the Footer Module)
 
(2 intermediate revisions by one user not shown)
Line 86: Line 86:
 
</pre>
 
</pre>
  
In the above replace &amp; with '''& a m p ;''' without spaces and © with '''& c o p y ;''' without the spaces.
+
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:
 
Add the following at the end of child theme's style.css:
Line 95: Line 97:
 
}
 
}
 
</pre>
 
</pre>
 +
 +
<br />
  
 
=== Method 2 ===
 
=== Method 2 ===
Line 110: Line 114:
 
</pre>
 
</pre>
  
Ensure that line numbers are not present in the code in functions.php.
+
'''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 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==
 
==See also==

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