• Resolved david4ww

    (@david4ww)


    I have just installed v14.1 having been using v13.9.
    Unfortunately you appear to have removed the class option from the shortcode options (i.e. the classes I define are not being passed through to the HTML). I was using this to define classes to control the display of different types of events…and so the change has completely destroyed the formatting of events and lists of events that are displayed on the website I am managing.
    I have rolled back to v13.9 to restore the formatting so unless we can have the class option back I’m either (a) stuck forever on v13.9 or (b) will have to try and find a similar plugin and re-engineer the website which will be a mammoth task.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi David / @david4ww,

    Very sorry to hear that this update have caused major issues. To be honest, I thought nobody was using this. That’s why I have replaced it with other classes. My mistake.

    I will add attribute again in next update, ok? With 1 change, I will not add the default class vsel-container. So no extra class, unless you’ve added the attribute with your own class. Can you live with that?

    Guido

    Thread Starter david4ww

    (@david4ww)

    Hi Guido
    Thanks for you quick response.

    Your suggestion would be very helpful. I’ve been experimenting with various workarounds on this on a copy the website running in WordPress on my PC but I can find no easy (or quick) solution. I would like to stay using VSEL if at all possible because it exactly meets my needs (e.g. I do not need an all-singing-all-dancing events calendar plugin).

    I believe I can live with what you suggest. Just to clarify with an example:

    Currently to show a list of events (with category “social”) with additional formatting using my class “vsel-linear”, I do the following:

    [vsel event_cat=”social” posts_per_page=”5″ date_format=”jS F” no_events_text=”No events announced” class=”vsel-container vsel-linear”]

    This leaves the vsel-container class extant and applies some additional formatting. I have a collection of many such classes for controlling aspects of how events are displayed. I use these in shortcodes and also the widget.

    I assume with your suggested next update I would instead do:

    [vsel event_cat=”social” posts_per_page=”5″ date_format=”jS F” no_events_text=”No events announced” class=”vsel-shortcode vsel-shortcode-upcoming-events vsel-linear”]

    as the “vsel-shortcode vsel-shortcode-upcoming-events” seems to have replaced the “vsel-container” in the HTML.

    Plugin Author Guido

    (@guido07111975)

    Hi David,

    Every shortcode now has 2 classes, but no CSS is attached to these classes.
    I only use them for identification. So I can easily detect on the frontend which shortcode is being used. Both classes are hardcoded, so you cannot change them via the class attribute (that I will add again asap). So with the class attribute you can add extra CSS class or CSS classes, that’s it.

    Do you have custom CSS attached to the vsel-container class? Plugin did not. So do you need this class?

    Depending on your response I can update plugin today or tommorow and re-add the attribute..

    Guido
    ps. if you add code here press the “code” button in the text markup bar before and after the code.

    Plugin Author Guido

    (@guido07111975)

    I would like to stay using VSEL if at all possible because it exactly meets my needs (e.g. I do not need an all-singing-all-dancing events calendar plugin).

    My main reason for creating this plugin, cause most (or all) other events plugins where bloated.

    Besides this, you cannot simply switch to another events plugin, because every plugin has its own set of custom fields (such as date, time, location, etc).

    Guido

    Thread Starter david4ww

    (@david4ww)

    Thanks for the response.

    I don’t have any CSS attached to the vsel-container class. As you can see in my examples I was simply using the class attribute to add an additional class (or sometimes classes – for example like class=”vsel-container vsel-diary vsel-linear") and those are all defined within my custom stylesheet within the theme I use.

    I’m not sure I entirely understand what the new class attribute will exactly do…but all I need is to be able to do is add bespoke class(es) to the events list as in my examples in my earlier post. If its as simple as using the attribute something like class="vsel-linear" that gets incorporated into the HTML to become class=”vsel-shortcode vsel-shortcode-upcoming-events vsel-diary vsel-linear" that would be fine. Is my understanding correct?

    Plugin Author Guido

    (@guido07111975)

    Hi David,

    You only need to have the attribute with your own class, so class="vsel-linear" is enough. This custom class will be added to the 2 hardcoded classes that every events list now has. Nothing will change regarding your custom CSS (after plugin gets updated). You can remove the vsel-container from your shortcodes, because not relevant.

    So yes, your understanding is correct.

    I will update plugin tomorrow and will keep you informed.

    Guido

    Plugin Author Guido

    (@guido07111975)

    Hi David,

    Just updated plugin to version 14.2

    Guido

    Thread Starter david4ww

    (@david4ww)

    Thanks for that Guido…excellent service.
    I’ll update and work through it over the next few days.
    David

    Plugin Author Guido

    (@guido07111975)

    If no custom CSS is added to the vsel-container class, everything should be as before again.

    For now I’m marking this topic resolved, but you can always change status again or reply again.

    Guido

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘V14 has removed class option from shortcode!’ is closed to new replies.