• Hello ,
    I create plugin that to add custom admin page and all things is well, but i used bootsrap in my style
    wp_enqueue_style(‘.bootstrap’, plugins_url(‘/assets/css/bootstrap.min.css’,__FILE__));
    wp_enqueue_style(‘bootstrap’, plugins_url(‘/assets/css/bootstrap.css’,__FILE__));

    now i face aproblem with my admin menu and all the text in my dashboard isalignment to left and i’m sure i add the lang rtl . when i stop the bootsrap all things come will but when i active it the text alignment to left.

    what could be the problem?

    https://ibb.co/9TF7jhg picture show you the problem

    thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Using complete bootstrap for the admin pages is not an option in WordPress. I will suggest using custom CSS with your having a unique prefix in your CSS classes name.

    The second option is to generate a custom bootstrap and add a parent CSS class for all the bootstrap classes.

    And enqueue your CSS conditional using screen id so your CSS should be enqueue on your custom admin page not on all the admin pages to avoid any conflicts.

    Thread Starter enasattar

    (@enasattar)

    ok thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bootstrap broken my text alignment’ is closed to new replies.