Best way to integrate CoursePress Pro with Studio theme?

I'm trying to determine the best way to integrate the base frontend CoursePress Pro menus with the Studio theme. By default, it tries to add them to the navigation area up top, with each option on it's own line, expanding the area in an unwieldy way.

Is there a way to add this to the native "Our Community" tab menu? It appears to draw on the BuddyPress options (Activity, Members, Groups, Forums) without providing an opportunity to add anything further.

Am I missing something, or does this require modding a template file and adding a hook to bring this in?

Thanks so very much for any insight someone may be able to provide to help steer me in the right direction.

Gratefully,
Susan.

  • Vinod Dalvi

    Hi Susan,

    I hope you are well today and thank you for your question.

    I'm trying to determine the best way to integrate the base frontend CoursePress Pro menus with the Studio theme. By default, it tries to add them to the navigation area up top, with each option on it's own line, expanding the area in an unwieldy way.

    If you don't want to add automatically in navigation menu then you can disable it by unchekcing the "Display menu items" option in the CoursePress Pro settings as displayed in the attached screenshot.

    You can add it manually in navigation menus by creating custom link menu item as describe don the following page.

    https://codex.wordpress.org/Appearance_Menus_Screen#Custom_Links

    Is there a way to add this to the native "Our Community" tab menu? It appears to draw on the BuddyPress options (Activity, Members, Groups, Forums) without providing an opportunity to add anything further.

    Am I missing something, or does this require modding a template file and adding a hook to bring this in?

    I have to check it on your site so would you mind if I logged in to your site and did some testing? If this is ok, just grant me temporary admin access to your site by clicking "Grant Access" button in the WPMU DEV Dashboard Settings as described on the following page and reply on this thread after granting it?

    https://premium.wpmudev.org/manuals/wpmu-dev-dashboard-enabling-staff-login/

    Kind Regards,
    Vinod Dalvi

  • Vinod Dalvi

    Hi Susan,

    Thank you for granting the support staff access.

    You can add more items to the "Our Community" tab menu by using the following code in the functions.php file of your child theme or using any of the following plugins.

    http://wordpress.org/plugins/add-actions-and-filters/
    http://wordpress.org/plugins/code-snippets/

    function add_custom_bp_nav_items(){ ?>
    	<li>
    		<a href="<?php echo site_url() ?>/courses/" title="<?php _e( 'Courses', 'studio' ) ?>"><?php _e( 'Courses', 'studio' ) ?></a>
    	</li>
    <?php }
    add_action('bp_nav_items', 'add_custom_bp_nav_items');

    You can add more items to it by creating more li tags in the above code, the same way as the above created item.

    Regards,
    Vinod Dalvi

  • Sue

    Vinod, thank you so very much!

    I use Michael Simpson's "Add Actions and Filters" so it was really easy to pop this in.

    Thank you kindly for not only looking at the problem and my site, but for actually offering the code to make this work. Your team always goes above and beyond. The Premium subscription was the best investment I've ever made. I've never known a group of folks who works as hard to earn their customer's loyalty the way you do.

    Many thanks, Vinod!
    Susan.