-
AuthorPosts
-
April 15, 2016 at 2:07 pm #614815
Where I need to prefix the class to Add Custom Classes to my Elements?
Keep Class Names UniqueA good practice is to prefix the class with your initials. For example, Kermit The Frog would use the following to add a border to something:
ktf-darkborder
Thanks
April 15, 2016 at 2:10 pm #614821Hey endanight!
Please refer to this post and enable custom CSS field for ALB elements – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
Cheers!
YigitApril 15, 2016 at 2:32 pm #614836I mean where I need to prefix the class before the css
April 15, 2016 at 2:44 pm #614853Hey!
I am still not sure if i understood you clearly but if i have, that depends on your element. For example if you would like to change the font size of your text block element with a custom class, you can use following
.your-custom-class p { font-size: 20px !important; }
If you are not sure, you can use following as well
.your-custom-class * { font-size: 20px !important; }
If that is not what you meant, please elaborate a bit more :)
Regards,
YigitApril 15, 2016 at 3:11 pm #614885I have followed your link, I though it was another place to name the class before to write the css.
And you know the way to change the html and css using firebox editor or If I can do it using from the firebox editor copy and paste and change in advance layout using the code block option and add html and css there and doing this I can customize more the website:
Code Block Content. Add your own HTML/CSS/Javascript here
Enter some text/code. You can also add plugin shortcodes here. (Adding theme shortcodes is not recommended though)
Code Wrapper Element
Wrap your code into a html tag (i.e. pre or code tag). Insert the tag without <>Doing this I can add there the html and on custom fields the css code:
How is the way?My last question there are problem I don´t know the reason but I am trying to improve the home design and some image cannot be display
April 15, 2016 at 4:36 pm #614968Hi!
Wordpress don’t recognise js and css unless it is enqueued in functions.php
Once you enable custom class name support as yigit mentioned you can add the class name in advance layout builder element edit options as seen below
Please check this link for more info https://developer.wordpress.org/themes/basics/including-css-javascript/
You have another ticket open for the image issue we have replied there.
Cheers!
Vinay- This reply was modified 8 years, 7 months ago by Vinay.
-
AuthorPosts
- You must be logged in to reply to this topic.