• Resolved GregW

    (@gwmbox)


    Am I able to over-ride the template files in my child theme? If so where do they go?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author 100plugins

    (@100plugins)

    Hi @gwmbox,

    No you can not override the template files. But here is an article on how to override the output of the location bubble (with a hook) and here is an article on how to template the single location page.

    Best regards,
    Daniel

    Thread Starter GregW

    (@gwmbox)

    Can I request a future update to enable template over-rides like most other plugins I use?

    Plugin Author 100plugins

    (@100plugins)

    Hi @gwmbox ,

    At the moment OUM provides three hooks:

    • Customize location bubble content
    • Customize location list item content
    • Customize location bubble image (eg. to add a lightbox)

    You can find more details on how to use each under Settings > Help & Getting Started.

    I will provide more template hooks in the future instead of implementing an overridable templating system. I think, this is the better approach.

    Best regards,
    Daniel

    Thread Starter GregW

    (@gwmbox)

    I don’t believe it is a better approach. It should use the same template override function most good plugins use.

    The links provide no way to achieve what I need.

    I have to edit a template file and keep it in the plugins template folder instead of in the child theme. I have to do this every time you do an update, it is tedious and unhelpful.

    Plugin Author 100plugins

    (@100plugins)

    Okay, this will be possible with the next update (1.3.50). Just add a new folder “open-user-map” to your theme and put the override templates in it.

    Of course, it is important to note that updates to the original templates may cause compatibility issues when using custom overrides. New features may not be available or may not work properly.

    Best regards,
    Daniel

    Thread Starter GregW

    (@gwmbox)

    Awesome, a great resolution.

    As part of development pre production I always test child templates with new updates for any possible changes that can cause conflicts. But at least this way I should be able to do an update without worrying about it screwing up my layouts as I assume my over-rides will still be used.

    Thread Starter GregW

    (@gwmbox)

    Override tested and works, still needed to update non layout template.

    Next/Feature update to separate layout and functions. So that templates contain layout and styles, but the functions that change each update are in a separate file. So future updates only affect non template files unless there is an actual layout or style change :).

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.