WordPress show_admin_bar disabled and remove icons missing
Support › MB Frontend Submission › WordPress show_admin_bar disabled and remove icons missing
- This topic has 9 replies, 2 voices, and was last updated 1 year, 1 month ago by
Peter.
-
AuthorPosts
-
March 20, 2024 at 8:45 PM #44933
Nicholas Cox
ParticipantHi
When I use the wordpress filter to disable the front end admin bar
add_filter('show_admin_bar', '__return_false');
the icons for the clone field e.g. dashicons-dismiss in metabox form is not loaded as the admin bar is diabled. Is there a way to have a fallback icon for metabox forms with admin bar disabled?
<a href="#" class="rwmb-button remove-clone"><span class="dashicons dashicons-dismiss"></span></a>
thanks
Nick
March 20, 2024 at 8:47 PM #44934Nicholas Cox
Participantalso just realised after posting that if the forms are loaded when the user is not signed in then there are no delete icons next to the clone fields.
March 21, 2024 at 10:05 PM #44958Peter
ModeratorHello Nick,
Using the code to remove the admin bar, I don't see the remove clone icon is disabled. It is still there, even checked with a visitor (non-logged-in user). It is only displayed when there are at least two clone fields. Screenshot https://imgur.com/YxSg8VV
March 22, 2024 at 5:02 AM #44962Nicholas Cox
ParticipantOk I this is a screenshot of a test form with me manually adding and removing cloned groups of a field and im not signed into wordpress https://prnt.sc/yM1FvObQWNvx
using
echo do_shortcode('[mb_frontend_form id="dc-product-basket" submit_button="Update Basket" ajax="true"]');
March 22, 2024 at 11:06 PM #44969Peter
ModeratorIf you use the cloneable group, there will be a text "Remove" when hovering over the group title instead of the remove icon, screenshot https://imgur.com/9RLfXkS
March 22, 2024 at 11:22 PM #44970Nicholas Cox
Participantyes i understand but you can see from my screenshot https://imgur.com/YxSg8VV that there is a remove clone icon button (it works when i click on it) there is just no icon image being loaded? or are you saying this is deliberately been hidden as its a group clone? but what happens when i specify no title (as per the screenshot) then what happens to the label?
March 22, 2024 at 11:22 PM #44971Nicholas Cox
Participantooops wrong link, this is the screenshot https://prnt.sc/yM1FvObQWNvx
March 24, 2024 at 5:09 PM #44984Peter
ModeratorHello,
are you saying this is deliberately been hidden as its a group clone?
Yes, with the cloneable group, the icon won't display. Instead, the text "Remove" will display when you hover over the group title. Please share a screenshot or a screen record when you hover over the title.
March 25, 2024 at 5:48 PM #44998Nicholas Cox
Participantyes with cloneable group you can see from the screenshot that i do not see the text 'remove' and also the clone button is active (no icon) but you can still hover over it and click it. I was originally not aware when posting this query that the icon was hidden for cloned groups.
So to confirm i dont have either the icon or 'remove' text?
thanks
March 25, 2024 at 11:08 PM #45007Peter
ModeratorIf you don't see the "Remove" text in the cloneable group title, please try to deactivate all plugins except Meta Box, MB extension plugins and switch to a standard theme of WordPress then check the issue again.
-
AuthorPosts
- You must be logged in to reply to this topic.