• Resolved cedric75

    (@cedric75)


    Hi,

    I try to change CSS of the “subscribe-reoaded” label but I have not succeeded.

    I wrote this:

    #comments .comments-area .comment-form-subscriptions label[for=subscribe-reloaded] {
    color: rgba(51, 51, 51, 0.7) !important;
    font-family: “Noto Sans”, sans-serif !important;
    font-weight: 700 !important;
    display: block !important;
    letter-spacing: 0.04em !important;
    line-height: 1.5 !important;
    }

    Unfortunately, it does not work! System does not recognize the modifications.

    Would you have please an idea where I make the mistake?

    Thank you very much,

    Best regards,

    Cédric.
    https://bio-transition.com

    https://www.ads-software.com/plugins/subscribe-to-comments-reloaded/

Viewing 12 replies - 1 through 12 (of 12 total)
  • @cedric75

    Your CSS selector might not be aiming the correct element, instead of giving a style in your theme add those styles on the Custom inline style option, separate the properties by a semicolon.

    Thread Starter cedric75

    (@cedric75)

    Hi,

    Thank you very much for your quick anwser.

    I tried wwhat you recommended, it adds the style to the input but not the label.

    I would need to customize the label, any other idea?

    Thanks a lot for support!

    Do you have access to the plugin code?

    Thread Starter cedric75

    (@cedric75)

    Yes, I have access to the templates php files and two css files.

    find the file subscribe-to-comments-reloaded.php on that file search for the line with this code:

    $html_to_show = "$checkbox_field <label for='subscribe-reloaded'>$checkbox_label</label>" . $html_to_show;

    On that code add a class to the label element like this:

    $html_to_show = "$checkbox_field <label class='stcr-lbl' for='subscribe-reloaded'>$checkbox_label</label>" . $html_to_show;

    As you can see I created a clas with the name stcr-lbl. Then on your CSS file add a class with the name stcr-lbl and add your properties:

    .stcr-lbl {
     color: rgba(51, 51, 51, 0.7) !important;
     font-family: "Noto Sans", sans-serif !important;
     font-weight: 700 !important;
     display: block !important;
     letter-spacing: 0.04em !important;
     line-height: 1.5 !important;
    }

    After that it should work. By using a class like this we make sure that it will work instead of using the full selector as it might change base on your theme or settings.

    Thread Starter cedric75

    (@cedric75)

    Thank you for help.

    I added the class in php file as you adviced.

    Anyway, it does not work, the class does not appear in page code.

    I modified the php file as you mentionned:

    if ( empty( $checkbox_html_wrap ) ) {
    $html_to_show = “$checkbox_field <label class=’stcr-lbl’ for=’subscribe-reloaded’>$checkbox_label</label>” . $html_to_show;
    } else {
    $checkbox_html_wrap = str_replace( ‘[checkbox_field]’, $checkbox_field, $checkbox_html_wrap );
    $html_to_show = str_replace( ‘[checkbox_label]’, $checkbox_label, $checkbox_html_wrap ) . $html_to_show;
    }

    Thread Starter cedric75

    (@cedric75)

    Hi Seth,

    Any other idea how to manage the issue?

    Thanks a lot for feed-back!

    Hello @cedric75, Can you please share the page of your site so that I can check the source code ?

    Edit:

    Sorry, I just saw the page above. I enter and added the class to the code and it worked. I think the main issue is to add the class to the code and to your CSS, many things can be involve but is going to be hard to nail them without having acccess to all the site.

    What I can do to help you is that you create a temporary user in you WP with my email reedyseth [at] gmail [dot] com and I will solve it faster.

    Thread Starter cedric75

    (@cedric75)

    Ok Seth, thanks a lot, I just send you now my backoffice access on your email.

    OK, thank you.

    It is done. This is what I did.

    1. Add the stcr-label class on the Custom HTML option
    2. Add the css on that class on the style.css child theme
    3. Clear the Cache genarated by WP Rocket

    Following those steps did the trick. You can now close the WP account.

    Regards.!!

    Thread Starter cedric75

    (@cedric75)

    Great Seth! Thank you very much!
    Really quick and efficient support!

    Great Seth! Thank you very much!
    Really quick and efficient support!

    You’re Welcome. I am Glad to help.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘CSS on subscribe-reloaded label’ is closed to new replies.