前提・実現したいこと
wordpressにてテーマのメニューを編集中、
外観の設定からメニュー構造を設定に関する問題です。
画面上部にあるホーム、コミュニティ、ゲームガイドの部分が箇条書きに書き換えられます。
html
1<h1><a href="<?php echo home_url('/'); ?>"><?php bloginfo('name'); ?></a></h1>
を利用して
ワードプレス上の固定ページを呼び出したところ
html
1<ul id="menu-mymenu" class="menu"> 2<li id="menu-item-25" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-25"><a href="https://rmultigamingsever.com/" aria-current="page">ホーム</a></li> 3<li id="menu-item-27" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-27"><a href="/community">コミュニティ</a></li> 4<li id="menu-item-28" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-28"><a href="/gameguide">ゲームガイド</a></li> 5</ul>
のようにulに変更されているこの原因と解決方法を教えてほしいです。
試したこと
1.謎に追加されているCSS
ソースを確認したところ
CSSのuser agent stylesheet
CSS
1ul, menu, dir { 2 display: block; 3 list-style-type: disc; 4 margin-block-start: 1em; 5 margin-block-end: 1em; 6 margin-inline-start: 0px; 7 margin-inline-end: 0px; 8 padding-inline-start: 40px; 9}
が怪しそうです。
http://kazukichi.hatenadiary.com/entry/2016/05/27/012546
上記のサイトから詳細度の情報がありそれが関係しているのでしょうか。
2.身に覚えのないreboot.scss
CSS
1ol, ul, dl { 2 margin-top: 0; 3 margin-bottom: 1rem; 4}
html
1<link rel="stylesheet" href="<?php echo get_template_directory_uri().'/css/bootstrap.css'; ?>"> 2<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri(); ?>">
上記のコードにより意図していないCSSを読み込んでしまっているのでしょうか。
補足情報(FW/ツールのバージョンなど)
windows10 ATOM bootstrap-4.3.1-dist wordpres5.1.1
C:\USERS\ユーザー名\DESKTOP\HP
│ FFFTP.lnk
│ start.bat
│
└─アップロードフォルダ
│ footer.php
│ functions.php
│ header.php
│ index.php
│ sidebar.php
│ style.css
│
├─css
│ bootstrap-grid.css
│ bootstrap-grid.css.map
│ bootstrap-grid.min.css
│ bootstrap-grid.min.css.map
│ bootstrap-reboot.css
│ bootstrap-reboot.css.map
│ bootstrap-reboot.min.css
│ bootstrap-reboot.min.css.map
│ bootstrap.css
│ bootstrap.css.map
│ bootstrap.min.css
│ bootstrap.min.css.map
│
└─js
bootstrap.bundle.js
bootstrap.bundle.js.map
bootstrap.bundle.min.js
bootstrap.bundle.min.js.map
bootstrap.js
bootstrap.js.map
bootstrap.min.js
bootstrap.min.js.map
html
1<!doctype html> 2 <html lang="ja"> 3 <head> 4 <!-- Required meta tags --> 5 <meta charset="utf-8"> 6 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> 7 8 <!-- Bootstrap CSS --> 9 <link rel="stylesheet" href="<?php echo get_template_directory_uri().'/css/bootstrap.css'; ?>"> 10 <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri(); ?>"> 11 12 <title><?php bloginfo('name'); ?></title> 13 </head> 14 <body> 15 <div id="header" class="container"> 16 <h1><a href="<?php echo home_url('/'); ?>"><?php bloginfo('name'); ?></a></h1> 17 <?php wp_nav_menu(); ?> 18 </div><!-- /header --> 19<?php wp_head(); ?> 20 21 <!-- Optional JavaScript --> 22 <!-- jQuery first, then Popper.js, then Bootstrap JS --> 23 <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> 24 <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> 25 <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> 26
css
1/* 2Theme Name: jinro_theme 3Theme URI: https://rmultigamingsever.com/ 4Author: the jinro_theme 5Author URI: https://rmultigamingsever.com/ 6Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small. 7Version: 1.0 8*/ 9 10body { 11 font-size: 14px; 12 font-family: Arial, Verdana; 13 margin: 0; 14} 15 16a { 17 text-decoration: none; 18} 19 20p { 21 padding-bottom: 14px; 22 margin: 0; 23 line-height: 1.8; 24} 25 26.container { 27 width: 100%; 28 margin: 0 auto; 29 overflow: hidden; 30} 31 32/* header */ 33 34#header { 35 36} 37 38/* posts */ 39 40#posts { 41 float: right; 42 width: 435px; 43 margin-top: 50px; 44} 45 46/* sidebar */ 47 48#sidebar { 49 float: left; 50 width: 300px; 51 font-weight: bold; 52 text-align: center; 53 margin-top: 100px; 54} 55 56/* footer */ 57 58#footer { 59 padding: 15px 0; 60 font-size: 12px; 61 color: #aaa; 62 border-top: 1px solid #ccc; 63} 64
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/03/17 04:36
2019/03/17 04:41
2019/03/17 04:57
2019/03/17 05:02
2019/03/17 08:40
2019/03/17 08:50
2019/03/17 10:09