• Hi,
    I’ve gotten the button and everything to work like I want it to, which is great. But now my problem is: when I’ve first pushed the button, I can’t get rid of the stuff again. This might not be the right place to ask for this, so sorry if it’s not.

    What I’m doing in my button is adding this:
    <div class=”infobox infobox–inline”>
    Before the content, and this after:
    </div>

    The style I’m applying is this:
    .infobox–inline:before, .infobox–inline:after { color: rgba(153, 153, 153, 0.7);}
    .infobox–inline:before { content: “[Infobox inline start]”; display: block;}
    .infobox–inline:after { content: “[/Infobox inline end]”; display: block;}

    Is there a way I can remove this from the visual editor again, when it’s once there? (Without having to go to the text editor. ) I’ve tried making a “reset”-button where all the fields are empty, but I guess that’s not the way to do it.

    https://ww.wp.xz.cn/plugins/visual-editor-custom-buttons/

The topic ‘Removing content agian’ is closed to new replies.