CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Different Theme for Different Events
Pages: [1]

Author Topic: Different Theme for Different Events  (Read 429 times)

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Different Theme for Different Events
October 10, 2013, 01:56:43 pm
Hi Civians,

I have a client that is a national umbrella group for several organizations. The local organizations are independent. Recently the national organization has offered the local groups to share their CiviCRM installation.

Two of the groups have taken up the offer and are using Civi for fundraising events (each easily connected to their own PayPal accounts since Civi allows for multiple PayPal accounts to be configured... awesome!)..

These local groups have their own branding and want the event pages to look like they were on their own web site.

This is what I did:

1.I created two additional themes on the site to mimic each of the two orgs web sites.
2. I used The Drupal contrib module: ThemeKey. I set the query string selector with Civi's URL query strings to tell ThemeKey which theme to use.

That worked great for the info and registration pages, but not for the confirmation and thank you pages. Those pages don't have helpful query strings.

My solution was to display no branding/sidebars/menu. I plan to put that no branding "theme" into a modal to make it seem less weird that the site's header menu and sidebars disappeared. I'm implemented that with a conditional I inserted into the page.tpl.php of the site's default theme.

Is there a better way to do this?

Thank you.

Shai Gluskin
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Different Theme for Different Events
October 14, 2013, 04:48:13 am
Quote from: Shai on October 10, 2013, 01:56:43 pm
Is there a better way to do this?

Yes, you can put a class into your BODY tag when the user is on a CiviCRM Event page and then use CSS to hide sidebars. That's a much cleaner solution.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Different Theme for Different Events

This forum was archived on 2017-11-26.