サポート » 使い方全般 » ヘッダーに動的imageを挿入したのですが・・・。

  • masayuki-nishi

    (@masayuki-nishi)


    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <meta name=”viewport” content=”width=device-width, user-scalable=yes, maximum-scale=1.0, minimum-scale=1.0″>
    <meta name=”description” content=”<?php echo trim(wp_title(”, false)); if(wp_title(”, false)) { echo ‘ – ‘; } bloginfo(‘description’); ?>”>
    <title><?php global $page, $paged;
    wp_title( ‘|’, true, ‘right’ );
    bloginfo( ‘name’ );
    $site_description = get_bloginfo( ‘description’, ‘display’ );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo ” | $site_description”;
    if ( $paged >= 2 || $page >= 2 )
    echo ‘ | ‘ . sprintf( __( ‘Page %s’, ‘theme446_rwd’ ), max( $paged, $page ) );
    ?></title>
    <link rel=”profile” href=”http://gmpg.org/xfn/11″&gt;
    <link rel=”stylesheet” type=”text/css” media=”all” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>”>
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
    <!–[if lt IE 9]>
    <script src=”<?php bloginfo(‘template_url’); ?>/js/html5.js”></script>
    <script src=”<?php bloginfo(‘template_url’); ?>/js/css3-mediaqueries.js”></script>
    <![endif]–>
    <?php wp_head(); ?>
    <script src=”<?php bloginfo(‘template_url’); ?>/js/jquery1.4.4.min.js”></script>
    <script src=”<?php bloginfo(‘template_url’); ?>/js/script.js”></script>
    </head>
    <body>
    <header id=”header” role=”banner”>
    <div class=”inner”>
    <h1><?php bloginfo( ‘description’ ); ?></h1>
    <h2>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php theme446_rwd_print_Logo();?></h2>
    <div class=”contact”><?php theme446_rwd_print_contactInfo();?></div>
    </div>

    </header>

    <nav id=”mainNav”>
    <div class=”inner”>
    <span>MENU</span>
    <div class=”panel”>
    <?php $topNav = wp_nav_menu( array( ‘container’ => ”, ‘items_wrap’ => ‘

      %3$s

    ‘,’theme_location’=>’primary’,’walker’ => new description_walker()) );?>
    </div>
    </div>
    </nav>

    上記のタグに動的imageのタグ

    <?php
    echo do_shortcode(“[metaslider id=40]”);
    ?>

    を挿入したいのですがどこに挿入してよいのか分かりません。
    どなたかわかる方がおりましたら宜しくお願い致します。

5件の返信を表示中 - 1 - 5件目 (全5件中)
  • 천궁 메텔

    (@digitmaetel)

    どう見せたいかなので、サイトタイトルの上でもしたでも、グローバルナビゲーションの上でもしたでも任意の場所で良いでしょう。

    トピック投稿者 masayuki-nishi

    (@masayuki-nishi)

    補足です。何度もすみません。

    http://marstyle75.hippy.jp/katokomuten/

    のヘッダーの位置に配置したいのですがどこのタグを変更すればいいのか分かりません。

    천궁 메텔

    (@digitmaetel)

    <?php
    echo do_shortcode(“[metaslider id=40]”);
    ?>

    ショートコードはプラグインが出力したコードだと推察します。
    繰り返しになりますが、そのまま挿入するなり、差し替えるでよいでしょう。

    トピック投稿者 masayuki-nishi

    (@masayuki-nishi)

    度々、質問すいません。
    差し替える場所はどこでしょうか?
    何分、初心者なもので(^^;

    천궁 메텔

    (@digitmaetel)

    グローバルナビゲーションの上に入れるのか、現在のヘッダー画像と差し替えたいのか、それはご自身で決めることです。
    smart146 テーマがどういう構造になっているのかわからないので、話は進みません。

5件の返信を表示中 - 1 - 5件目 (全5件中)
  • トピック「ヘッダーに動的imageを挿入したのですが・・・。」には新たに返信することはできません。