Form created using wordpress plugin does not have bootstrap -
i creating website in wordpress 4.2.2.
i created plugin customize registration page. activated plugin , called form function within wp-login.php this
case 'register' : require( dirname(__file__) . '/wp-load.php' ); custom_registration_function(); login_footer('user_login'); break;
i can see new registration form problem is, wordpress styles totally gone. have plain html page no styles. wordpress not loading bootstrap page.
i not know why bootstrap not being loaded.
you can add css in plugin folder or should register styles , script , theme functions.php file.
function myplugin_scripts() { wp_register_style( 'style-name', plugin_dir_url( __file__ ) . 'css/style.css' ); wp_enqueue_style( 'style-name' ); } add_action( 'wp_enqueue_scripts', 'myplugin_scripts' );
Comments
Post a Comment