Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #614815

    Where I need to prefix the class to Add Custom Classes to my Elements?
    Keep Class Names Unique

    A 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

    #614821

    Hey 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!
    Yigit

    #614836

    I mean where I need to prefix the class before the css

    #614853

    Hey!

    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,
    Yigit

    #614885

    I 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

    #614968

    Hi!

    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, 6 months ago by Vinay.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.