Closed (outdated)
Project:
Quick Tabs
Version:
7.x-3.4
Component:
Tab styles
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2009 at 13:32 UTC
Updated:
11 Dec 2024 at 20:27 UTC
Jump to comment: Most recent
Comments
Comment #1
pasqualleno theme override is needed.
If you would like to create a new style for 2.x release, then check the css files in the tabstyles folder. They are just simple CSS files. If you create a new folder there, and add a css file with the same name then it will be automatically recognized by the QT module.
theme override functions are only necessary if you want to change the html structure of the quicktabs, but that could break the module functionality as the jquery (which hides the tabs) heavily relies on the structure and the markup.
spiffyd wrote a blog post about QT styling: http://spiffyd.com/blog/theming-quick-tabs-drupal
Comment #2
pasqualleif you would like to separate your styles (if do not want to put anything in the module folder) then you can do it with a new module which implements the hook_quicktabs_tabstyles().
Comment #3
Macronomicus commented@Pasqualle
Can that hook also go in the template.php file? Does it have to be implemented in a module?
Comment #4
pasqualleNo, it does not have to. Hooks can be implemented in the template.php file also..
Comment #5
mr.baileysI don't think that's correct. QuickTabs uses
module_invoke_all('quicktabs_tabstyles')to discover the available tab styles, andmodule_invoke_allonly invokes hooks in modules, not in themes (or template.php).Comment #6
duckzland commentedyes, confirmed here, implenting hooks in template.php won't work.
Won't it be better if we use drupal_alter() instead of module_invoke_all() ? so invoking the hook in template.php will work and more theme can include default per theme style for quicktabs?
Comment #7
smustgrave commentedWith D7 EOL approaching in a month I'm starting to triage the D7 side of quicktabs queue. This doesn't appear to have any code so believe this may not make it, sorry! Thanks though!
If still an issue or needed for 4.0.x (latest branch) feel free to reopen