• Resolved internationaljack

    (@internationaljack)


    I’ve been editing vsel-page-template.php to achieve a layout that fits with my client’s website. The biggest change is that the featured image thumbnail is now inside the meta section, so that text wraps around it.

    Will my edits to this file be lost in a (hypothetical) future plugin update? If so, what can I do to edit the page template in such a way that my edits won’t be overwritten?

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

    (@guido07111975)

    Hi,

    Yes, those changes will be lost in case of an update. Unfortunetaly it’s also not possible to override plugin template via your (child) theme.

    By default the featured image is already inside the event text, so I don’t fully understand what you’ve done.

    Guido

    Thread Starter internationaljack

    (@internationaljack)

    So when I first installed the plugin, the featured image thumbnail always appeared at the bottom of each event listing. Client wanted the image at the top left, with the title and other text wrapping around it.

    In the php file, I took the section called
    // featured image

    and pasted it after

    	// meta section
    	if ($page_title_location != 'yes') {
    		$output .= $page_meta_section_start;
    	}

    This made the image appear first. Then I edited the vsel-style.min.css to make the image float left and removed float attributes from the text, along with sizing and other adjustments. So it kind of did this:

    Before:

    Title Text Title Text
    Other text and date info here lorem ipsum
    dolor sit amet...
    Tags, etc.
                        [image]
                        [image]

    After:

    [image] Title Text Title Text
    [image] Other text and date info here lorem
    ipsum dolor sit amet...
    Tags, etc.
    Plugin Author Guido

    (@guido07111975)

    Hi,

    Aha, I understand. By default the featured image is inside the event text section and right top aligned. Like this screenshot.
    And via the settingspage you can change position of the event meta section, the featured image and the event title, but that’s it.

    Guido

    Thread Starter internationaljack

    (@internationaljack)

    Ok, thanks for the follow-up. If you take feature suggestions for VSEL, how about someday including an option for using custom templates? Something simple like a checkbox that says “Use custom template” that simply makes the plugin load a different php file, and maybe a different css file as well. That way people who want to go from “Very Simple” to just “Kinda Simple” could still use your plugin and keep it updated without too much difficulty.

    Plugin Author Guido

    (@guido07111975)

    Hi,

    This is requested before but is quite difficult to do. For that I have to fully rebuild my template system. The only template you can easily hack into via your (child) theme is the single event page, but that’s it.

    Guido

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Do template changes survive plugin updates?’ is closed to new replies.