Adding Superscript Button

Posted in: Newspaper
Post count: 38

I want to get a superscript button for my blog post editor. Following the directions of a random website, I pasted the following php code to the top of my Newspaper “functions” file:

functionadd_more_buttons($buttons){
$buttons[]=’hr’;
$buttons[]=’del’;
$buttons[]=’sub’;
$buttons[]=’sup’;
$buttons[]=’fontselect’;
$buttons[]=’fontsizeselect’;
$buttons[]=’cleanup’;
$buttons[]=’styleselect’;
return$buttons;
}
add_filter(“mce_buttons_3″,”add_more_buttons”);

It crashed my entire website. I couldn’t even log back in; I needed to go to cPanel to delete the code I added.

I figure I should ask the pros: how do I add a superscript button? (I use superscript all the time and it’s a pain to add it via html every time.)

Post count: 22421

Hello,

Unfortunately we have not tested this so we cannot provide any insight into how you should insert the code. The code provider is the one that has to provide the implementation method required.
You should follow the implementation method from the code author, not some random website 🙂
The code could not be complete.

Try to find the source of the code as the code author is the person who can provide a specific answer of what to do or not to do .

Thank you!

Post count: 38

Ok thanks Bogdan!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.