• Resolved Tytan

    (@tytan)


    Hi,

    Is there any way to override the template files in your plugin (e.g. the full width template)? We would like to add a link to the Facebook page title (“efbl-profile-title-wrap”) instead of only having the profile picture linked. Of course we can edit the template files directly but we’d prefer to override them so future plugin updates do not revert the changes.

    Alternatively, is there an option somewhere to set a link on that title?

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sajid Javed

    (@sjaved)

    Hi @tytan,

    Sorry for the late reply.

    Yes, it is indeed possible to override the template by copy-pasting the template(s) in your active theme/child-theme directory by following the same directory path/hierarchy in the plugin like this:

    {your-theme}/easy-facebook-likebox/instagram/frontend/views/templates/template-{$layout}.php

    For example, if you want to customize a full-width layout. The path will look like this:

    {your-theme}/easy-facebook-likebox/instagram/frontend/views/templates/template-full_width.php

    Please do not hesitate to contact us if you have any more questions.

    Thread Starter Tytan

    (@tytan)

    Hi @sjaved ,

    Thanks for your reply, we’re just getting around to looking at this again but we’re still having some difficulty overriding the theme file. Here is the full path to the new template:

    {child-theme}/easy-facebook-likebox/facebook/frontend/views/templates/template-halfwidth.php

    I’ve confirmed that we can update the halfwidth template by editing the plugin files directly, but the new template file has no effect – not sure if we’re doing something wrong?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Overriding templates’ is closed to new replies.