While on php 8.2+ the following method is deprecated and gives warnings:
PHP Deprecated: Creation of dynamic property Storefront_Footer_Bar::$plugin_url is deprecated in /var/www/***/web/wp-content/plugins/storefront-footer-bar/storefront-footer-bar.php on line 89
Deprecated: Creation of dynamic property Storefront_Footer_Bar::$plugin_url is deprecated in /var/www/***/web/wp-content/plugins/storefront-footer-bar/storefront-footer-bar.php on line 89
PHP Deprecated: Creation of dynamic property Storefront_Footer_Bar::$plugin_path is deprecated in /var/www/***/web/wp-content/plugins/storefront-footer-bar/storefront-footer-bar.php on line 90
Deprecated: Creation of dynamic property Storefront_Footer_Bar::$plugin_path is deprecated in /var/www/***/web/wp-content/plugins/storefront-footer-bar/storefront-footer-bar.php on line 90
Refactoring the code with this addition will fix the warning
? ? public $admin;
? ? public $plugin_url;
? ? public function get_plugin_url() {
? ? ? ? if (self::$plugin_url) {
? ? ? ? return self::$plugin_url;
? ? ? ? }
? ? ? ? self::$plugin_url = plugin_dir_url( FILE );
? ? ? ? return untrailingslashit(self::$plugin_url);
? ? }
? ? public $plugin_path;
? ? public function get_plugin_path() {
? ? ? ? if (self::$plugin_path) {
? ? ? ? return self::$plugin_path;
? ? ? ? }
? ? ? ? self::$plugin_path = plugin_dir_path( FILE );
? ? ? ? return untrailingslashit(self::$plugin_path);
? ? }
Please refer https://www.ads-software.com/support/topic/creation-of-dynamic-property-storefront_top_barplugin_url-is-deprecated/ which is the same issue as this and it’s been fixed with this approach.
Hope this gets fixed, thanks!
]]>Hi, My Storefront Mobile footer has a black background and a charcoal icon which doesn’t show up well at all. I’d like to change the icon colour to white, but am struggling to find the correct code.
Thanks in advance.
]]>Are you thinking of updating this plugin to make sure it works with the new block based widgets from the newest WordPress 5.8?
I was using the Storefront MegaMenus and those were working fine until I had to go in a make an edit, it seems it is not fully compatible with the new block based widgets and I had to deactivate it. Now, I’m worry to try anything with this plugin and having issues with it since it hasn’t been tested with the newest WordPress 5.8
Footer bar working well but there’s just too few options when I want to choose between the widgets. For example I couldn’t find a widget for contacts which is something that is commonly needed.
Is there a way of adding custom widgets to the list?
]]>Hi,
Is there any way to show this widget bar only on home page?
]]>Installed this but nothing appeared in the footer.
]]>.storefront-handheld-footer-bar a:not(.button),
I just realised the icon for handheld footer bar missing. It happened right after I update my storefront themes to the latest one..
appreceiate if anybody know how to fix this problem
Thks
]]>I notice this question has been asked, but the answer is no longer visible. I would like to reduce the height of the bar – can you provide css code for that? Thank you!
]]>This is plugin is getting flagged as abandoned by Wordfence.
]]>When no background is select in the customizer any website loads twice due to the inline css background url:””.
I have removed this part of the code and website no longer loads twice. This is a common error, please check:
https://wordpress.stackexchange.com/questions/165803/website-loads-twice-unnecessarily
https://stackoverflow.com/questions/9783445/why-could-my-website-be-loading-twice
https://github.com/woocommerce/storefront/issues/394
I has found a conflict with storefront-sticky-add-to-cart plugin. When added a item to cart it is added 2 times (immediately or when switching to another page).
This not happen if comment the line
wp_add_inline_style( ‘sfb-styles’, $sfb_style );
in storefront-footer-bar.php or if a background image is used.
WordPress v4.9.2, WooCommerce v3.2.6, Storefront Sticky Add to Cart v1.1.8
]]>Hi, I’ve downloadid it, and it shows up in the customizer menu, but the footer doesn’t show up on your site.
What can I do?
Thanks
]]>I just started using the storefront footer bar and its beautiful. I will like to reduce the height and width of the bar to be same width with the menu navigation bar.
I will appreciate a css code please.
Thank you.
Hi, I need to remove the footer bar from the checkout page. Specifically this action whicih is added from the sfb_setup() method.
add_action( 'storefront_before_footer', array( $this, 'sfb_footer_bar' ), 10 );
Tried this but no luck yet:
add_action( 'wp', 'rm_footer_bar_from_checkout' );
function rm_footer_bar_from_checkout() {
remove_action( 'storefront_before_footer', array( 'Storefront_Footer_Bar', 'sfb_footer_bar' ), 99 );
}
]]>
Hi!
When I add widgets to the footer bar, they stack on top of each other instead of forming 3 columns next to each other. What am I doing wrong?
]]>Hi,
I am enjoying the plugin, but am having a small issue with display of the plugin on mobile devices. For some reason, the background color is different on mobile devices than it is on desktop / larger screen version.
My site is dab-test.com.
Any ideas? It’s possible that I messed something up with some custom CSS, but if so, I can’t seem to find it.
Thanks, Morgan
]]>I’m using my footer widgets (1,2,3,4) to place adverts and i would like a custom menu below the adverts. I thought by installing Storefront Footer Bar i could do this but the widget area is located above the Footer widget area. Is there any way of changing the order of the widgets areas?
]]>The footer bar just didn’t show up on the Storefront page for me despite the functions being there in the customiser menu. I’m assuming its just not compatible with the latest wordpress is that correct?
]]>I know how to add the text widget, but can someone please explain how to add the button and link as shown in the screenshot.
Thanks