Beans Framework Code Snippets

This is a list of Beans Framework code snippets to help you customize your Beans Framework child theme. If you haven’t created a Beans Framework child theme, use our free Free Beans Framework child theme generator

Paste these snippets directly into your Beans Framework child theme’s functions.php file unless otherwise noted to place in your functionality plugin.

Remove site branding
//Remove the site title and site title tag.
beans_remove_action( 'beans_site_branding' );

Remove the site title tag
//Remove the site title tag.
beans_remove_action( 'beans_site_title_tag' );

Remove the site title tag
//Disable comments on pages.
add_action( 'init', 'wpct_remove_page_comments' );
function wpct_remove_page_comments() {
	remove_post_type_support( 'page', 'comments' );

Add a footer widget area
//Register a footer widget area.
add_action( 'widgets_init', 'wpct_widget_area' );
function wpct_widget_area() {
beans_register_widget_area( array(
	'name' => 'Footer',
	'id' => 'footer',
	'beans_type' => 'grid'
	) );
// Display the footer widget area in the front end.
add_action( 'beans_footer_before_markup', 'wpct_footer_widget_area' );
function wpct_footer_widget_area() {
<div class="tm-mega-footer uk-block">
	<div class="uk-container uk-container-center">
		<?php echo beans_widget_area( 'footer' ); ?>

Modify the footer credit text
//Modify the footer credit left text.
add_filter( 'beans_footer_credit_text_output', 'wpct_footer_credit_text' );
function wpct_footer_credit_text() {
	return 'Your text';

//Modify the footer credit right text.
add_filter( 'beans_footer_credit_right_text_output', 'wpct_footer_credit_right_text' );
function wpct_footer_credit_right_text() {
	return 'Your text';

//Overwrite the footer content.
beans_modify_action_callback( 'beans_footer_content', 'wpct_footer_content' );
function wpct_footer_content() {
	?><!-- your own HTML --><?php

Need better WordPress hosting?

Look no further...

Your WordPress site deserves the fastest, most secure hosting solution. Sign up today and get Genesis Framework included with your hosting for FREE!

*Includes Genesis Framework

See all Features