But there’s two bits of code disqus wants you to include. The first bit does the comments (x) part, and the second bit does the actual comment form.
The comments (x) part can go, as you said, inside the the {regular} block, instead of after all the post type blocks. But the part that makes the actual comment form has to go inside the {permalink} block, which renders on ever post-type’s permalink page. If the comment form code goes inside the {regular} block, then it’ll render a comment form on the main page as well as the permalink page.
It seems that what I’m asking for requires some CSS-fu of the sort that Paul Giacherio’s siloTheme uses, or Nostrich uses on Peacock Tail, to get different styling on the main page and the permalink page, but then goes further and has different styling on the permalink page, depending on the post type.
Hmm… I know I left my too hard basket around here somewhere.
Livejamie, looks like our css woes aren’t over yet :(
thatguyben, I’m gonna assume you’ve read my previous reply, but the TagsAsClasses styling will be carried across to the permalink page right? That means not only will you be able to make the comments visible on command, but also the comment form, since you can address it specifically through CSS.
What you need to do is make a <div> containing the comment form and place it next to the ‘comments (x)’ <div>, both within your posts’ {block}, give it a new id (for example “#form”) and then make it invisible again through CSS like how I last explained.
This time, you need to add the { block:Permalink } modification to your code to allow Permalink styling.
And then you should be able to address the comment form in a ‘commentsenabled’ tagged post and a normal, non-commentsenabled post via:
body#permalink #content div.regular #form {
/* style for Regular Post Permalink page
with Disqus comment form set to invisible */
display: none;
}
and:
body#permalink #content div.commentsenabled #form {
/* style for Regular Post Permalink page
with Disqus comment form set to visible */
display: block;
}
This should work, assuming the TagsAsClasses styling is carried over to the permalink page, but again, it’s just me thinking aloud here and not proven method. Good luck!