Jump to content
Sign in to follow this  
suerama

I'm trying to add some php code to create superscript

Recommended Posts

suerama

May I please ask you how to insert this php code into your theme? I found this online but don't know how to implement this in my Platform Pro base. Adding this PHP snippet to the functions.php of your wordpress template will add subscript and superscript buttons to the wordpress editor. PHP view sourceprint? 1 function enable_more_buttons($buttons) { 2 $buttons[] = 'sub'; 3 $buttons[] = 'sup'; 4 return $buttons; 5 } 6 add_filter("mce_buttons_3", "enable_more_buttons"); Thanks!

Share this post


Link to post
Share on other sites
Rob
You need to create a hook for it in functions.php. There's more on creating hooks here: http://www.pagelines.com/docs/base-child-theme

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×