Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-3541

Plugin Blocks: Allow overide of templates by child theme

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Must have Must have
    • 1.54
    • None
    • Blocks (all)

      NROs want to be able to overide the default twig templates of the plugin-blocks with twig templates they will add to their child themes.
      Task: Create the needed functionality in the Plugin Blocks, that will be doing the following:

      a) Before loading a twig template for a block (any .twid file in the /includes/blocks/ directory) check to see if a file with the same name exists in the directory
      wp-content/themes/ACTIVE_CHILD_THEME/plugins/planet4-plugin-blocks/includes/blocks/ )
      b) If a file exists, use that one instead.

            Unassigned Unassigned
            kkokkoro Konstantinos Kokkorogiannis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: