There is one WordPress function that was launched with model 2.5 that at all times made me curious: the picture alignment function of the “Add media” editor. Why? Because it by no means labored!
I knew that I was most likely doing one thing fallacious, however since I didn’t have time to seek out it out, I simply saved selecting “none” as the alignment, after which I would manually insert the proper, left or middle alignment attribute on the picture tag.
Then final week when I was submitting one in all my themes for the WordPress Themes Directory I received a message saying that since model 2.5 WordPress themes had been required to have the following code on their stylesheet:img.centered {
show: block;
margin-left: auto;
margin-right: auto;
}
img.alignright {
padding: 4px;
margin: 0 0 2px 7px;
show: inline;
}
img.alignleft {
padding: 4px;
margin: 0 7px 2px 0;
show: inline;
}
.alignright {
float: proper;
}
.alignleft {
float: left;
}
Duh! That is why the alignment function was not engaged on my blogs, I by no means added that code! Now in case you confronted this drawback in the previous, now you know the way to resolve it.
About Daniel
Daniel Scocco is a programmer and entrepreneur positioned in São Paulo, Brazil. His first firm, Online Profits, builds and manages web sites in numerous niches. His second firm, Kubic, makes a speciality of growing cell apps for the iOS and Android platforms.