New Landing How can we help? Cardinal add id and class attributes to raw html element?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Cardinal
  • #249305
    WEswift
    Member
    Post count: 234

    Team – is there a way to modify Swift Framework to allow Raw Html elements to accept id and class attributes? That would be extremely useful as I’m unable to control those div elements that are created by the system. In addition, the Raw Html element removes any classes given to its first div child element. What’s up with that? Thanks in advance! -Paul

    #249582
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please give a extra class to raw element of swift page builder. And you can use the css code for first child div like this:-

    .extraclass > div{
    color:#ff0000 !important;
    }

    Thanks
    Mohammad

    #249584
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Re: the Raw Html element removes any classes given to its first div child element

    That doesn’t happen for me? See:

    http://d.pr/i/jKJg/1rbp8fL7

    http://d.pr/i/11iPF/3RKkI2OT

    – Kyle

    #249700
    WEswift
    Member
    Post count: 234

    Mohammad – thanks for the css help. I’m certainly able to target a child div via css or jQuery. But I’m attempting to incorporate a plugin which is targeting an element via its id.

    Kyle – I have a sneaking suspicion that it may have been my javascript removing that class and not the Swift Element. Thanks for investigating.

    -Paul

    #249788
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome and great thanks to Kyle.
    Thanks
    Mohammad

    #249842
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Just marking it resolved 🙂 .
    Mohammad

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.