Support » Plugin: Advanced Custom Fields: Extended » Render template to absolute URL

  • Resolved David

    (@wplit)


    In the description for render template in the settings it says..

    ‘The path to a template file used to render the block HTML. This can either be a relative path to a file within the active theme or a full path to any file

    How do we remove the active theme part of the URL so we can use a template file from a plugin instead? This is important for Oxygen users who don’t have active themes.

    Regards,

    David

    • This topic was modified 1 year, 8 months ago by David.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author hwk-fr

    (@hwk-fr)

    Hello,

    Thanks for the feedback! It looks like you’re talking about Dynamic Block Type module, and specifically the render template path setting.

    In order to customize the theme path (when using Oxygen, which has no theme), you should define the following constants in your wp-config.php file:

    
    define('ACFE_THEME_PATH', '/path/to/my-theme');
    define('ACFE_THEME_URL', 'https://www.website.com/wp-content/themes/my-theme');
    

    This will make the render template path relative to what you defined. I’ll add a PHP filter in order to modify those contants (so users will be able to set it in their theme/plugin, instead of wp-config.php file).

    Added it to the trello board: https://trello.com/c/sU8EOf1q/168-general-add-settings-for-acfethemepath-acfethemeurl

    Have a nice day!

    Regards.

    Thread Starter David

    (@wplit)

    Thanks, I’ll watch out for the filter in updates and send the word out to Oxygen users so they can use the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Render template to absolute URL’ is closed to new replies.