Support » Plugin: Subscribe To Comments Reloaded » Class Hidden Results in Hidden Form, Why?

  • Long term user of your plugin, generally happy 🙂

    In a recent update (not sure which one) in the file: wp_subscribe_reloaded.php on line 1138 there’s this code:

    $output .= "<div class='stcr-form hidden'>";

    And you enqueue the stcr-plugin-style.css file with this class:

    .hidden {
    	display: none !important;

    Curious why the hidden class?

    The theme I develop and use (Stallion Responsive) has a custom comment form, so uses the “StCR Position” option, but the hidden class is hiding the form.

    I had to remove the hidden class from the above file:

    $output .= "<div class='stcr-form'>";

    So it’s not hidden.

    I’m guessing it’s an oversight?

    [ Signature moderated ]

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Reedyseth


    Hello David,

    The purpose of that class is to control the display option with Javascript. The reason is that some themes does not follow WordPress standards to create the comment form and for that reason creating the Subscription box does not work, therefore this hidden property is use to remove the subscription box from the wrong position and place it on the correct place.

    As for your comment hidden issue, for some reason is using a class that is name hiddenand since the StCR property uses the important value display of the form it is remove.

    I hope it clear things out for you, otherwise please let me know.

    Thread Starter David Cameron Law


    I sort of understand what you are aiming for, but the hidden class CSS is added by the plugin by default so it’s always hidden?

    The “; file from “/subscribe-to-comments-reloaded/includes/css/stcr-plugin-style.css” is loaded (by default?) which means the relevant form code is hidden no matter what the user wants to output.

    The problem occurred a while back during an update, but I was too busy to troubleshoot so downgraded. Yesterday I upgraded to the latest version, the notify form etc… was hidden so I looked into it. Easy fix was remove the hidden CSS class from the “/subscribe-to-comments-reloaded/wp_subscribe_reloaded.php” file.

    If you view an example post on my site the hidden class has been removed (I modified the “wp_subscribe_reloaded.php” file otherwise there’s a hidden CSS class in the code).

    View my minified CSS file (using W3Total Cache to combine and minify CSS files) and at the top is the “.hidden{display:none !important}” class from the “stcr-plugin-style.css” file.

    Unless I’m missing something for the plugin to work without modifying the code, either the “hidden” class needs removing from the “wp_subscribe_reloaded.php” file or the “stcr-plugin-style.css” file can’t be enqueued by default.

    Options set:

    Show StCR checkbox / dropdown - yes
    StCR Position - yes

    Am I correct in assuming those are the right settings for a site running custom comment form code? The theme used (Stallion Responsive) is available at (there’s links to zip files). Runs in demo mode without a license, but the comment output isn’t any different whether in full or demo mode.

    [ Signature moderated ]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Class Hidden Results in Hidden Form, Why?’ is closed to new replies.