BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Floating Toolbar
Tagged: floating toolbar
- This topic has 13 replies, 4 contibutors, and was last updated 9 years, 8 months ago by Anonymous.
Question
March 6, 2015 at 11:34 pm #36922@frankwarwickHow can I get the floating toolbar to be the default?
Answers
March 7, 2015 at 3:36 am #36926@style960@frankwarwick Appearance > Customize > WordPress Toolbar > Toolbar Layout.
March 7, 2015 at 6:31 am #36929@frankwarwickHi 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
March 7, 2015 at 10:56 am #36943@alyssa-buddyboss
AlyssaParticipant@frankwarwick line 91 of buddyboss-inc/buddyboss-customizer/buddyboss-customizer-loader.php
Change
fixed
tofloating
UNTESTED
March 12, 2015 at 7:00 pm #37206@frankwarwickIt didn’t work ….
March 13, 2015 at 9:36 pm #37280@alyssa-buddyboss
AlyssaParticipant@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.
March 13, 2015 at 9:38 pm #37281@frankwarwickIs there a way to get this to work for an existing site …
March 14, 2015 at 3:27 pm #37333@alyssa-buddyboss
AlyssaParticipant@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.
March 14, 2015 at 4:39 pm #37341@frankwarwickHi @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.
March 16, 2015 at 3:24 pm #37421@alyssa-buddyboss
AlyssaParticipant@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.
March 18, 2015 at 1:50 am #37502@frankwarwickYep, 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?
March 18, 2015 at 4:05 pm #37532@alyssa-buddyboss
AlyssaParticipant@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' );
March 19, 2015 at 1:39 am #37550@frankwarwickNice 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
March 20, 2015 at 2:25 pm #37615@
AnonymousHi 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
- The question ‘Floating Toolbar’ is closed to new replies.