• I’d like to make some minor modifications to the template files, but don’t want them overridden when updating the plugin. I was hoping I could add a copy of the vsel-upcoming.php file in my theme, but it doesn’t seem to be overriding the file in the plugin. Is there a way to achieve what I’m after?

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

    (@guido07111975)

    Hi,

    No, as far as I know there’s no other easy way besides changing my plugin files directly. Some advanced plugins such as WooCommerce do have this feature, but to achieve this I have to make serious changes to my plugin.

    But if you only have CSS changes, you can add custom CSS.. but I guess that’s not the case here?

    Guido

    Thread Starter Scott McCulloch

    (@sinemac)

    Thanks for your reply, Guido.

    At the moment, the main thing I want to do is change all the h4 tags to h5 to fit in better with my theme. I’ll edit them in the plugin for now, and perhaps will see if I can figure out how to replace them dynamically using javascript (I think that might be possible)… not sure if I might want to make additional changes as I get further down the road.

    Scott

    Plugin Author Guido

    (@guido07111975)

    Hi Scott,

    Just changing the CSS markup so it looks like a H5 is no option for you?

    I will look into your request, to make it possible to overwrite plugin files by duplicating them into your (child) theme.

    Guido

    Thread Starter Scott McCulloch

    (@sinemac)

    Thanks Guido!

    I did find some other things I wanted to adjust in the layout, so the css only approach won’t work… hopefully it won’t be too much work for you to enable layout overrides. ??

    Scott

    Plugin Author Guido

    (@guido07111975)

    Hi,

    Did not really look into this again, but have updated plugin several days ago. The widget event list is now separated from the regular shortcode event list. So making changes for the widget only should be easier now.

    Guido

    Thread Starter Scott McCulloch

    (@sinemac)

    Thanks for the update Guido!

    Actually, some of the other changes you made (e.g., ability to put start and end dates on the same line with a separator) made it so that some custom css is all I need now.

    Thanks!

    Plugin Author Guido

    (@guido07111975)

    Hi,

    I might relocate the “dates on the same line” from attribute to the settingspage. And on the settingspage I will add 2 global options: for regular page (using shortcode) and for widget.

    What are your thoughts about this?

    Guido

    Thread Starter Scott McCulloch

    (@sinemac)

    Hi Guido,

    Having “dates on the same line” as a setting would work for me…

    I wonder, though, if some folks (not me) might want the ability to have events lists in more than one place and to have them look different. I don’t know if anyone would actually want to do that, but it’s possible, and having it as a setting instead of an attribute, would make that impossible (I think). Would it be possible to have it as a setting for the default behavior, and still allow an override via using an attribute?

    Scott

    Plugin Author Guido

    (@guido07111975)

    Hi Scott,

    Yes, a setting on the settingspage will apply to all lists on page or in widget… I just don’t want both (an attribute and a setting) because this might be confusing. Or not?

    The problem with an attribute is I cannot use this in a single event. Why? because a single event is outside the shortcode, so attributes will not work there. Meaning, I cannot use the “dates on the same line” attribute for example. At first I did not thought about this.

    But to be honest, main reason to create an attribute instead of a setting was selfish; a setting creates new text strings that must be translated. Therefore I “must” contact many translators again ??

    Thanks for listening..

    Guido

    Plugin Author Guido

    (@guido07111975)

    Hi,

    FYI: have updated plugin and relocated attribute “dates on the same line” to the settingspage. Now it’s also supported on single event page. For changelog click here.

    Guido

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Modifying widget templates?’ is closed to new replies.