-
AuthorPosts
-
dpchap015 Friend
dpchap015
- Join date:
- September 2011
- Posts:
- 300
- Downloads:
- 75
- Uploads:
- 57
- Thanks:
- 1
- Thanked:
- 24 times in 1 posts
May 9, 2014 at 12:00 pm #197571I am using Onepage on my joomla 3.2.2 and i use 3 different themes of JA_Onepage.
My question is, how can i apply custom css to a particular module that is common for all the themes to generate different visuals.
For eg: for the map -> <div class=”section onepage map section6″ id=”map”>
how can i create and additional class say “background” can put different values for themes: retro, metro and modern.
TomC
Moderator
TomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 9, 2014 at 3:28 pm #534379You should be able to create the custom CSS rules by figuring out if the various themes have their own CSS classes specific to that color theme (i.e. “.retro” or “.modern.”), and then simply creating the custom.css rule relative to the theme (i.e. “.retro.logo”)
dpchap015 Friend
dpchap015
- Join date:
- September 2011
- Posts:
- 300
- Downloads:
- 75
- Uploads:
- 57
- Thanks:
- 1
- Thanked:
- 24 times in 1 posts
May 12, 2014 at 10:07 am #534619Hi Tom,
Thanks for the reply.
<em>@TomC 426260 wrote:</em><blockquote>creating the custom.css rule relative to the theme (i.e. “.retro.logo”)</blockquote>So this should be where exactly:
1) ja_onepage/css/custom.css
2) ja_onepage/themes/retro/css/custom.cssIf you mean the 1st one, there is no css that is specific to any color theme (.retro) that could allow me to cascade css with a specific property for a specific element (.retro .logo {} ; ). All the themes have their own template.css in the respective folders as “/css/themes/retro/template.css”
If you mean for the 2nd one, i have already created the custom.css in “/css/themes/retro/” with the appropriate properties name but the custom css form these folders never get called.
I also tried adding a call to this custom css in the ja_onepage/css/custom.css as “@import url(/themes/retro/custom.css);” but this doesn’t work either.
Regards.
TomC
Moderator
TomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
May 12, 2014 at 2:51 pm #534649It should be put within the file path /templates/ ja_onepage/css/custom.css
Can you share an example of a CSS class you are trying to create that doesn’t seem to be working?
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by
TomC 10 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum