Viewing 14 posts - 1 through 14 (of 14 total)
  • Question

    #36922
    @frankwarwick

    How can I get the floating toolbar to be the default?

    Answers

    #36926
    @style960

    @frankwarwick Appearance > Customize > WordPress Toolbar > Toolbar Layout.

    #36929
    @frankwarwick

    Hi paul I am referring to default setting not how to change. Current default settings is for the top position, I want to know how to set the default to floating

    #36943

    Alyssa
    Participant
    @alyssa-buddyboss

    @frankwarwick line 91 of buddyboss-inc/buddyboss-customizer/buddyboss-customizer-loader.php

    Change fixed to floating

    UNTESTED

    #37206
    @frankwarwick

    It didn’t work ….

    #37280

    Alyssa
    Participant
    @alyssa-buddyboss

    @frankwarwick I just tested this and it works. This will NOT work for a current site that has this setting set previously. This will only work for a new site without any previous Boss customization settings.

    #37281
    @frankwarwick

    Is there a way to get this to work for an existing site …

    #37333

    Alyssa
    Participant
    @alyssa-buddyboss

    @frankwarwick if you are using MultiSite it should work for new sites. You are unable to set this for existing sites since the current state is already saved, you will need to change it manually for that.

    #37341
    @frankwarwick

    Hi @tjchester, I do have a MultiSite and when I created a new site after making the changes it didn’t work.
    I will again test after clearing all my caches and use a different browser. I can’t see why it will not work.

    Thanks for the follow up on this, always great support on BuddyBoss.

    #37421

    Alyssa
    Participant
    @alyssa-buddyboss

    @frankwarwick one additional edit on line 246 of theme-functions.php from this:
    wp_enqueue_style( 'buddyboss-wp-adminbar-desktop-'.esc_attr( get_theme_mod( 'boss_adminbar_layout', 'fixed' ) ), get_template_directory_uri().'/css/adminbar-desktop-'.esc_attr( get_theme_mod( 'boss_adminbar_layout', 'fixed' ) ).'.css', array( 'dashicons', 'googlefonts' ), '4.1.4', 'all' );
    to this:
    wp_enqueue_style( 'buddyboss-wp-adminbar-desktop-'.esc_attr( get_theme_mod( 'boss_adminbar_layout', 'floating' ) ), get_template_directory_uri().'/css/adminbar-desktop-'.esc_attr( get_theme_mod( 'boss_adminbar_layout', 'floating' ) ).'.css', array( 'dashicons', 'googlefonts' ), '4.1.4', 'all' );

    I confirmed this works for new Multisite sites.

    #37502
    @frankwarwick

    Yep, it works, thanks for the help.

    FYI – I tried to do this in the child theme but it would not work so I now have to keep an eye on this when doing updates … any reason it would not work in a child theme?

    #37532

    Alyssa
    Participant
    @alyssa-buddyboss

    @frankwarwick the way we call theme function files is different than how we call page template files and other normal files that you would want to edit in the child theme. We have some alternatives though, remove the changes to the parent theme files then try adding this to functions.php:

    function buddyboss_secondary_scripts_styles(){
    if ( !is_admin() ) {
    wp_dequeue_style( 'buddyboss-wp-adminbar-desktop-'.esc_attr( get_theme_mod( 'boss_adminbar_layout', 'fixed' ) ), get_template_directory_uri().'/css/adminbar-desktop-'.esc_attr( get_theme_mod( 'boss_adminbar_layout', 'fixed' ) ).'.css', array( 'dashicons', 'googlefonts' ), '4.1.4', 'all' );
    wp_enqueue_style( 'buddyboss-wp-adminbar-desktop-'.esc_attr( get_theme_mod( 'boss_adminbar_layout', 'floating' ) ), get_template_directory_uri().'/css/adminbar-desktop-'.esc_attr( get_theme_mod( 'boss_adminbar_layout', 'floating' ) ).'.css', array( 'dashicons', 'googlefonts' ), '4.1.4', 'all' );
    }
    }
    add_action( 'wp_enqueue_scripts', 'buddyboss_secondary_scripts_styles' );
    #37550
    @frankwarwick

    Nice one @tjchester it worked first time which now leads me to the question of changing the colours for the menus and header background, I can see them in “buddyboss-customizer-loader.php” but changing them has no effect in the child theme or the main BB theme

    #37615
    @vapvarun

    Hi Frank (@frankwarwick), I have checked BuddyBoss theme customizer codes and tested on existing installation and it is working fine. I had also tested on existing multisite on running site plus creating new sub site, customizer options are getting saved in database as displaying the header color changes as well.

    You can pm me with you site url and admin login details i will check on your site.

    Regards
    Varun Dubey

Viewing 14 posts - 1 through 14 (of 14 total)
  • The question ‘Floating Toolbar’ is closed to new replies.