Skip to content

Allow theme developers to use their own comments template - #66

Open
felixarntz wants to merge 1 commit into
disqus:masterfrom
felixarntz:master
Open

felixarntz wants to merge 1 commit into
disqus:masterfrom
felixarntz:master

Conversation

@felixarntz

Copy link
Copy Markdown

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