Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
What is the correct way to make a ie8.css for a subtheme, and keep intact in the same time the original ie8.css of the base theme?
Hi to everybody, I've created a Topic in the Forum (since I think this could be a general question related to Theming) but so far seems like that nobody is answering, so I am trying to ask here too.
Hope someone can help, Thx all for the attention.
Francesco
Comments
Comment #1
mermentau CreditAttribution: mermentau commentedA sub-theme would be the way to go. Did you see the page for a sub-theme with MAYO?
Comment #2
francescosciamanna CreditAttribution: francescosciamanna commentedHi mermentau, Thx a lot for replying!
yes, I have read carefully the sub-theme with MAYO, but I did not find the solution for my problem (I paste here entirely what I wrote in the main Theming forum):
Comment #3
mermentau CreditAttribution: mermentau commentedPutting it in subtheme.info is probably not needed as that is for all cases and you only want it loaded for IE8 users.
You could try creating a template.php and adding
to it. That's where the conditional ie8.css is added.
Get the code from the Mayo base theme and change the function name to reflect the sub-theme name.
Also I don't think your issue is really special to MAYO. You might try http://drupal.stackexchange.com/ instead of the forum. I think that's where the support focus seems to be now.
Comment #4
francescosciamanna CreditAttribution: francescosciamanna commentedThank you mementau, my problem is solved!
Following is the code I put in the template.php:
Comment #5
mermentau CreditAttribution: mermentau commentedYou're welcome. Glad it worked for you.