Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author anmari

    (@anmari)

    Do you mean if you add it into the custom html?

    like this?
    $htm[x] = ‘<div style=”” class=””‘ ?

    in most cases, the class would give you invalid html as the plugin adds a lot of css classes itself. You’d be better off adding css that uses a class generated by the plugin. inline style might work – I can’t see anything that would strip it out.

    http://icalevents.com/2382-styling-of-ical-events/

    and more
    http://icalevents.com/?s=css

    Plugin Author anmari

    (@anmari)

    just realised, you probably mean in the before/after fields. I think the validation may strip out anything too fancy – and again youd probably end up with invalid html anyway – better to do css with the classes that are there – cleaner.

    Thread Starter James

    (@jamesee)

    I need to use inline styles as the content will end up in an email template.
    Is there a way I can edit (through editing the plugin) the validation?

    Thread Starter James

    (@jamesee)

    For the record, I edited line 173 of functions.php to change the validation to:

    'span' => array('class' => array(),'style' => array()),
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding class/style to custom list type’ is closed to new replies.