Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
footer editor for flash theme (ThemeGrill)
//copy below this line, you shouldn't include <?php
//paste this code in your function.php
//flash footer editor
if (! function_exists('flash_custom_credits')) {
function remove_default_flash_credits(){
add_filter('flash_copyright_area', 'flash_custom_credits');
function flash_custom_credits(){
$credit_value ='<div class="copyright"><span class="copyright-text">Copyright &copy; ' . date('Y') . ' <a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" ><span>' . get_bloginfo( 'name', 'display' ) . '.</span></a> ' .get_option('flash_custom_credits'). '</span></div>';
echo $credit_value;
if (! function_exists('flash_custom_options')) {
add_action('customize_register', 'flash_custom_options', 100, 1);
function flash_custom_options( $wp_customize ) {
$wp_customize->add_section('flash_footer_options', array(
'capabitity' => 'edit_theme_options',
//'priority' => 0,
'title' => __('Footer', 'flash')
$wp_customize->add_setting( 'flash_custom_credits' , array(
'default' => '<br/>Configure in Appearance => Customize => Footer',
'transport' => 'refresh',
'capability' => 'edit_theme_options',
'type' => 'option',
) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'flash_custom_credits', array(
'label' => __( 'Footer Text', 'flash' ),
'section' => 'flash_footer_options',
'settings' => 'flash_custom_credits',
) ) );

This comment has been minimized.

Copy link

@ctsavong562 ctsavong562 commented Aug 21, 2018

Hi Sangam,

I am using the free version of Flash Theme and tried using this snippet for my footer.php. I was wondering, do I need to install a plugin before editing the footer.php? I ended up just making the #bottom.footer to: display:none; and then adding the Headline widget from SiteOrigin to the footer. I managed to "customize" it to have the company's name and 2018 on there, but I am not sure if that would affect the SEO for the site. Or is it because I am using SiteOrigin that the snippet doesn't work for me? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.