Contenu connexe
Similaire à Sistemas Corporativos Web - WordPress Aula03
Similaire à Sistemas Corporativos Web - WordPress Aula03 (20)
Plus de Tersis Zonato (20)
Sistemas Corporativos Web - WordPress Aula03
- 10. Vamos utilizar:
• index.php: estrutura/código
• style.css: estilo
• header.php: cabeçalho
• footer.php: rodapé
• sidebar.php: barra lateral
• screenshot.png: imagem/preview do tema
- 14. Copie o arquivo screenshot.png
para a pasta:
/wp-content/themes/novotema/
- 19. header.php
• Inserir na TAG <head>
<meta name="generator"
content="WordPress <?php
bloginfo('version'); ?>" />
<title><?php bloginfo('name');
wp_title(); ?></title>
- 20. header.php
• Inserir na TAG <head>
<link rel="stylesheet" href="<?php
bloginfo('stylesheet_url'); ?>"
type="text/css" media="screen" />
<?php wp_head(); ?>
- 21. header.php básico:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?
>" />
<title><?php bloginfo('name'); wp_title(); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>"
type="text/css" media="screen" />
<?php wp_head(); ?>
</head>
<body>
- 26. header.php
index.php
footer.php
Até o momento...
- 29. index.php
<h1>
<?php the_title(); ?>
</h1>
<div class="date">
<?php the_time('d/M/Y . G:i'); ?>
</div>
<div class="post">
<?php the_content(); ?>
</div>