Skip to main content

Footer Menu

Is there a way to add a footer menu to FluentCommunity and display links to privacy policy, terms, contact, etc.?

I am using FluentCommunity Frame for some of my pages, and would like to show these footer links.

Dig Doug

I'm curious about this as well.

Thomas Oates

Don't think this is built-in and I can't think of any reasonably good way to code it. You could add a section to the left menu with the links (similar to the Product Links section on this site).

Adam George

I have manually added links to the bottom of each page. Such a pain. I may have missed some.

Eric

Β Yes, I’m missing a footer as well β€” we need to have one for the legal terms.

Anja

Same here. We need to show legal terms in the footer.

Thomas Oates

Not sure why I didn't think of this before but you can use the WordPress the_content hook to add a footer to the pages using the FC templates.

Example:

function my_footer ( $content ) {
    if ( is_page() ) {
        return $content . '<br><br><div style="text-align:center;"><a href="/termsofuse">Terms of use</a></div>';
    }

    return $content;
}
add_filter( 'the_content', 'my_footer');

This doesn't add it to the FC pages (feed, spaces, etc.) though.

Thomas Oates

As an alternative, if you can get by with just one link, you could modify the 'Powered by FluentCommunity' link at the bottom of the left sidebar.

To do so, enable 'Show powered by text' in Settings->Customizations and then the following code will change the text and URL to a content page (/termsofuse).

add_filter( 'clean_url', function( $good_protocol_url, $original_url, $context ) {
    if ( strpos( $original_url, 'https://fluentcommunity.co/?' ) === 0 ) {
        return '/termsofuse';
    }

    return $good_protocol_url;
}, 10, 3 );

add_filter( 'esc_html', function( $escaped_text, $original_text ) {
    if ( strpos( $original_text, 'Powered by FluentCommunity' ) !== false ) {
        $escaped_text = 'Terms of Use';
    }
    return $escaped_text;
}, 10, 2 );