Sistemas Corporativos Web - WordPress Aula05

865 views

Published on

Published in: Design, Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
865
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
11
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Sistemas Corporativos Web - WordPress Aula05

  1. 1. Aula 05Sistemas Corporativos Web Tersis Zonato 2011
  2. 2. Menus dinâmicos
  3. 3. Crie o arquivo functions.php
  4. 4. functions.php<?phpif(function_exists(register_sidebars)) register_sidebars(5);?>
  5. 5. header.php<?php wp_nav_menu(); ?>
  6. 6. style.css.menu ul { font-color: #fff; height: 25px; list-style-type: none; margin: 0; padding: 4px 0 0;}
  7. 7. style.css.menu li { float: left; margin: 0 10px; padding: 0; }
  8. 8. style.css.menu a { background: #000000 url("images/nav_bg.gif") repeat-x; color: #fff; display: block; font-weight: bold; height: 20px; padding: 4px 4px 0; text-decoration: none; }
  9. 9. style.css.menu a:hover { background: #ff0000 url("images/nav_hover.gif") repeat-x; border-bottom: solid 1px #fff; color: #fff; font-weight: bold; }
  10. 10. Muito obrigado! @tersis

×