Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #615201

    Hi there,

    I used your custom css classes to help show or not show items based on screen width to help for mobile viewers. In the past, I would see the field in elements like the Full width easy slider. I don’t see it anymore after the latest update. Is there a different way to do this?

    Here’s the css code I used:
    @media only screen and (max-width: 990px) {
    .only-desktop { display: none !important; }}

    @media only screen and (min-width: 990px) {
    .only-mobile { display: none !important; }}

    Then I would indicate “only-desktop” or “only-mobile” in the class field of the individual element.

    Please let me know how I can do this for new posts or pages. Thx!

    BP

    #615730

    Hi BP,

    Nothing should have changed regarding that with the latest update, could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.

    Regards,
    Rikard

    #616756

    Thanks. When you login, if you look at the Renovation Loans post, you’ll see that it still works. For example, the top full width easy slider shows up for a wider screen over 990px and then goes away and displays the 2nd full width easy slider once the screen width drops below 990px. However, I don’t see the css class option anymore where I had put in the .only-desktop and .only-mobile respectively.

    If you look at a newer post like the MHFA $1000 Down Program, both sliders are showing up as I don’t have the area to put in the css class. (unless I’m an idiot and am missing it somewhere which very well could be the case)

    Login info below. Thanks for your help!

    #618205

    Hi!

    We are working on your ticket please wait while we update the results here soon.

    The custom CSS class name support was not enabled may be when the theme was updated the functions.php got overwritten we have added the below code in functions.php to enable it.

    /*
     * add option to edit elements via css class
     */
     add_theme_support('avia_template_builder_custom_css');

    To prevent this from happening in future updates please use a child theme
    kriesi.at/documentation/enfold/using-a-child-theme/

    Best regards,
    Vinay

    • This reply was modified 8 years, 7 months ago by Vinay.
    #619433

    Thank you. I will look into the child theme.

    #620383

    Hi,

    Great, please let us know if you should need any more help on the topic.

    Best regards,
    Rikard

    #623386

    Hi guys,

    I just did the most recent Enfold update and the same thing happened where the custom css fields are gone again. I checked the functions.php file and the code you mentioned above is still there. Anything else I need to do to bring those fields back?

    I am looking into the child theme, just haven’t had a chance to set it up yet.

    Thx!
    BP

    #623936

    Hi!

    Thanks for getting back in touch with us!

    The line is there in the functions.php file but it was commented out and so was not active. I removed the comments tag so you should be able to see the custom CSS field now.

    Cheers!
    Jordan

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.