Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #393899

    Hello again,
    I need to add somme external file in the header of the html code.
    How could I do that, is there a field where I could add this code?
    Thank you.

    #393919

    Hey cisqo!

    Please see – http://codex.wordpress.org/Function_Reference/wp_enqueue_script
    You should refer to example hook. If you could please elaborate, we may help you better :)

    Cheers!
    Yigit

    #393939

    Well, i need to add the bootstrap css file for my form.
    <html>
    <head>
    <meta name=”viewport” content=”width=device-width, initial-scale=1″>
    <link rel=”stylesheet” href=”http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css”&gt;
    </head>
    I am not sure that the link you gave me does that. Does it?
    Thx.

    #394206

    Hi!

    Please add following code to Functions.php file in Appearance > Editor

    function add_bootstrap_css() {
    	wp_enqueue_style( 'bootstrap', 'http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css' );
    }
    
    add_action( 'wp_enqueue_scripts', 'add_bootstrap_css' );

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.