Skip to main content

Fluent Snippets

Shahjahan Jewel,ย I added the 'theme compatibility' code via 'Fluent Snippets'. After deleting the code from the 'Fluent Snippets', I also deactivated the plugin. But the code is still running in the background. How do I remove it permanently? Could it also be because I installed Fluent Community on the root domain? Here's the code I added...

/**

  • Use any of the following snippets depends on your need.
  • You may target any specific post type or page type to load the fluent-community-frame.php
    **/

// load fluent community frame only for single blog post
add_filter('fluent_community/template_slug', function ($templateSlug) {
if(is_singular(['post'])) {
return 'fluent-community-frame.php';
}
return $templateSlug;
});

// load fluent community frame only for post, blog index, category or taxonmy and author pages
add_filter('fluent_community/template_slug', function ($templateSlug) {
if(is_singular(['post']) || is_home() || is_category() || is_tag() || is_author()) {
return 'fluent-community-frame.php';
}
return $templateSlug;
});

// load fluent community frame for all the pages including posts, archives etc
add_filter('fluent_community/template_slug', function ($templateSlug) {
return 'fluent-community-frame.php';
}, 10, 2);

Debo Ogunrinde

Bryan Williamย y Check this setting at the bottom of the Fluent Snippets settings page - https://prnt.sc/-ZAGhaeqjr8O

Bryan William

Debo Ogunrindeย I have deleted the plugin, if I install it back, can I still deactivate the standalone mode

Debo Ogunrinde

Bryan Williamย or if you have access to your wp-content no other snippet you want to keep, you can look in the fluent-snippet folder and delete the file https://prnt.sc/xIUn9r0okVAX

Bryan William

Debo Ogunrindeย I have deleted the folder. The issue is making the community the root domain with this code -

define('FLUENT_COMMUNITY_PORTAL_SLUG', '');

Bryan William

Debo Ogunrindeย The code hijacked all my other wordpress pages. I can't even use my Thrive Themes landing pages. The fluent community page layout frame just loads everywhere

Artur Abakarov

Bryan William make a new slug for FluentCommunity, for example /portal, and then save the permanent links again in the WordPress settings. And everything will work as it should.

By the way, what didn't you like about FluentComminity straight from the root site?

Bryan William

Artur Abakarovย Do you mean I should switch from using root domain to sitename.com/portal

sitename.com/portal was my initial setup and everything was working fine before I switched to root domain