← WordPress

K2 - Criar link no menu

Lida 4612 vezes

Offline

[A]visaPT 
Membro
Mensagens 256 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Bem instalei este theme no meu wordpres: Unsleepable 2 0.9.1
Só que agora eu queria criar um menu com o do Sobre só que a linkar para o fórum:
Veem o menu com o Sobre:
http://www.webathigh.com/portal/

O script do meu header é:

Código: [Seleccione]
<?php load_theme_textdomain&#40;'k2_domain'&#41;; ?>
<!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">



<title><?php wp_title&#40;''&#41;; if &#40;function_exists&#40;'is_tag'&#41; and is_tag&#40;&#41;&#41; &#123; ?>Tag Archive for <?php echo $tag; &#125; if &#40;is_archive&#40;&#41;&#41; &#123; ?> archive<?php &#125; elseif &#40;is_search&#40;&#41;&#41; &#123; ?> Search for <?php echo $s; &#125; if &#40; !&#40;is_404&#40;&#41;&#41; and &#40;is_search&#40;&#41;&#41; or &#40;is_single&#40;&#41;&#41; or &#40;is_page&#40;&#41;&#41; or &#40;function_exists&#40;'is_tag'&#41; and is_tag&#40;&#41;&#41; or &#40;is_archive&#40;&#41;&#41; &#41; &#123; ?> at <?php &#125; ?> <?php bloginfo&#40;'name'&#41;; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo&#40;'charset'&#41;; ?>" />
<meta name="generator" content="WordPress <?php bloginfo&#40;'version'&#41;; ?>" />
<meta name="template" content="K2 <?php if &#40;function_exists&#40;'k2info'&#41;&#41; &#123; k2info&#40;'version'&#41;; &#125; ?>" />
  <meta name="description" content="<?php bloginfo&#40;'description'&#41;; ?>" />
 
<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo&#40;'stylesheet_url'&#41;; ?>" />
<link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo&#40;'template_url'&#41;; ?>/css/print.css" />
<?php /* Custom Style */ if &#40;get_option&#40;'k2scheme'&#41; != ''&#41; &#123; ?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php k2info&#40;'scheme'&#41;; ?>" />
<?php &#125; ?>

<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo&#40;'rss2_url'&#41;; ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo&#40;'rss_url'&#41;; ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo&#40;'atom_url'&#41;; ?>" />

<?php if &#40;is_single&#40;&#41; or is_page&#40;&#41;&#41; &#123; ?>
<link rel="pingback" href="<?php bloginfo&#40;'pingback_url'&#41;; ?>" />
<?php &#125; ?>

<script type="text/javascript" src="<?php bloginfo&#40;'template_directory'&#41;; ?>/js/k2functions.js"></script>
<script type="text/javascript" src="<?php bloginfo&#40;'template_directory'&#41;; ?>/js/prototype.js.php"></script>
<script type="text/javascript" src="<?php bloginfo&#40;'template_directory'&#41;; ?>/js/effects.js.php"></script>
<script type="text/javascript" src="<?php bloginfo&#40;'template_directory'&#41;; ?>/js/slider.js.php"></script>

<?php /* Live Commenting */ if &#40;&#40;get_option&#40;'k2livecommenting'&#41; == 1&#41; and &#40;&#40;is_page&#40;&#41; or is_single&#40;&#41;&#41; and &#40;!isset&#40;$_GET['jal_edit_comments'&#93;&#41;&#41; and &#40;'open' == $post-> comment_status&#41; or &#40;'comment' == $post-> comment_type&#41; &#41;&#41; &#123; ?>
<script type="text/javascript" src="<?php bloginfo&#40;'template_directory'&#41;; ?>/js/comments.js.php"></script>
<?php &#125; ?>

<?php /* LiveSearch */ if &#40;get_option&#40;'k2livesearch'&#41; == 1&#41; &#123; ?>
<script type="text/javascript" src="<?php bloginfo&#40;'template_directory'&#41;; ?>/js/livesearch.js.php"></script>
<?php &#125; ?>

