Home Page /portal page setup.
Am frustrated that there is no obvious way to set the /portal page as the home page and having accidentally changed the url to this in the WP General Settings i'm now fully locked out of my demo site and it needs me to go into PHP my admin to fix.
Guys, you mentioned you were making this easy in the next fix 11 days ago, can you please please let us know how to do this as Im not happy with the current setup at all. You mention a shortcode in your vid, but there is nothing in the help docs.
Daniel HerreraΒ did you try to save wp-admin > permalinks once you changed the /portal slug?
You can use the custom snippet to access the fCommunity without the /portal slug if needed
Ref: link
Made the same mistake :) Iβve solved this with the redirect plugin. Just made one redirect from β/β to the login Page link. Works for now until it confess with an update
Christian AnderlΒ I am not sure it this code snippet will work but just adding it for crestivity
add_action( 'template_redirect', function() { if ( is_page( '' ) ) { wp_redirect( 'https://domain.com/portal' ); die(); } } );
BTW: wrapping text in the above code looks bed anyway
Christian AnderlΒ I have just checked these steps and it works without any external redirection - see comment below
Thanks guys, I had to change the url in the wpconfig file to be able to get back into admin.
Now that I am, I def want to proper solution. Mat Mat Β, do you put this code in the wpconfig? define('FLUENT_COMMUNITY_PORTAL_SLUG', '');
I'm conscious though of what someone else wrote about doing that and it affecting courses.
https://community.wpmanageninja.com/portal/post/community-without-slug?comment_id=6639
Christian Anderl 's solution for redirect might be the option though.
Daniel HerreraΒ read this on a github repo:
This documentation provides a collection of useful code snippets for developers working with the FluentCommunity Plugin or just customize the portal's default behavior. These snippets can help you customize and extend the functionality of the plugin to meet your specific needs. We recommend to use FluentSnippet plugin to manage these snippets.
If you want to make the portal as your homepage, you can use the following code. Please note that, this will not work if your WordPress installation is in a subdirectory. The WordPress installation should be in the root directory of our domain or sub domain.
define('FLUENT_COMMUNITY_PORTAL_SLUG', '');
This code need to be placed in your wp-config.php file. After add this, make sure you resave the permalink settings to flush the rewrite rules.
Ps. Just check if the wp-admin > static page shouldnt be empty (but I guess it doesnt matter)
I ended up using a Cloudflare Page Rule as seemed the easiest. Her's screenshot for others in case that's your preferred solution.
I hope this gets improved though as well as ability to change the /portal url as it won't let me anymore.
Daniel HerreraΒ I just checked and for me it works when I follow these steps below:
-
Add the define entry to the wp-config file > Save
define('FLUENT_COMMUNITY_PORTAL_SLUG', ''); -
Go to wp-admin > Permalinks > select Post-Name (https://domain.com/sample-post/) > Save Changes
-
In the other already opened browser tab (I need to be logged in before) with Admin user
Settings > General > Login/Signup Form Type >
- Use Custom Login Page > https://domain.com/?fcom_action=auth
- Default Login URL - should be the same as above.
Save Settings
-
*If you want to restore your previous slug (/portal) you need to add this step:
Go to the wp-admin > FluentCommunity item (/wp-admin/admin.php?page=fluent-community) > click Change Community URL > enter your Slug /portal (or any other name)
So there is no need to use any other redirection in my case.
Matt, appreciate your help. I was concerned about using this solution though because I saw in the link you posted at the start that Madis commented he had issues later with the course.
I'm hoping WPNinja team will come up with a better solution though as its currently not an elegent solution and will put non-techy people off.
Daniel HerreraΒ True. All steps could be listed next in the Slug chagnes screen (/wp-admin/admin.php?page=fluent-community) so the Admin is not lost.
I have just tried to go back and forward so I can see if any additional redirection is needed.
If there is something missing just say it loud anytime so the fTeam/Ninjas can fix it. Sooner is better. Cheers!