Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #260676

    I’ve added a Text Block using the ALB and used the “Text” tab to add some custom HTML. This HTML is similar to:

    <div class="my_class">example text</div>

    I’m currently using a Child Theme that I created for Enfold, which only has the stylesheet style.css. Adding in the CSS to add the property display: none !important; does not work. The text, in my example listed above, renders properly on the page as “example text”.

    I’ve also attempted to “get the CSS to apply” by adding it to /enfold/css/custom.css, and within the Theme Options’ Custom CSS area. None of these resolve my issue.

    How do I go about adding in custom CSS in this manner? Keep in mind that an inline solution will not work for me, as the actual code includes media queries and is a fair bit more complex than what I have shown here.

    #261308

    Hi Redfrex!

    Can you post the link to your website and point out the element so we can check it?
    Just to make sure, your custom CSS code looks like following

    .my_class { display: none !importnat; }

    is that correct?
    Regards,
    Yigit

    • This reply was modified 10 years, 7 months ago by Yigit.
    #261527
    This reply has been marked as private.
    #262089

    Hi!

    Schema data has nothing to do with what you’ve posted here as an aside. A code block will add in the same thing as a text block but it will leave your code intact.

    The wrapping elements are needed to create your layouts using the drag and drop editor.

    You would want to use a color section and then hide the color sections ID if you wanted to remove the entire block from within the layout.

    Cheers!
    Devin

    #262093

    Thanks Devin!

    I don’t see a way to “close” this issue – feel free to lock it, or handle it in whatever way you normally do!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Custom HTML in page with ALB / CSS issue’ is closed to new replies.