i am trying to create a custom theme for RSVP

i have copied over all the default theme files into sites/default/files/rsvp/themes/custom-theme, modified default.css and rsvp-invitation.tpl.php. when i went back to the event invitation, i was able to select "custom-theme" and the corresponding stylesheet, but the template did not seem to be changing/updating (including after flushing caches). i noticed that the correct CSS file was being loaded, but the changes i made to the .tpl.php file are not reflected. any help is very much appreciated. thanks!

also, as a side note, at first i had renamed the stylesheet to custom-theme.css, was able to select that option, but it did not seem to load. when i changed it back to default.css (still within the custom-theme folder) it seems to work fine

Comments

mobilemelody’s picture

Category: support » bug
Priority: Minor » Normal

A year later, I ran into this problem again, and after digging a bit deeper, I may have found the issue. (Also, please bear with me, as I am pretty new at this and don't have much programming experience!)

In rsvp.module (Line 58-62) the path of the invite template seems to be fixed, and same with the other three tpl.php files. Perhaps this needs to be a variable?

'rsvp_invitation' => array(
      'theme paths' => array(file_directory_path()),
      'template' => 'themes/default/rsvp-invitation',
      'arguments' => array('connector' => NULL, 'rsvp' => NULL, 'invite_target' => NULL, 'node' => NULL, 'params' => NULL),
),

A quick work around I found would be to either change the file path in the module (probably bad practice), or just change the default theme files. Also, the CSS issue I noted in the previous post seems to have been resolved