• Resolved amberin

    (@amberin)


    I found similar post, but it’s is locked for comments: https://wordpress.org/support/topic/possible-css-enqueue-conflict/

    I have only text and no button on wp-login.php page. Seems that facebook-btn.css not loaded. Loggin via fb works

    I have similar g+ plugin nextend_google_connect and it works properly, it shows button and I can customize it by paste code on admin appropriate plugin settings field.

    Code inspector shows google-btn.css, but not facebook-btn.css. Html code seems good, only related css missing.

    Where I need to look? How to debug this function?

    function nextend_fb_connect_stylesheet() {
    
        wp_register_style('nextend_fb_connect_stylesheet', plugins_url('buttons/facebook-btn.css', __FILE__));
        wp_enqueue_style('nextend_fb_connect_stylesheet');
    }
    
    if (!isset($new_fb_settings['fb_load_style'])) $new_fb_settings['fb_load_style'] = 1;
    if ($new_fb_settings['fb_load_style']) {
        add_action('wp_enqueue_scripts', 'nextend_fb_connect_stylesheet');
        add_action('login_enqueue_scripts', 'nextend_fb_connect_stylesheet');
        add_action('admin_enqueue_scripts', 'nextend_fb_connect_stylesheet');
    }

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

Viewing 1 replies (of 1 total)
  • Thread Starter amberin

    (@amberin)

    Hi here again,
    I did reinstall plugin so many many times… and it works as must be just after reinstall. Additionally need to clean value of key nextend_fb_connect in wp-options table. I did clean only option_value via phpmyadmin, not whole record.

    Actually I do not found where is root of my problem. Maybe my system broake something (windows, winscp, notepad++ and ubuntu server).

    What works in my case: just after install plugin, not activated yet and option_value field was cleaned I wrote above, i do modifications on plugin files and only then activate plugin and fill settings.

    What do not work: If I do modify code of nextend-google-connect.php after plugin is activated, corresponding css buttons/facebook-btn.css gone from header.

    What i want to modify: in nextend-facebook-connect.php i need translated “OR”, so I modify line 407 to loginForm.prepend("<h3 style='text-align:center;'><?php esc_html_e( 'OR' , 'nextend' ); ?></h3>");
    and add nextend-lt_LT.po and generated .mo to /wp-content/languages/plugins/ folder with content:

    
    msgid ""
    msgstr ""
    "PO-Revision-Date: 2017-09-08 10:30+0300\n"
    "MIME-Version: 1.0\n"
    "Content-Type: text/plain; charset=UTF-8\n"
    "Content-Transfer-Encoding: 8bit\n"
    "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
    "X-Generator: Poedit 1.8.9\n"
    "Project-Id-Version: kmlt\n"
    "POT-Creation-Date: \n"
    "Last-Translator: \n"
    "Language-Team: \n"
    "Language: lt_LT\n"
    
    # @ km
    #: nextend-facebook-connect.php:407 nextend-google-connect.php:359
    msgid "OR"
    msgstr "Arba"
Viewing 1 replies (of 1 total)

The topic ‘css not loaded – no button on wp-login.php’ is closed to new replies.