Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Gabor

    (@nextendweb_gabor)

    Hi @denizci88!

    Please open up this file:
    wp-content\plugins\smart-slider-3\library\smartslider\models\forms\settings\default.xml

    And under this code:
    <param type="onoff" name="preview-new-window" label="Open preview in new window" default="0"/>

    Add this one:
    <param type="onoff" name="wp-adminbar" label="Show in WordPress admin bar" default="1"/>

    Then open up this one:
    wp-content\plugins\smart-slider-3\includes\smartslider3.php

    And around line 46. you will find this code:

    if (current_user_can('smartslider_edit')) {
        add_action('admin_bar_menu', 'N2_SMARTSLIDER_3::admin_bar_menu', 81);
    }

    What you should modify to this:

    if (current_user_can('smartslider_edit') && class_exists('N2SmartSliderSettings') && intval(N2SmartSliderSettings::get('wp-adminbar', 1))) {
        add_action('admin_bar_menu', 'N2_SMARTSLIDER_3::admin_bar_menu', 81);
    }

    After these changes at the Global settings, in the General settings:
    https://doc.smartslider3.com/article/213-general-settings
    you will find an on/off button for “Show in WordPress admin bar”, and you can turn it off in there, to not to show in your admin bar. We will put this into the next versions too!

    Plugin Author Nextendweb

    (@nextendweb)

    Hi @denizci88!
    Good news, this option is available in our latest release ??

    Thread Starter denizci88

    (@denizci88)

    Hello,

    First of all sorry for my late reply, and thank you for your interest. ??

    I tested it right now. It is working perfectly. ??

    Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing from Admin Tool Bar’ is closed to new replies.