Ecommerce Shopify WordPress Discussion

WordPress custom Tinymce drop down that adds a class to header / paragraph that is selected

I need to added a custom drop down on the Tinymce editor that applies a class to the header or paragraph that is selected. I have tried a few examples of this I have found on the web but they do not work and are all pretty old. So the two things I need to happen are adding the custom drop down to the second row of buttons on the Tinymce editor. The second thing it to apply the class that is selected from the drop down to the header or paragraph that is sleeted in the Tinymce editor. This will need be a function in the Wordpress theme function.php file. Any and all help will be greatly appreciated. Thanks I tried this adding custom drop down list in tinymce and https://wordpress.stackexchange.com/questions/192482/add-a-select-a-class-dropdown-in-tinymce but neither worked for me.
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.