Wsparcie » Motywy » Zdjecie w header.php

  • Rozwiązano Barbaros89

    (@barbaros89)


    Witam. Bardzo proszę o poradę. Wiem, ze dla Was to może banalne pytanie, ale ja dopiero się uczę.
    Czy ktoś może mi pomoc i napisać, gdzie powinnam umieścić kod html obrazka. Co wykasować, gdzie wkleić kod? Chce w nagłówku umieścić logo.

    Szablon: Fashionistas
    kod nagłówka:

    <?php
    /**
    * The Header for our theme.
    *
    * Displays all of the http://metamorfozaumyslu.pl/wp-content/uploads/2015/10/angel-silhouette-230140.zip <head> section and everything up till <div id=”main”>
    *
    * @package aThemes
    */
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <title><?php wp_title( ’-’, true, 'right’ ); ?></title>

    <meta charset=”<?php bloginfo( 'charset’ ); ?>”>
    <meta name=”viewport” content=”width=device-width”>

    <link rel=”profile” href=”http://gmpg.org/xfn/11″&gt;
    <link rel=”pingback” href=”<?php bloginfo( 'pingback_url’ ); ?>”>
    <?php if ( get_theme_mod(’site_favicon’) ) : ?>
    <link rel=”shortcut icon” href=”<?php echo esc_url(get_theme_mod(’site_favicon’)); ?>” />
    <?php endif; ?>

    <?php if ( get_theme_mod(’apple_touch_144′) ) : ?>
    <link rel=”apple-touch-icon” sizes=”144×144″ href=”<?php echo esc_url(get_theme_mod(’apple_touch_144′)); ?>” />
    <?php endif; ?>
    <?php if ( get_theme_mod(’apple_touch_114′) ) : ?>
    <link rel=”apple-touch-icon” sizes=”114×114″ href=”<?php echo esc_url(get_theme_mod(’apple_touch_114′)); ?>” />
    <?php endif; ?>
    <?php if ( get_theme_mod(’apple_touch_72′) ) : ?>
    <link rel=”apple-touch-icon” sizes=”72×72″ href=”<?php echo esc_url(get_theme_mod(’apple_touch_72′)); ?>” />
    <?php endif; ?>
    <?php if ( get_theme_mod(’apple_touch_57′) ) : ?>
    <link rel=”apple-touch-icon” href=”<?php echo esc_url(get_theme_mod(’apple_touch_57′)); ?>” />
    <?php endif; ?>

    <?php wp_head(); ?>
    </head>

    <body <?php body_class(); ?>>

    <nav id=”top-navigation” class=”main-navigation” role=”navigation”>
    <div class=”clearfix container”>
    <?php wp_nav_menu( array( 'container_class’ => 'sf-menu’, 'theme_location’ => 'top’ ) ); ?>
    </div>
    <!– #top-navigation –></nav>

    <header id=”masthead” class=”clearfix container site-header” role=”banner”>
    <div class=”site-branding”>
    <?php if ( get_theme_mod(’site_logo’) ) : ?>
    ” title=”<?php bloginfo(’name’); ?>”><img src=”<?php echo esc_url(get_theme_mod(’site_logo’)); ?>” alt=”<?php bloginfo(’name’); ?>” />
    <?php else : ?>
    <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1′ : 'div’; ?>
    <<?php echo $heading_tag; ?> class=”site-title”>
    ” title=”<?php echo esc_attr( get_bloginfo( 'name’, 'display’ ) ); ?>” rel=”home”>
    <?php bloginfo( 'name’ ); ?>

    </<?php echo $heading_tag; ?>>
    <div class=”site-description”><?php bloginfo( 'description’ ); ?></div>
    <?php endif; ?>
    <!– .site-branding –></div>

    <?php if ( ! dynamic_sidebar( 'sidebar-2′ ) ) : ?>
    <?php endif; ?>
    <!– #masthead –></header>

    <nav id=”main-navigation” class=”container main-navigation” role=”navigation”>
    Menu
    Close
    <?php wp_nav_menu( array( 'container_class’ => 'sf-menu’, 'theme_location’ => 'main’ ) ); ?>
    <!– #main-navigation –></nav>

    <div id=”main” class=”site-main”>
    <div class=”clearfix container”>

Viewing 2 replies - 1 through 2 (of 2 total)
  • są pewne ustalone gotowe funkcje dotyczące obrazka w nagłówku.

    jest to m.in.: custom_header()
    tak tylko na szybkiego teraz podpowie Ci.
    bo pisze z komórki. zajrzyj do motywów z serii twenty ten eleven fiveteen etc.
    możesz nawet skopiować z kod php z pliku function.php

    Thread Starter Barbaros89

    (@barbaros89)

    Rozwiązane 🙂 Zainstalowałam wtyczkę.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Temat ‘Zdjecie w header.php’ jest zamknięty na nowe odpowiedzi.