Jump to content

Resolved - how to add custom box on the front page


nivar

Recommended Posts

  • 2 weeks later...

Probably lots of different ways to do it but this is how I do it:

 

1. Find an existing box that is near to what you want in the tempates directory.

2. Copy it and rename it to whatever you want. box.mynewbox.php for example.

3. Edit main.php for the skin and put {include file='templates/box/mynewbox.php'} where you want the box to appear making sure it's within the sidebar class div wrapper.

 

After that it's just a matter of editing the box.mynewbox.php to make it appear as you want creating new classes within common.css as required.

Link to comment
Share on other sites

Probably lots of different ways to do it but this is how I do it:

 

1. Find an existing box that is near to what you want in the tempates directory.

2. Copy it and rename it to whatever you want. box.mynewbox.php for example.

3. Edit main.php for the skin and put {include file='templates/box/mynewbox.php'} where you want the box to appear making sure it's within the sidebar class div wrapper.

 

After that it's just a matter of editing the box.mynewbox.php to make it appear as you want creating new classes within common.css as required.

 

thanks Kraken, it works perfectly :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...