トップページの画像を「meta slider」のスライドショーに変更したいです。welcartというテーマです。
header.phpのどこにショートコードを貼り付けたら良いのか教えていただきたいです。
宜しくお願いいたします。
以下 挿入したい meta slider ショートコード
<?php echo do_shortcode('[metaslider id="176"]'); ?>
このheader.phpのどこに上のコードをはりつけ、何をさくじょしたらいいのか?
なにもわからないのでよろしくお願いします。
<!DOCTYPE HTML> <html lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,user-scalable=yes"> <meta name="format-detection" content="telephone=no"> <title><?php bloginfo('name'); ?></title> <meta name="description" content="<?php bloginfo('description');?>" /> <meta name="author" content="MAYUMI OKANISHI 岡西 真由美" /> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/common.css" type="text/css"> <link href="https://fonts.googleapis.com/earlyaccess/notosansjapanese.css" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css?family=Prata&subset=cyrillic-ext,vietnamese" rel="stylesheet"> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <script type="text/javascript"> document.createElement('main'); </script> <![endif]--> <?php wp_head(); ?> </head> <body id="top"<?php if(is_home()){ echo " class='index_content'"; } else { echo " class='page_content'"; } ?>> <header> <h1><a href="<?php bloginfo('url');?>" class="img_link"><img class="img100" src="<?php echo get_template_directory_uri(); ?>/img/logo.png" alt="MAYUMI OKANISHI 岡西 真由美"></a></h1> <div id="dr-menu" class="tb_display"><span></span></div> <nav class="menu" id="dr-slide"> <ul> <li class="parent"><a href="<?php bloginfo('url');?>/about">ABOUT</a> <?php if(is_page("about")){ ?> <ul class="pc_display"> <li><a href="#menu01" class="Down">日本ビューティーボディ協会について</a></li> <li><a href="#menu02" class="Down">協会理念</a></li> <li><a href="#menu03" class="Down">活動内容</a></li>
回答1件
あなたの回答
tips
プレビュー