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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -