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!

 

SocialEngine Tutorial – Creating your own custom homepage

One of the first things you might want to do with SocialEngine is to start customising the hell out of it. What better place to start then with your homepage? I did a bit of googling for the answer to this and in the end I came up with a relatively neat-ish hack for it which requires minimal set up.

First off you’ll need to head into the layout editor –
Log into your network > Admin > Layout > Layout Editor

This page allows you to add widgets from the menu on the right (you can add stuff like login boxes and member counters etc). However it doesn’t really allow you to scrap the whole thing and start with your own layout completely.

If you want to do this then hit ‘edit columns’ and select the option with only a header, content and footer;

Now drag the ‘HTML Block’ from the available blocks (on the right) into your main content area. You can then click ‘edit’ on the html block and paste in your HTML. I’d suggest just creating your markup in another file and once you’re happy with it just paste it in.

If you want to be able to add a login area then drag that in too and then head to the main page in your browser and copy and paste the html of the login area block. This will allow you then to add your own styles to the login form as well as completely customise your own front page.