Theme-Settings and Comment-Templates
The theme you’re struggling with isn’t in this list? Look here for instructions!
Supported with Auto-Detection (alphabetical):
- If you changed the directory name of your theme auto-detection won’t work.
- default & all themes using the same markup
- hemingway-reloaded-10: show settings
Available modified comment.php & style.css (alphabetical):
Settings
- hemingway-reloaded-10
@ajax-comments/themes.php
$ajax_comments_themes['hemingway-reloaded-10'] = array(
'commentform',
'comments',
'comment-form',
'comment-form'
);
How to get it working for your theme
AJAX Comments WPMUified works just fine with all themes that use the default Markup:
- Commentlist is an <ol> with id or classname “commentlist”
- Comments are <li>’s within this <ol>
- The commentform has the id or classname “commentform”
Some themes, however, use different classnames or ids. You can enable AJAX Comments WPMUified for those themes with simple theme-settings:
@/wpmu/mu-plugins/ajax-comments/themes.php
$ajax_comments_themes['theme-directory-name'] = array(
'commentform', // [0] = id or classname form
'commentlist', // [1] = id or classname comment-<ol>
'commentform', // [2] = id or classname element comments are inserted before
'' // [3] = comma-separated list of element-id's to hide
);
It is recommended that you use the theme with it’s original template-folder name and also use this name for your settings. As long as people follow this simple standard, theme-settings are portable and we can easily collect settings.
The 4th parameter is optional and can contain as many id’s, separated by commas, as you like. After a comment has successfully been posted, all elements who’s ids are in this list will be hidden, if that option is activated.
Some themes use very unusual markup. In this case you will either have to dig into the PlugIn-code to adopt it to your needs, or you edit the comments.php template file of your theme.
Either way, if you come up with a modified comments.php or with settings for another theme, I’d love to list them here. Drop me a line at christian.knoflach@gmx.at and I’ll list your submission here, of course giving credit.