<?php /* Rolling Archives */ if &#40;get_option&#40;'k2rollingarchives'&#41; == 1&#41; &#123; ?>
<script type="text/javascript" src="<?php bloginfo&#40;'template_directory'&#41;; ?>/js/rollingarchives.js.php"></script>
<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo&#40;'template_directory'&#41;; ?>/css/rollingarchives.css" />
<?php &#125; ?>

<?php /* Hide Author Elements */ if &#40;!is_user_logged_in&#40;&#41; and &#40;is_page&#40;&#41; or is_single&#40;&#41;&#41; and &#40;$comment_author = $_COOKIE['comment_author_'.COOKIEHASH&#93;&#41; and &#40;'open' == $post-> comment_status&#41; or &#40;'comment' == $post-> comment_type&#41; &#41; &#123; ?>
<script type="text/javascript">
new FastInit(OnLoadUtils);
</script>
<?php &#125; ?>

<?php wp_get_archives&#40;'type=monthly&format=link'&#41;; ?>

<?php wp_head&#40;&#41;; ?>

</head>

<body class="<?php k2_body_class&#40;&#41;; ?>" <?php k2_body_id&#40;&#41;; ?>>

<div id="page">

<div id="header">
             <div class="top">

            <div id="title"><h1><a title="Return to the front page" href="<?php echo get_settings&#40;'home'&#41;; ?>"><?php bloginfo&#40;'name'&#41;; ?></a></h1>
                 </div>

<ul id="menu">
<?php wp_list_pages&#40;'sort_column=menu_order&depth=1&title_li'&#41;; ?>

</ul>
               
    </div>

</div>

<hr />


Como faço para criar um menu igual ao do Sobre com o nome: Fórum a linkar para o fórum...
Offline

[A]visaPT 
Membro
Mensagens 256 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Então pessoal ninguém me consegue ajudar?
Offline

cenourinha 
Elite
Mensagens 4094 Gostos 21
Troféus totais: 34
Trófeus: (Ver todos)
Mobile User Apple User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4

Código: [Seleccione]
<ul id="menu">
                           <?php wp_list_pages&#40;'sort_column=menu_order&depth=1&title_li'&#41;; ?>

      </ul>


substitui por :

Código: [Seleccione]
<ul id="menu">
                           <?php wp_list_pages&#40;'sort_column=menu_order&depth=1&title_li'&#41;; ?>

     <li><a href="linkdoforum">Forum</a></li></ul>
Offline

[A]visaPT 
Membro
Mensagens 256 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Obrigado funcionou!!
Offline

cenourinha 
Elite
Mensagens 4094 Gostos 21
Troféus totais: 34
Trófeus: (Ver todos)
Mobile User Apple User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4

Claro que funcionou, não me chama-se eu Teo... cenourinha
Offline

[A]visaPT 
Membro
Mensagens 256 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Wordpress é o teu leme! Continua assim já aprendi +1 coisa hoje :wink:
Offline

[A]visaPT 
Membro
Mensagens 256 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Mas tenho um dúvida se eu quiser meter o forum 1º que as categorias como faço se eu trocar fica com bug no site... Como fica o código...
1º o forum depois as páginas...
Offline

cenourinha 
Elite
Mensagens 4094 Gostos 21
Troféus totais: 34
Trófeus: (Ver todos)
Mobile User Apple User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4

Código: [Seleccione]
<ul id="menu">
                           <?php wp_list_pages&#40;'sort_column=menu_order&depth=1&title_li'&#41;; ?>

      </ul>


substitui por :

Código: [Seleccione]
<ul id="menu">
<li><a href="linkdoforum">Forum</a></li>
                           <?php wp_list_pages&#40;'sort_column=menu_order&depth=1&title_li'&#41;; ?>

   </ul>
Offline

[A]visaPT 
Membro
Mensagens 256 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Deu Resolvido de vês!!
Se puderes ajudar nesta dúvida:
http://forum.maistrafego.pt/index.php?topic=5185

Bem haja... :wink: