Skip to main content

Feature Request, could we include a CSS editor within the Settings Menu? An easier alternative from going into server files to make tweaks.

Mat β€Ž

Of course it would be better to embed CSS straight from fCommunity UI rahter than adding code snippet.

You can add custom CSS to the portal by using the following code

add_action('fluent_community/portal_head', function() {
    ?>
    <style>
        /* Add your custom CSS here */
    </style>
    <?php
});

If you want to add your own CSS file, you can use the following code

add_action('fluent_community/portal_head', function() {
    ?>
    <link rel="stylesheet" href="url_of_your_css_file" media="all">
    <?php
});

Ref: https://github.com/WPManageNinja/fluent-community-docs/blob/master/code-snippets.md#custom_css

Ceez Vision

Where are you pasting this CSS code exactly?

Mat β€Ž

Curtis Marshall, if you have any code snippet plugin: Fluent Code Snippets - you could also add it to the functions.php file (but it is not recommended)

https://www.youtube.com/watch?v=-bQPZ23LSdQ

Ceez Vision

Wow, I never even knew Fluent had a snippet tool. Worked perfectly!

Mat β€Ž

Curtis Marshall, that way you dont mess up with functions.php which might be a bad practise. Have fun as always and keep the positive energy!

Mat β€Ž

Curtis Marshall, I am not sure if this is your case but don't forget that you can also redirect your fCommunity members to /portal once they are logged in since you have some redirection rules in the Fluent Snippet plugins. So all subscribers can be redirected to /portal but WP Admin can stay in the WP-Admin area etc.