CSS has large space in Wordpress


Topic: CSS has large space in Wordpress

Mackenzie pro premium priority asked 4 years ago

Expected behavior*_I load my dependencies in functions.php and everything looks gorgeous._*Actual behavior*_everything has a big space on top._*Resources (screenshots, code snippets etc.){enter image description here

function theme_enqueue_scripts() {





wp_enqueue_style( 'css', get_template_directory_uri() . 'https://mdbcdn.b-cdn.net/mdb.min.css' );



       wp_enqueue_script( 'MDB', get_template_directory_uri() . 'https://mdbcdn.b-cdn.net/mdb.min.js', array(), '', true );

}

add_action( 'wp_enqueue_scripts', 'theme_enqueue_scripts' );


Grzegorz Bujański staff commented 4 years ago

It's hard to say what causes this error. Can you inspect this element and see what adds such large spaces? Maybe you are able to provide a link to the page where it will be visible? Have you added other CSS libraries or your own styles?


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: 3.2.0
  • Device: PC
  • Browser: Firefox
  • OS: Win10
  • Provided sample code: No
  • Provided link: No
Tags