So I've built a post system that is pushed into an image grid. When the user clicks on one of the images, a lightbox opens and displays the post content along a feature image via AJAX. Like this: https://code.org/learn
I'm able to get the the post content and the image. However, I would like to be able to pre-stylize them. For example, to be able to push the title in one CSS style, the Categories in other and the content in other to achieve a more designed finish. How do I go about doing this? I'm just realizing that parsing through the post would be out of my scope, and be rather stupid since it would involve a character detection system. But I would like to achieve a well designed solution.
I've built my website on Xtheme and essential grid, the lightbox is the default essential grid one which is fancybox.
Any help is appreciated.