Hi guys, I've been searching everywhere for a way to do this, but nobody seems to know how, so I thought I'd ask here! Basically, when you add a new image to an article in Wordpress, you can choose from 3 alignment options: left, right and center. I want to be able to add 2 new extra styles, with their own css classes associated. I can't just repurpose the css for the current selectors, as I want these in addition. Does anyone know a good or even hacky way to do this? Thanks!
I'd ask over at the wordpress support forums. If you don't get an answer then it might be a case of going through the source code to find where the list is built and adding a hook - then find where it's actioned and add a hook. Now write a plugin that uses those hooks and submit the hooks to the WordPress folk as a suggestion. I did exactly this (different context) and tried to follow their naming conventions. In the very next version of WordPress the hook was added - same name - and my plugin worked! Nothing extra for me to do, I was very happy You might feel that your requirement is unusual but I'm sure there are others who want it but have just never made a noise. Ask, you might just get it!
Hi When select media file and insert insert post than in wordpress editor there is two button at top 1) visual 2) Text select second text now you see the anchor(<a>) and img tags of your media you can write your custom css in it Thanks Viral