Jul 10 2012

Modificando estilo da Assinatura do JetPack


Comecei a utilizar a funcionalidade de Assinatura do Jetpack recentemente. Verificando como o mesmo ficava acessando uma página minha pude notar que a checkbox e o texto ficavam em linhas diferetens. Ou seja, entre a checkbox e o texto "Notify me of follow-up comments by email." e o "Notify me of new posts by email." havia um espaçamento.

Isso não acontece em todos os temas, então não confirmo se a solução é padrão para todos, mas para remover o espaçamento entre a checkbox e o texto (deixar na mesma linha) eu modifiquei o arquivo "wp-content/plugins/jetpack/modules/subscriptions.php"

Modifiquei as seguintes linhas 433, 434, 435 para

$str .= '<p class="comment-subscription-form" style="line-height: 0px; height: 0px;"><input type="checkbox" name="subscribe_comments" id="subscribe_comments" value="subscribe" style="width: auto; -moz-appearance: checkbox; -webkit-appearance: checkbox; vertical-align:middle; top: 0px;"' . $comments_checked . ' /> ';

$str .= '<label class="subscribe-label" id="subscribe-label" for="subscribe_comments" style="width:none; float:none;">' . __( 'Notify me of follow-up comments by email.', 'jetpack' ) . '</label>';

$str .= '</p>';

E também as linhas 439, 440, 441 para:

$str .= '<p class="comment-subscription-form" style="line-height: 0px; height: 0px;"><input type="checkbox" name="subscribe_blog" id="subscribe_blog" value="subscribe" style="width: auto; -moz-appearance: checkbox; -webkit-appearance: checkbox; vertical-align:middle; top: 0px;"' . $blog_checked . ' /> ';
$str .= '<label class="subscribe-label" id="subscribe-blog-label" for="subscribe_blog" style="width:none; float:none;">' . __( 'Notify me of new posts by email.', 'jetpack' ) . '</label>';
$str .= '</p>';

As alterações que foram realizadas foram a inclusão de styles que atualizam as propriedades de estilo.

Talvez essa não seja a solução exata para você, mas ela pode indicar o caminho.

Abraços,
Matheus

Comentários do Facebook:

10 Comments

  • By Mila, January 10, 2013 @ 4:59 am

    I'm having this exact problem.... I did what was listed here, but it didn't fix my problem. :(

  • By Matheus (X-warrior) Bratfisch, January 10, 2013 @ 1:25 pm

    What is your jetpack version? and wordpress?

  • By Mila, January 14, 2013 @ 9:32 am

    My Jetpack and WordPress are the latest ones available - I just switched over to a self-hosted site a week ago.

    Jetpack is 2.1.1 and WordPress is 3.5

  • By Mila, January 14, 2013 @ 9:40 am

    Maybe I didn't do it right because I can't see the line numbers? I edited that file through the WordPress dashboard through Plugin Editor.

  • By Matheus (X-warrior) Bratfisch, January 15, 2013 @ 2:31 am

    you could edit on an external editor (copy paste, edit, and copy paste back). Just to make sure.

    I`m not using latest jetpack update, I will update it asap and will let you know.

    Have a good one

  • By cheap storage units in brooklyn ny, August 22, 2014 @ 7:01 am

    After going through the various services offered and
    their respective rates and charges, you can narrow down your list
    based on your budget and choose the company
    that offers the best service. Arrange for the disconnection of old utilities connection and get hold of new firm or
    organize for the transfer of old connection, if doable.

    If you do not seal your items effectively then there is a prospect
    of breakage.

  • By chest freezer deals, August 24, 2014 @ 7:24 am

    The idea of our homemade air conditioner with cool water is very simple.
    It"s tough to keep things dry on a center console boat. Boating Suite is a professional, full-featured app for the i - Phone, i - Pad or i - Pod Touch that is designed to help boaters manage all aspects of their boating activities.

  • By beach resort marketing plan, August 26, 2014 @ 8:51 am

    Since business owners lack financial skills of the accountant, a marketing service is important for good communication.
    The entire website analysis and reporting that includes the detailed study about your website through
    which you will be able to get complete idea as to what needs
    to be worked upon in the website from the SEO point of
    view. Stick with the one that seems to have the greatest response.

  • By tan, September 20, 2014 @ 11:32 pm

    Self tanning products can be used at home, or one can take professional help by
    going to a salon. Third tip for removing self tanner
    is by using lemon juice mixed with kosher salt. Moving
    to some sunny place can be an effective means to get an all round glow.

  • By marine refrigeration compressor manufacturers, October 4, 2014 @ 12:00 pm

    It is a very strong line, but it is also very sensitive, making it a great line when fishing for trout.
    Leave your windows open a few hours a day and then you get to clean the black soot off of the floors.
    Freshwater fish can be placed in the live well on the boat, or on a stringer to keep
    it alive until you are able to clean it.

Other Links to this Post

RSS feed for comments on this post. TrackBack URI

Leave a comment