SocialEngine Tutorial – Creating your own custom theme and styles with css

Carrying on from the initial post about customisation I thought I’d add a quick overview of how on earth you go about customising your SocialEngine site with your own custom css.

One thing i would suggest about editing the SocialEngine platform is that if you can, do it through the admin interface as much as possible. The reason I say this is because as the engine is designed, quite rightly, to function in a multitude of different styles and formations it is intrinsically linked to a database backend which keeps a note of themes available and modules/widget positions etc.

So first off head to the theme editor;
Log into your network as an admin > Admin > Layout > Theme Editor

I would suggest that you hit ‘Clone’ and clone an existing theme which will bring you to the next screen;

Now you’ll be taken back to the theme editor, MAKE SURE YOU ACTIVATE YOUR THEME! Otherwise you’ll be editing the original theme. To activate just hit ‘Activate Theme’ which will then allow you to edit your theme.

Now themes are made up of two items; constant.css and theme.css.

Constants deals with all the constants which are generic for the site for example, site width will be specified in there and body background etc. This is where you’re most likely to edit items which will effect most of the site.

Inside the theme.css you’ll be able to edit other stuff like menu bars and headings etc but you will also be able to specify your own styles for your own modules or widgets that you create.

After you’ve finished editing your theme hit the save button and you’re ready to rock and roll to see what you’ve destroyed on the site 🙂

The easiest way to know what styles to edit is to use some browser debugging such as firebug (for firefox) or chrome developer tools (google chrome). Enjoy!