Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow theme developers to use their own comments template #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Allow theme developers to use their own comments template #66

wants to merge 1 commit into from

Conversation

felixarntz
Copy link

The function dsq_comments_template() has been modified to look for a theme template named 'disqus-comments.php' (filename can be filtered). If this is not found, the default template will be used. Furthermore a function dsq_get_default_comments_template_file() has been added.

These modifications allow theme developers to be more flexible using Disqus. They may filter the requested file name to adjust it as they wish. The newly added function furthermore allows them to easily include the original template inside their own template. This might be a use-case for example if the developer only wants to wrap the Disqus Comments with some custom design code.

Modified function „dsq_comments_template“ to look for custom template
(can be filtered by the developer); added function
„dsq_get_default_comments_template_file“ to allow developers to
possibly include this file in their own template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant