Skip to:

Custom Nav Styling Not Working After Adding Theme Support for BP

  • paddy33


    Thanks to @djpaul and @r-a-y, i got my custom BuddyPress templates to load by adding theme support from this post.

    But now that the templates are loading properly, the BuddyPress nav and subnav bar (which were looking fine before) has lost its custom styling (after adding theme support for BuddyPress). As a long shot, I tried adding wp_dequeue_style( 'buddypress' ), and then wp_enqueue_style( 'buddypress' ) to the same function but it didn’t work.

    function my_theme_setup() {
    	add_theme_support( 'buddypress' );
    	// wp_enqueue_style( 'buddypress' ); // this didn't work to solve the nav bar styling issue
    	// wp_dequeue_style( 'buddypress' ); // neither did this

    Would greatly appreciate any pointers on how to get the child theme’s custom styling back. Thanks.

    WordPress 4.4.2
    BuddyPress 2.1.2

Viewing 1 replies (of 1 total)

  • paddy33


    I’ve setup 2 copies of the site locally to do a Before & After comparison. The attached image is a side by side comparison of Chrome’s Inspector when a link in the navbar is selected.

    BEFORE – BP Version 1.7.2 (Everything looks fine, but BP needs to be updated)

    AFTER – BP Version 2.1.2 (Upon updating to this version, custom templates are not showing. After adding theme support for BP to functions file, custom templates load properly but the custom styling for BuddyPress navbar is lost).

    Spent quite some time trying to figure this out but can’t get to the bottom of it. Hopefully, an experienced set of eyes can spot the issue.

    Thanks for your help.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar