Mobile footer menu suggestions
Hello Shahjahan Jewel,
We already have spaces on the footer menu, why not add course to it as well.
Currently there are 4 tabs added the 5th one as courses is not a bad idea.
Also including courses tab in the profile menu is not a bad idea as well.
Please look into my suggestions
Adding courses to the mobile menu is a good idea. You can do it now using the following code.
add_filter('fluent_community/mobile_menu', function($mobileMenuItems, $xprofile, $context) {
$mobileMenuItems[] = [
'name' => 'Courses',
'permalink' => \FluentCommunity\App\Services\Helper::baseUrl('courses'),
'icon_svg' => '<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M10.734 5.84746L14.7114 6.9072M9.88139 9.01146L11.8701 9.54132M9.98031 14.9723L10.7758 15.1843C13.0258 15.7838 14.1508 16.0835 15.037 15.5747C15.9233 15.0659 16.2247 13.9473 16.8276 11.71L17.6802 8.54599C18.2831 6.3087 18.5845 5.19006 18.0728 4.30879C17.5611 3.42752 16.4362 3.12778 14.1862 2.52831L13.3907 2.31636C11.1407 1.71688 10.0157 1.41714 9.12948 1.92594C8.24322 2.43474 7.94178 3.55338 7.3389 5.79067L6.4863 8.95466C5.88342 11.1919 5.58198 12.3106 6.09367 13.1919C6.60536 14.0731 7.73034 14.3729 9.98031 14.9723Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.99996 17.4559L9.20634 17.672C6.96165 18.2832 5.83931 18.5889 4.95512 18.0701C4.07093 17.5513 3.7702 16.4107 3.16874 14.1295L2.31814 10.9035C1.71668 8.62232 1.41595 7.48174 1.92643 6.58318C2.36802 5.80591 3.33329 5.83421 4.58329 5.83411" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>'
];
return $mobileMenuItems;
}, 10, 3);
It could be added to the profile menu by going to Settings->Menu Settings and add it in the Profile Dropdown Items section. If you want it to just show 'My Courses', use a URL like this: /portalslugifapplicable/courses?type=enrolled
