Support » Plugin: Enlighter - Customizable Syntax Highlighter » How to remove the enlighterjs button?

  • Resolved Audiomonk

    (@audiomonk)


    Absolutely love this plugin,and it fits the need I have on my site perfectly. I needed a copy to clipboard option so I installed the v4 beta. Is there a way to hide or remove the enlighterjs button that links to their website?

    My users find it confusing, and they only need to paste code.

    For clarity, I mean this button..

    https://prnt.sc/qlsvf1

    • This topic was modified 1 year, 4 months ago by Audiomonk.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Andi Dittrich

    (@andi-dittrich)

    you can technically remove the button via css (see https://github.com/EnlighterJS/docs/blob/master/Tweaks.md#hide-toolbar-buttons) but it would be nice to keep it on your site that other users who like the plugin have a change to take a look on it!

    Thread Starter Audiomonk

    (@audiomonk)

    The ones who’ve liked it, have asked me about it already and I’ve given them links previously. Plus people ask “what is Enlighter” when they add the code. For the others, they just try all buttons and end up on the enlighter page and wonder what is going on.

    Thank you for your response.

    Thread Starter Audiomonk

    (@audiomonk)

    Couldn’t get the CSS to work for some reason, I tried placing it in the custom css area of the customiser with a display none for the button. Not sure what I’m doing wrong.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    please provide an url to your website including a post/page with enlighter sourcecode as well as the applied css

    Thread Starter Audiomonk

    (@audiomonk)

    https://www.jwfsanctuary.club/flames/double-pre_recip-bs-base/

    I only have the base css installed, the customise page – extra css didn’t like the before after css.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    you’re custom styles should be added after the EnlighterJS stylesheet – therefore it won’t work.

    simple solution: add display: none !important as css rule

    better solution: add your custom style at the end of wp_head

    Thread Starter Audiomonk

    (@audiomonk)

    Thanks Andi, apologies for the delay.

    Hi, I am also looking to get the copy to clipboard feature.

    How do I get access to the V4 beta?

    • This reply was modified 1 year, 1 month ago by auddin.
    Plugin Author Andi Dittrich

    (@andi-dittrich)

    companymgmt

    (@companymgmt)

    Howdy and thanks for creating a great plugin in v4. I have a problem and think I could offer you a different solution. In the WordPress plugin, the “E” enlighter link button truly confuses people. None of the buttons have tooltips, so when people are trying to manipulate the code in the plugin (like copying the code) they click on your “E” backlink and then when sent to your website fear there is a malicious hijack when they are sent to another URL. I want you to get attribution for your work. I also don’t have a problem with you backlinking to your website, but I wish you would do it without using a nonlabeled mystery button.

    In my editor when authoring with the plugin, it says below in small print EnlighterJS Syntax Highlighter. Why don’t you add that text at the bottom of the plugin frame so people can click on it there and understand why they are getting redirected – (because they want to be…)

    I have seen the documentation above on the .css edit that would hide the “E” button, but have no idea what .css file and where it needs to be added in. I don’t really want to have you lose your attribution and link for the plugin, but I really need to not have to field questions about why people are getting sent to another site when they inadvertently click on the “E” button. I don’t want you to lose your link; that’s why I am suggesting a different approach to offer the same thing.

    Any suggestions would be appreciated.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    i didn’t want to add some kind of “offensive” notice to EnlighterJS – using the button toolbars as before was (imho) a good solution to keep it decent.

    on the other hand i fully understand that the button might confuse users – the toolips will be added soon.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    i’ve also added an option to the upcoming v4.1 release to hide the toolbar button via settings page

    companymgmt

    (@companymgmt)

    Greetings and thank you so much for the reply. There isn’t a very good solution to the problem. For creating such a wonderful plugin, you should get attribution. I guess having tens of thousands of 5 star reviews might bring people to your work. Other than an “offensive” notice is all I can come up with. If you add the tool-tips I think that will allow users to know to click on that to find your work and not fear a browser hijack/exploit…

    If you allow people to remove the button in the interface, you should add a backlink into your code so perhaps you will get ranked higher and higher on the WP plugin site.

    At any rate many thanks for all you have done to make this plugin the best in the market!

    I will be writing up your plugin on my site’s plugin post and give it high praise.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    v4.1 is out including an additional option to hide the button – additionally “title” based tooltips has been added (real tooltips will follow soon)

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How to remove the enlighterjs button?’ is closed to new replies.