Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2073

    Hi Kriesi or Whoever gets this!

    I recently purchased this theme and i would like to know if it is possible to have custom sidebar templates. For example, i want one for the blog section, one for the contact section and one for the pages.

    Wondered if it’s possible to copy the sidebar template from twicet for example.

    #36512

    Hey

    This is not supported in Cubit, and unfortunately porting the sidebar code form Twicet is beyond the scope of this support forum. Though it might be the case that someone else has done something similar and can help you so be sure to check back. Thanks for purchasing Cubit.

    Regards,

    Noah

    #36513

    Man, i am not expecting you guys to come up with a whole string of code, but you could at least give me some pointers and i can finish it myself… i am a programmer… i just need some small direction to kickstart it…

    #36514

    You can set a (global) variable at the beginning of the templates – i.e if you’re on the contact page:

    in header.php define:

    global $template;

    and on the template contact page set a value for $template:

    $template = 'contact';

    and in sidebar.php you can use if statements a la if $template == ‘contact {….} else if ……..

    #36515

    Awesome! Thanks!

    #36516

    Glad that I could help you.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Custom Sidebar Templates’ is closed to new replies.