Guillaume Assire
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] syntax error, unexpected ')'As far as I can tell it doesn’t come from my plugin ?
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Margin OffsetSorry for the rather long delay in following up. With the development version, available from here, I’ve reverted to what was implemented in v29. I would appreciate if you could give it a try just to confirm.
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Social Links For Mobilejust to confirm, this is now implemented in the development version, available from here, in case you’d like to give it a try. Feedback more than welcome !
I’m now working on the same thing for custom menus… No release date planned yet but we’re getting closer 🙂
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Social Links For MobileBy default WordPress hides most of the items from the Toolbar in responsive mode, reason being there might not be enough room for them to display correctly.
You could probably force their display with CSS, I’ investigating if this can be added as an option.
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Searchbar input field stylingI will check if this line-height is actually needed for recent versions of WordPress. It might be obsolete now. I see differences between browsers in how this CSS is interpreted, sorry for that. I scarcely use Chrome and never use IE 🙂
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Searchbar input field stylingIt’s added to the source code of the page, generated from your settings. It used to be dumped a dedicated CSS file, but I had issues and thought I could do like many other plugins and themes do.
This said, I understand you’ve chosen 48px height for the Toolbar. If I apply this to a test site, I see it displays correctly with Firefox but not with Chrome nor IE… I’ll check if this line-height is actually needed, as I can’t remember where it comes from.
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Site logo in top leftYou could try using an image file maybe? FWIW this thread is related to what you are trying to do:
https://wordpress.org/support/topic/add-site-logo-and-alignForum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Woocommerce CartSorry for the delay in responding. No need for a hook in my plugin, I would use the WordPress add_node function. Something like this adds “0 items ( $0 )” to the right side of the Toolbar:
function wpwc_cart( $wp_admin_bar ) { if ( !is_user_logged_in() ) return; $cart_currency = "$"; $cart_qty = "0"; $cart_amount = "0"; $cart_url = site_url(); if ( !empty( $cart_url ) ) { $cart_label = $cart_qty.' items ( '.$cart_currency.$cart_amount.' ) '; $cart = '<span class="ab-icon"></span><span class="ab-label">'.$cart_label.'</span>'; $args = array( 'id' => 'wpwc-cart', 'parent' => 'top-secondary', 'title' => $cart, 'href' => $cart_url, 'meta' => array( 'title' => $cart_label, 'class' => 'wpwc-cart' ) ); $wp_admin_bar->add_node( $args ); } } add_action( 'admin_bar_menu', 'wpwc_cart', 90 );And the corresponding CSS, which adds a nice icon:
#wpadminbar li.wpwc-cart > .ab-item > .ab-icon:before { font-family: dashicons !important; content: "\f174"; }@jeremiah, would you add this to your own plugin? I would be more than happy to do so in my own plugin, but I’m not using WooCommerce, so I’m unable to complete my code above…
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Woocommerce CartWPS Toolbar uses the Toolbar class as documented in the Codex. I’ve already been asked how Toolbar items content could be set dynamically like any other NavMenu items, lower in the page. Unfortunately in WordPress these are two different objects, in particular, hooks provided by WordPress are different.
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Make Long Custom Menu ScrollYou raise a very good point. I’m afraid that’s a WordPress issue, although I’ll happily dig into it. For now the only advice I can give is to rework your menu with submenus, so that all its items show in all decent sreen resolutions.
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Margin OffsetSorry for the rather long delay in responding, I’ve been busy with other matters.
Simply put – was it working with v29 of the plugin ?
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Top bar disappearsWould there be an option in UserPro to remove the Toolbar ? If you deactivate WPS Toolbar while leaving UserPro, does it show ?
Sorry I cannot go farther in investigation as your site appears hidden behind a static page that says “Em Construção” :/
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Social links not working properlyForum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Social links not working properlyThese two menus (Login and Profile) are defined as WP NavMenus, upon plugin activation, and won’t be updated automatically afterwards. They are also not removed with the plugin, since they could be used elsewhere in the site.
The WP Symposium Profile page should be defined before WPS Toolbar is actovated, otherwise the Profile page won’t be found and WP Symposium will return a URL with “INVALID PLUGIN URL” in it. Is this what you refer to ?
If this is the case, once the WPS Profile page is set, you should remove the menu (from the dashboard NavMenus page), then go to WP Symposium > Toolbar > WP Symposium tab, check the checkbox that triggers the re-generation of missing menus, and it’ll be created again, with the correct URL.
Note that if this menu doesn’t suit you, you can edit it from the WP NavMenus page, add / remove menu items. Re-generating these two menus should not affect existing menus, only create missing ones.
Let me know if there’s anything else.
Forum: Plugins
In reply to: [Plugin Name: WP Symposium Toolbar] Margin OffsetYou may have commented out the call to add_theme_support already, as I don’t see its CSS in the source code of your test site. Otherwise you could also try to add to your functions.php:
add_theme_support( 'admin-bar', array( 'callback' => '__return_false' ) );I thought it would be neat to use this WP function but am realizing it may conflict with some themes. Let’s spend one night or two on this and see what the best option is.