Respuesta a: ocultar paginas en header

Inicio Foros WordPress Themes y Dise帽o ocultar paginas en header Respuesta a: ocultar paginas en header

#26782

joejuan
Participante

mil disculpas, pero me equivoqu茅 a poner el c贸digo 馃檨
este es:
[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
<?php require_once get_template_directory()."/my_functions.php"; ?>
<html xmlns="http://www.w3.org/1999/xhtml&quot; <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11"&gt;
<meta http-equiv="Content-Type" content="<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>" />
<title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<meta name="generator" content="WordPress <?php bloginfo(‘version’); ?>" /> <!– leave this for stats –>
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_url’); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’); ?> RSS Feed" href="<?php bloginfo(‘rss2_url’); ?>" />
<link rel="pingback" href="<?php bloginfo(‘pingback_url’); ?>" />
<?php wp_head(); ?>

</head>
<body>

<div id="wrap">
<div id="container">

<div id="header">

<div id="logo">/">/images/logo.gif" width="465px" height="50px" alt="Css Gallery" title="<?php bloginfo(‘name’); ?>" /></div>

<div id="menu">

    <li class="main"> href="<?php bloginfo(‘url’); ?>/">Home
    <?php
    $pages = my_get_pages();
    if ($pages) {
    foreach ($pages as $page) {
    $page_id = $page->ID;
    $page_title = $page->post_title;
    $page_name = $page->post_name;
    if ($page_name == "archives") {
    // (is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ‘ ‘:$selected=”;
    (is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ‘ id="current"’:$selected=”;
    echo "<li".$selected." class="normal">Archivesn";
    }
    elseif($page_name == "about") {
    (is_page($page_id))?$selected = ‘ id="current"’:$selected=”;
    echo "<li class="normal"><a".$selected." href="".get_page_link($page_id)."">Aboutn";
    }
    elseif ($page_name == "contact") {
    (is_page($page_id))?$selected = ‘ id="current"’:$selected=”;
    echo "<li class="normal"><a".$selected." href="".get_page_link($page_id)."">Contactn";
    }
    elseif ($page_name == "about_short") {/*ignore*/}
    else {
    (is_page($page_id))?$selected = ‘ id="current"’:$selected=”;
    echo "<li class="normal"><a".$selected." href="".get_page_link($page_id)."">$page_titlen";
    }
    }
    }
    /* Many thanks to Blix creator Sebastian Schmieg for his PHP scripting, get Blix – http://www.kingcosmonaut.de/blix/ */
    ?>

</div>
</div>
<div id="description"><h1><?php bloginfo(‘name’); ?>:</h1> <h2><?php bloginfo(‘description’); ?> – <?php mdv_post_count(); ?> websites</h2></div>[/code]

Pin It on Pinterest

Ir al contenido