Skip to main content

FluentCommunity Theme?

So, what if somebody wanted to run their whole site within the FluentCommunity setup? Instead of selecting a page template for specific pages, what if the whole site was that way?

Anybody done this?

And, what about having a default theme one could activate which just makes the whole site look like the FC portal?

Shahjahan Jewel

Coincidentally, one of our team members was talking about this. It’s under my radar.

Thomas Oates

Would the info at this link do this so you don't have to set the page template for every page? That's what I'm doing. The site I'm working on will be entirely inside FC.

https://github.com/WPManageNinja/fluent-community-docs/blob/master/theme-compatibility.md#using-code-snippets

Jeff Mapes

Thomas OatesΒ I am so confused with this link. I clicked on the link you gave, then it has a link to the full guide, that does not mention using the snippet, and I don't know where to use the snippet. I am just using the wp included 24 theme, which I'm quite certain is a block theme. When I try to create a page, add the fluent community block to the page I get this error, and the page has the left menu bar that pushes through the header and footer content, no content from my community, and if clicking any side bar items, just takes me to the community portal.

Thomas Oates

JeffΒ You can use a snippet tool like FluentSnippets and add the code there. I use the following code to make all my pages use the full FC frame template without having to set the template for each page.

    add_filter('fluent_community/template_slug', function ($templateSlug) {
        if (is_page()) {
            return 'fluent-community-frame-full.php';
        }
        return $templateSlug;
    }, 10, 2);

Jeff Mapes

Thomas OatesΒ as php in fluent snippets? and make the page as above? that snippet as php didn't make any changes to that page, running only on that page.

Thomas Oates

JeffΒ Yep, php. I don't use FluentSnippets (I just add code to my theme functions.php file) so I'm not sure exactly how it works but it definitely should be php. After the code is added and active, you shouldn't need to do anything with pages to have them use the FC template.

Jeff Mapes

Thomas OatesΒ but you are using the fluent community block as I did above? it's just not working. even with the snippet, it loads a page that has the community side bar and header menu, but when scrolling, the sidebar scrolls independently through my theme header and foote, and there's no content, and when clicking on any side bar just takes me to the community portal. I will consider opening a ticket, thanks for trying, and sorry to the OP for taking over your thread.

Thomas Oates

JeffΒ I'm not sure about the FC block. I'm still one of those guys that uses the classic editor instead of the block editor.

WiLson Eberechi

JeffΒ what WP theme are you using?

Not all WP themes works with FC templates

For example: twenty-twenty-five theme accepts FC templates but not FC templates full width.

I use Kadence or twenty twenty five for FC templates and full width.

Use any of the theme I recommended and see if it shows. It will show anyways.

How to use it: edit or create a page, by the rights side select templates, you'll see lists of available templates, pick FC templates and click publish or update.

That's it

Jeff Mapes

WiLson EberechiΒ using 24 theme. using the fcommunity template creates a page that looks exactly like my portal page, but has no content and takes me to my actual portal page if clicking on any spaces on left. all I was trying to do was embed my community on a Wordpress page so that I can keep my header navigation instead of looking like I'm on a completely different site, but retain the community right and left sidebar content too, but is there a setting I needed to change on my fcommunity settings too?.

WiLson Eberechi

JeffΒ use twenty-twenty-five theme it's free, I use it and it works fine for me

Drive Zone

I run everything inside FC frame on my website. Was not fun to make it work but you can do it.

Jeff Mapes

Drive ZoneΒ I would appreciate any advice about how you approached it. Did you use the Thomas OatesΒ snippet?

Drive Zone

JeffΒ If you use Astra theme I can provide you some snippets. It is a lot of custom work to make it look like you want it.

Jeff Mapes

Drive ZoneΒ I appreciate that but I just use the built in 24 theme. I can't afford Astra.

Tawsif Ahmed Riyad

Drive Zone, I would love to check your community site, but I cannot access it. I assume your community URL isΒ https://drivezone.cz/portal/ (seen that link somewhere in this community). But hitting the link redirects to the /ucp route. Did you restrict the site to only be available in your country?

Btw, your logo is very impressive, great taste.

Drive Zone

Tawsif Ahmed RiyadΒ Hello, UCP = under construction page, website is locked. I am still working at it. Site will be released at the beginning of december I hope.

Tawsif Ahmed Riyad

Drive Zone, please do share your site here after releasing.

Cointacter

It already works like that, just not with woocommerce. Pretty much everything else does work, just not woo.

Curtis Bisel

Has anyone found a way to hide the left sidebar in desktop view on certain posts types?

I’m finding the code snippet (that’s been shared) to format my entire membership website within the Fluent Community interface works great, but to me it seems inappropriate to show the Community left sidebar on blog posts to desktop users (especially to logged out search traffic). I’ve found some success hiding it with css, but my attempt seems to then render the mobile (hamburger) menu icon unclickable. Has someone found a successful solution?

Additionally, I’m also a bit troubled with the idea of losing a footer for Posts and Pages since this is where people look for links like β€œTerms and Conditions.” Not finding an elegant solution to this yet.