abumalick
Forum Replies Created
-
Forum: Reviews
In reply to: [Perfect Images: Regenerate Thumbnails, Image Sizes, WebP & AVIF] don’ t knowI made a mistake, and changed my rating to 3 stars because it is neutral.
Can you delete my review ?I am sorry for inconvenience.
Forum: Plugins
In reply to: [Maintenance] Bug with admin_bar with woocommerce usersThanks for feedback.
I didn’ t change the roles, it is the default ones for woocommerce.Disabling the toolbar for these woocommerce users didn’t change a thing, the toolbar was still displaying.
I fixed this by editing your function:
function mt_admin_bar() {
add_filter(‘show_admin_bar’, ‘__return_false’);
}Forum: Plugins
In reply to: [HTML Widget Titles] bug with quotation marksWithout the bug:
<?php function icon_widget_title( $title ) { //Take the icon classes that is inside brackets and put it in a span tag // Exemple [glyphicon glyphicon-bullhorn]My Title //Or [fa fa-camera-retro]Widget Title $stop = strpos($title, "]"); if ($stop){ $title = '<span class="'.substr($title, 1, $stop-1).'" aria-hidden="true"></span>'.substr($title, $stop+1); } return $title; } add_filter( 'widget_title', 'icon_widget_title' );Base of the script from:
http://jasonbradley.me/bootstrap-icons-in-widget-titles/#comment-270661Forum: Plugins
In reply to: [HTML Widget Titles] bug with quotation marksI made this for my use with glyphicons and font awesome, if someone need it.
<?php function icon_widget_title( $title ) { //HTML tag opening/closing brackets //$title = str_replace( '[', '', $title ); $stop = strpos($title, "]"); if ($stop){ $icon = substr($title, 1, $stop); $title = '<span class="'.substr($title, 1, $stop).'" aria-hidden="true"></span>'.substr($title, $stop+1); } return $title; } add_filter( 'widget_title', 'icon_widget_title' );Forum: Plugins
In reply to: [HTML Widget Titles] bug with quotation marksHere is a script that works :
<?php function icon_widget_title( $title ) { //HTML tag opening/closing brackets $title = str_replace( '[', '', $title ); // [test] $title = str_replace( 'camera-retro]', '<i class="fa fa-camera-retro"></i>', $title ); return $title; } add_filter( 'widget_title', 'icon_widget_title' );You have to add the double quotes in your plugin to make this work.
Forum: Plugins
In reply to: [HTML Widget Titles] bug with quotation marksThe plugin don’t add the quotation mark, it’s wordpress that add it.
The code of this plugin is deadly simple.
I tried too to add to class for this one :
<span class=”glyphicon glyphicon-bullhorn” aria-hidden=”true”></span>But I could do it by writing this :
<span class=glyphicon aria-hidden=true><span class=glyphicon-bullhorn aria-hidden=true></span></span>If you find another turnaround, please share
Forum: Plugins
In reply to: [Simple Share Buttons Adder] RTL admin interfaceThank you very much
Forum: Plugins
In reply to: [Simple Share Buttons Adder] RTL admin interfaceYou can use this for switching admin interface language:
WP Native DashboardPlease note that I wasn’t using this when experuencing the bug.
thanksForum: Plugins
In reply to: [Simple Share Buttons Adder] RTL admin interfaceNo, it is wordpress default translation
Forum: Plugins
In reply to: [Simple Share Buttons Adder] RTL admin interfaceYou mean wordpress developpers ?