Templating

Permalink Browser Info Environment
Hi,

What the best way to go about templating this block? I've seen you have your own options within the css directory. I have both adding my own folder here with copied files, and via the usual way of templating C5 blocks via adding a template to root > blocks > whale_nivo_slider >templates directory. I haven't been successful with either.

Thank you.

Type: Discussion
Status: New
sarah3585
View Replies:
shahroq replied on at Permalink Reply
shahroq
hi
for adding new theme (template) to block, follow these steps:
suppose you want to add a theme name 'red'
1- copy/paste one of the folders inside css/themes and rename folder and css file inside it to 'red'.
2- in the css file, rename all the parent classes to new theme name
3- [not necessary for 1.1+] at the block main controller (whale_nivo_slider\blocks\whale_nivo_slider\controller.php), line 23, there is this variable name $themes, contains all the available themes titles. add your new theme title to this array:
public $themes = array('default','dark','light','bar','red');

and the rest of it, it's pretty obvious...now you can start changing new theme css...

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.