1. LIMITED-TIME SALE Be a Pro Member @ $99 / lifetime & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed.Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color.
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Code to hide elements in frontend, hide them also in backend.

Discussion in 'Free Divi Community Forum' started by Arunki, Jun 3, 2024.

  1. Arunki

    Arunki New Member

    Hi, Friends

    I need a hand to solve this.

    I found the right code for synchronizing elements with the timing of video, however, to edit the sections on this page I have to temporarily delete the code module, edit everytinhg and then call it back again when my edition is finished, because the code hide the sections, elements also in the backend.

    The code I am talking about is:

    Code:
    Log In or Sign Up to view this code.
     
    1. PRO MEMBER PERKS Divi Block Pro - Powerful Divi header builder for you to mix & match premade header design, mobile menu & more:Learn More
  2. Divi Booster

    Divi Booster Divi Expert

    Hey Arunki, nice work on getting this far with it.

    Divi adds the class "et-fb" to the body tag when the visual builder is active, so you can usually stop CSS / selectors from applying in the visual builder by adding "body:not(.et-fb)" at the start. In your case, I think changing the start of the code to this should do the trick:

    Code:
    Log In or Sign Up to view this code.
    I haven't tested it, but if that doesn't work let me know and I'll do a proper test of it.
     
  3. Arunki

    Arunki New Member


    Fantastic!! Perfect!

    Thank you, my friend.
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add more varieties for your Divi header (12 premade styles) + menu hover effects:Learn More
  4. Divi Booster

    Divi Booster Divi Expert

    You're welcome, Arunki. I'm glad that helped :)