Suporte » Temas e templates » Colocar css e js do bootstrap no thema

  • Resolvido Joabe Anderson

    (@joabemillenium)


    alguem pode me ajudar nao estou conseguindo setar o meu css e js do bootstrap no meu thema.

    <!DOCTYPE html>
    <html lang="pt-br">
        <head>
            <meta charset="utf-8">
            <title>Millenium Software</title>
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <link  href="<?php bloginfo('stylesheet_url');  ?>" rel="stylesheet" type="text/css" media='all'/>
            <link href="css/bootstrap.min.css" rel="stylesheet">
            <script src="js/bootstrap.min.js"></script>
            <link href="style.css" rel="stylesheet">
            <link href='http://fonts.googleapis.com/css?family=Domine:400,700' rel='stylesheet' type='text/css'>
            <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script>
    
            <!--[if lt IE 9]>
                  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
                <![endif]-->
    
        </head>
A visualizar 1 resposta (de um total de 1)
  • Os links para o js e css estão errados, poderás usar o código seguinte

    <link href="<?php bloginfo('template_url'); ?>/css/bootstrap.min.css" rel="stylesheet">
    <script src="<?php bloginfo('template_url'); ?>/js/bootstrap.min.js"></script>

    O código acima assume que as pastas /css e /j se encontram dentro da pasta do teu tema.

A visualizar 1 resposta (de um total de 1)
  • O tópico ‘Colocar css e js do bootstrap no thema’ está fechado a novas respostas.