• Resolved webhenry

    (@webhenry)


    Hello,

    How can I bulk editing the Extra CSS Selectors setting in database?

    I find the value of the popup_triggers:

    a:1:{i:0;a:2:{s:4:”type”;s:10:”click_open”;s:8:”settings”;a:3:{s:15:”extra_selectors”;s:0:””;s:10:”do_default”;i:1;s:6:”cookie”;a:1:{s:4:”name”;N;}}}}

    I tried to add .my-class into the value as below, but it failed:

    a:1:{i:0;a:2:{s:4:”type”;s:10:”click_open”;s:8:”settings”;a:3:{s:15:”extra_selectors”;s:0:”.my-class“;s:10:”do_default”;i:1;s:6:”cookie”;a:1:{s:4:”name”;N;}}}}

    How should I add .my-class into the popup_triggers value?

    Thanks!
    Henry

Viewing 1 replies (of 1 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @webhenry – You can do it that way but you didn’t change the serialization info:

    s:0:””:

    s – string
    0 – length

    So if you change the value to .my-class you need to update the s:0 length to match the new length as well, in this case

    s:9:”.my-class”;

    Hope that helps.

Viewing 1 replies (of 1 total)

The topic ‘Change the popup setting in database’ is closed to new replies.