frankjkeane
Member
Posted 3 years ago #
Hello,
thanks for viewing. I'm a newbie and setting up my first theme I have the comments popup link code in my index.php file in the loop that i pasted from the 'default' wp theme. it does not work at the mo and am wondering is there a plugin to be installed or api hook i'm missing. is it usually just a case of writing it in the code and when you click on 'no comments' the popup appears? I have several posts on blog not InTHINK this means that the if singular should not be true therefore enabling popup link.
Anyway any help gratefully received!
Frank
A popup will not appear unless you have the comments-popup.php template file in your theme.
frankjkeane
Member
Posted 3 years ago #
Hi thanks esmi,
yes i have that file in the root folder.
i have that file in the root folder
It needs to be in your theme's folder.
frankjkeane
Member
Posted 3 years ago #
Hi, yes thats what i meant sorry, its in the themes folder. do any other related files need to be there? i have comments.php and comments-popup.php.
how does this work? is it just the <?comments-popup-link("..... line that calls it and if it's in the themes folder it should appear? what other conditions are there for this to work?
thanks a lot
Frank
You also need to incorporate comments_popup_script.