• <?php get_header('top'); ?>
    <div class="contents clearfix">

    下記太字の記述はスライダーで、複数の画像が入っています。画像の枚数を減らしたいので、記述を編集したいのですがやり方がわかりません。(退職した方が制作されたWPで、引き継いだ形です。)

    コンソールで確認すると、ここに下記スライダー(太字の部分)が入っており表示もされているが、ソースを見るとここには何もないです。テーマファイルの中にも記述はなさそうで、どこから読んでいるのか分かりません。このファイルはどこにあるのでしょうか?

    WP初めてで質問の仕方が違ったら、申し訳ございません。お知恵をお借りできると嬉しいです。
    何卒よろしくお願いいたします。



    <div style="position: absolute; z-index: -1; overflow: hidden; background: url(&quot;https://00-clinic.jp/hp/wp-content/themes/00-clinic/images/top-img02.png&quot;) 50% 50% / cover repeat scroll padding-box border-box rgba(0, 0, 0, 0); top: 76.7969px; left: 0px; width: 1386px; height: 400px; margin: 0px; border-width: 0px; border-style: none; border-color: rgb(89, 86, 86);"><div style="position: absolute; z-index: -1; overflow: hidden; background: url(&quot;https://00-clinic.jp/hp/wp-content/themes/00-clinic/images/top-img01.png&quot;) 50% 50% / cover repeat scroll padding-box border-box rgba(0, 0, 0, 0); top: 0px; left: 0px; width: 1386px; height: 400px; margin: 0px; border: none; opacity: 0;"></div></div>



    <div class="top-img"></div>

    <section class="nav clearfix">
    <div class="inner clearfix">
    <div class="mark"></div>
    <div class="logo">〇〇clinic</div>
    <ul class="clearfix">
    <li><a href="<?php echo home_url(); ?>/about-us/">texttexttext</a></li>
    <li><a href="<?php echo home_url(); ?>/disease/">texttexttext</a></li>
    </ul>
    </div>
    </section>
    </div>
    <?php get_footer(); ?>
    • This topic was modified 8 months, 3 weeks ago by nandooo.
    • This topic was modified 8 months, 3 weeks ago by nandooo.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m assuming you posted the page’s HTML and now you need to determine how it was generated? Are you sure it’s index.php? If not, try using the Template Debugger plugin to learn the right template.

    Once you find the right template, try to determine what code is generating the HTML based on where it appears relative to other template output. You’re likely looking for a function call that executes code elsewhere that queries for which images to show on the slider. If you can determine what sort of query is made you should be able to modify the right data to achieve your goal.

Viewing 1 replies (of 1 total)
  • The topic ‘index.phpに書いてある,記述の場所が分からない’ is closed to new replies.