Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Extra Class Name Inheritance
New Landing › How can we help? › Themeforest Theme Support › Dante › Extra Class Name Inheritance
- This topic has 14 replies, 5 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Dante
-
April 7, 2014 at 9:55 am #64862
Wordpress v3.8.1
Theme : Dante v2.52Hi there,
Loving the theme, great stuff. One slight thing regarding the Swift Theme Builder is that whenever I add an “Extra Class Name” to a parent container, let’s say a simple row, then all of the child elements within that container automatically have their “Extra Class Names” replaced by the parent one.As an example, lets say that I have a row with some text in it.
If I give the text an extra class name called ‘paddingTop20px’ to, yep, you guessed it, give a padding of 20px from the style.css file.
Then I give the container row an extra class name called ‘paddingBottom60px’ as an example, then the text element obtains this new class as well as the row.
I can go back through the child elements and give them their original class names again, but it shouldn’t really work like this, should it?Cheers!
April 7, 2014 at 10:39 am #64880Hi
You need to be more specific in your css file. For e.g. you will need to have this:
.paddingBottom60px .paddingTop20px { padding: 20px 0 0; }
– Kyle
April 7, 2014 at 10:44 am #64882Thanks Kyle, but no, that CSS was just an example.
My issue is that the parent “Extra Class Name” entry box in the swift page builder overrides the child one.April 7, 2014 at 10:52 am #64889So your saying the text box inside the row loses it’s extra class?
– Kyle
April 7, 2014 at 10:56 am #64891Yes. The text box looses it’s extra class and is replaced by the parent’s one. It seems that the parent’s extra class take precedent over all of the children’s extra classes.
April 7, 2014 at 11:00 am #64892Please can you provide me with a link and login so that I can investigate the issue?
– Kyle
April 7, 2014 at 11:09 am #64894This reply has been marked as private.April 7, 2014 at 12:01 pm #64912It worked fine for me?
– Kyle
April 7, 2014 at 12:07 pm #64914Hmm. OK, let’s make sure we’re both doing the same thing.
1. On the child TEXT element, click on the edit ‘pen’ icon to bring up options for the text.
2. Edit the ‘Extra Class Name’ to ‘ChildCLASS’.
3. Click Save.4. On the parent ROW element, click on the edit ‘pen’ icon to bring up options for the row.
5. Edit the ‘Extra Class Name’ to ‘ParentCLASS’.
6. Click Save.7. Return back to the the child TEXT element and look at the ‘Extra Class Name’. It should have now changed to ‘ParentCLASS’ and is not ‘ChildCLASS’.
This doesn’t happen for you?
April 7, 2014 at 12:26 pm #64924Ahh yes it does, I will forward this to the developer and hopefully will get it fixed soon.
– Kyle
April 7, 2014 at 12:38 pm #64933OK, thanks.
April 7, 2014 at 1:00 pm #64943Thank you for the patience!
April 7, 2014 at 2:04 pm #64996Thanks for letting me know about this, will get it sorted for the next update!
– Ed
April 7, 2014 at 2:21 pm #65010No worries Melanie and Ed! Look forward to it.
Cheers.
April 8, 2014 at 3:35 am #65145Yes of course .
Thanks 🙂
With Best Regards
Swift Ideas -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.