• Jak edytować header.php zeby wstawić własny naglówek plik graficzny? Co gdzie trzeba pozmieniać?

    <?php
    /**
    * The Header for our theme.
    *
    * Displays all of the <head> section
    *
    * @package Catch Themes
    * @subpackage Simple_Catch
    * @since Simple Catch 1.0
    */
    ?>
    <!DOCTYPE html PUBLIC „-//W3C//DTD XHTML 1.0 Transitional//EN” „http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; <?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 wp_title( '|’, true, 'right’ ); ?></title>

    <link rel=”stylesheet” type=”text/css” media=”all” href=”<?php echo get_stylesheet_uri(); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(’pingback_url’); ?>” />
    <?php
    /* Always have wp_head() just before the closing </head>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to add elements to <head> such
    * as styles, scripts, and meta tags.
    */
    wp_head();
    ?>

Viewing 6 replies - 1 through 6 (of 6 total)
  • Jaki motyw ? To cały plik header.php ?

    Thread Starter Amon87

    (@amon87)

    Motyw Simple Catch

    Faktycznie to nie był cały plik, poniżej całość:

    <?php
    /**
    * The Header for our theme.
    *
    * Displays all of the <head> section
    *
    * @package Catch Themes
    * @subpackage Simple_Catch
    * @since Simple Catch 1.0
    */
    ?>
    <!DOCTYPE html PUBLIC „-//W3C//DTD XHTML 1.0 Transitional//EN” „http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; <?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 wp_title( '|’, true, 'right’ ); ?></title>

    <link rel=”stylesheet” type=”text/css” media=”all” href=”<?php echo get_stylesheet_uri(); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(’pingback_url’); ?>” />
    <?php
    /* Always have wp_head() just before the closing </head>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to add elements to <head> such
    * as styles, scripts, and meta tags.
    */
    wp_head();
    ?>
    </head>
    <body <?php body_class(); ?>>
    <div id=”header”>
    <div class=”top-bg”></div>
    <div class=”layout-978″>
    <?php
    // Funcition to show the header logo, site title and site description
    if ( function_exists( 'simplecatch_headerdetails’ ) ) :
    simplecatch_headerdetails();
    endif;
    ?>

    <div class=”social-search”>
    <?php
    // simplecatch_headersocialnetworks displays social links given from theme option in header
    if ( function_exists( 'simplecatch_headersocialnetworks’ ) ) :
    simplecatch_headersocialnetworks();
    endif;
    // get search form
    get_search_form();
    ?>
    </div><!– .social-search –>
    <div class=”row-end”></div>
    <div id=”mainmenu”>
    <?php wp_nav_menu( array( 'theme_location’ => 'primary’ ) ); ?>
    </div><!– #mainmenu–>
    <div class=”row-end”></div>

    <?php
    // Display slider in home page and breadcrumb in other pages
    if ( function_exists( 'simplecatch_sliderbreadcrumb’ ) ) :
    simplecatch_sliderbreadcrumb();
    endif;
    ?>
    </div><!– .layout-978 –>
    <div class=”bottom-bg”></div>
    </div><!– #header –>

    Nie chce mi sie pobierac szablonu ;p
    Podja linka do strony, wyszukam miejsce gdzie wkleic kod html

    Wszystko będzie w pliku css pod odpowiednim identyfikatorem, jako background image. Musisz się wysilić i wkleić tutaj kod z tego albo sam znaleźć 🙂

    Thread Starter Amon87

    (@amon87)

    hmm, wklejam kod gdzie jest background image, coś w tym trzeba zmienić?

    /* =Header
    ———————————————– */
    #header {
    background-image: url(images/header-bg.jpg);
    border-bottom: 1px solid #dfdfdf;
    }
    #header .top-bg, #footer {
    background:url(images/header-top-footer-bg.jpg) repeat-x;
    clear: both;
    }
    #header .top-bg {
    background-position:center bottom;
    height:16px;
    border-bottom:4px solid #ccc;
    }
    #header .bottom-bg {
    border-bottom: 1px solid #fefefe;
    padding-top: 20px;
    }
    /* Logo Tile */
    #header .logo-wrap {
    padding-left:20px;
    float:left;
    margin-top:54px;
    min-width: 610px;
    }
    #site-logo {
    display: inline-block;
    float: left;
    padding-bottom: 0;
    }
    #site-logo a img {
    float: left;
    height: auto;
    max-width: 958px;
    padding-right: 20px;
    }
    #site-details {
    display: inline-block;
    float: left;
    max-width: 958px;
    padding-right: 20px;
    }
    h1#site-title {
    font-size: 45px;
    font-family: 'Lobster’;
    font-weight:normal;
    padding-bottom:0px;
    }
    h1#site-title a {
    line-height:54px;
    }
    h1#site-title a:hover {
    color: #444444;
    }
    h2#site-description {
    font:14px Arial, Helvetica, sans-serif;
    color:#666;
    padding:8px 0 0 0;
    }

    Thread Starter Amon87

    (@amon87)

    Jakiś inny fragment kodu wkleić? Czy w tym coś trzeba dodać?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Temat ‘Własny nagłówek’ jest zamknięty na nowe odpowiedzi.