• Resolved daisin78s

    (@daisin78s)


    ビジュアルエディタにて吹き出しの設定をした後

    プレビューで記事の表示を確認すると、画像とセリフのみしか反映されていません。

    カスタム投稿タイプのnewsにて記事作成をしています。

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author YAHMAN

    (@back2nature)

    Word BalloonはWordPress標準機能のショートコードを利用しています。

    Word Balloon以外のショートコードは適切に表示されますか?

    カスタム投稿タイプとの事ですが、
    記事内容を表示する部分で the_content 関数以外の方法を使っていませんか?

    Thread Starter daisin78s

    (@daisin78s)

    Word Balloon以外のショートコードも表示されないようです。。
    web制作会社に制作依頼をした自作テーマを使っています。
    標準機能がオフになっていたりしますがショートコードをONにする方法がわかりません。

    newsのphpを確認しましたが、the_content関数が使用されていました。

    Thread Starter daisin78s

    (@daisin78s)

    Add Quick tagは動作してます。

    Plugin Author YAHMAN

    (@back2nature)

    Add Quick tagのみ動作すると言うことでしょうか?

    Word Balloon以外で動作しないショートコードはどの様な物がありますか?

    記事内容を表示する部分のソースコード等の開示はできませんか?

    開示されている情報のみでは、判断が難しいです。

    Plugin Author YAHMAN

    (@back2nature)

    wp_footerはお使いになっていますか?

    これが無いとスタイルシートが読み込まれません。

    Thread Starter daisin78s

    (@daisin78s)

    返信が遅くなり申し訳ございません。
    カスタム投稿タイプのdetail.phpのソースコードです。

    FTPファイル全体を検索したところ wp_footerの記述が至るところにあることはわかりますが
    使用されているかどうかは不明です。

    AddQuicktagに関しては、HTMLをAddQuicktagに登録して、カスタム投稿タイプのnewsに適用されるdetail.cssを書き換えるという形をとっているだけなので、ショートコードは動作していないと思います。
    知識不足で申し訳ございません。

    <?php
    require_once(dirname(__FILE__).”/../common/php/init.php”);
    if(basename($_SERVER[“REQUEST_URI”]) == “detail.php”){
    require_once(dirname(__FILE__).’/../404.php’);
    die();
    }
    $absp = get_bloginfo(“url”);
    if(IS_HTTPS){
    $page_path = strpos($absp, “https://&#8221;)? str_replace($absp,””, “https://&#8221;.$_SERVER[“HTTP_HOST”].$_SERVER[“REQUEST_URI”]):str_replace($absp,””, “https://&#8221;.$_SERVER[“HTTP_HOST”].$_SERVER[“REQUEST_URI”]);
    $page_path = preg_replace(“/(.*)(\?(.*))/”, “$1”,$page_path);
    }else{
    $page_path = strpos($absp, “https://&#8221;)? str_replace($absp,””, “https://&#8221;.$_SERVER[“HTTP_HOST”].$_SERVER[“REQUEST_URI”]):str_replace($absp,””, “https://&#8221;.$_SERVER[“HTTP_HOST”].$_SERVER[“REQUEST_URI”]);
    $page_path = preg_replace(“/(.*)(\?(.*))/”, “$1″,$page_path);
    }
    $page = explode(‘/’,$page_path);
    $home = get_relative_home_path($page);
    $home_url = get_absolute_home_path($page);

    the_post();
    $post_id = get_the_ID();
    $thumb_id = get_post_thumbnail_id($post_id);
    $thumb_img = wp_get_attachment_image_src( $thumb_id , ‘medium’ );
    $thumb_img = (isset($thumb_img[0]) && !empty($thumb_img[0]))?$thumb_img[0]:”;
    $terms = get_the_terms($post_id,”news_category01″);
    $term = ”;
    if(isset($terms[0])){
    $term = $terms[0];
    }
    $tax_slug = ”;
    $tax_name = ”;

    $prevpost = get_adjacent_post(false,”,false);
    $nextpost = get_adjacent_post(false,”,true);

    $head_title = get_the_title().’ | 新着情報’.SN;
    $head_keywords = ‘新着情報,リサイクルショップ,買取,名古屋,昭和区,大進洋行’;
    $head_description = ‘名古屋市昭和区の買取専門店「大進洋行」の新着情報はこちらのページをご覧ください。’;
    ?>
    <!doctype html>
    <html lang=”ja”>
    <head>
    <meta charset=”UTF-8″ />
    <title><?php echo $head_title; ?></title>
    <meta name=”keywords” content=”<?php echo $head_keywords; ?>” />
    <meta name=”description” content=”<?php echo $head_description; ?>” />

    <!– OGP –>
    <meta property=”og:title” content=”<?php echo $head_title; ?>” />
    <meta property=”og:type” content=”website” />
    <meta property=”og:url” content=”<?php echo $home_url.$_SERVER[“REQUEST_URI”]; ?>” />
    <meta property=”og:site_name” content=”<?php echo SN; ?>” />
    <meta property=”og:description” content=”<?php echo $head_description; ?>” />
    <meta property=”og:image” content=”<?php echo $home_url; ?>/common/img/ogp.png” />

    <!– twitter card –>
    <meta name=”twitter:card” content=”summary” />
    <?php /* <meta name=”twitter:site” content=”@xxx” /> */ ?>
    <meta name=”twitter:title” content=”<?php echo $head_title; ?>” />
    <meta name=”twitter:description” content=”<?php echo $head_description; ?>” />
    <meta name=”twitter:image” content=”<?php echo $home_url; ?>/common/img/ogp.png” />
    <meta name=”twitter:url” content=”<?php echo $home_url.$_SERVER[“REQUEST_URI”]; ?>” />

    <?php include_template_part(“head”,$page_path); ?>
    <link rel=”stylesheet” href=”<?php echo $home; ?>/news/css/detail.css?190725″ />
    <?php include_template_part(“add_head”,$page_path); /* </head>直前に必ず配置してください */ ?>
    </head>
    <body>
    <?php include_template_part(“body”,$page_path); /* <body>開始直後に必ず配置してください */ ?>
    <div id=”wrapper”>
    <?php include_template_part(“header”,$page_path); ?>

    <main id=”main”>
    <section class=”pagemain” style=”background-image: url(<?php echo $home; ?>/news/img/main_bg.jpg);”>
    <div class=”pagemain-in”>
    <h1 class=”pagemain__ttl”>新着情報</h1>
    <p class=”pagemain__sub”>NEWS</p>
    </div>
    </section>

    <div class=”main-wrp”>
    <div class=”breadcrumb”>
    <ul class=”breadcrumb-list”>
    <li class=”breadcrumb__item”>/”>TOP
    <li class=”breadcrumb__item”>新着情報

    </div><!– .breadcrump –>

    <div class=”main-cnt js-fixside-wrapper block-flex–reverse”>
    <?php require_once(dirname(__FILE__).”/php/side.php”); ?>
    <!– lcl-news –>
    <section class=”lcl-news” id=”news”>

    <div class=”lcl-news__ttl-wrap”>
    <div class=”lcl-news__top”>
    <data class=”lcl-news__top-data”><?php the_time(“Y.m.d”); ?></data>
    <?php if(!empty($term)): ?><span class=”lcl-news__top-cat news-cat–<?php echo $term->slug; ?>”><?php echo $term->name; ?></span><?php endif; ?>
    </div>
    <h1 class=”lcl-news__ttl”><?php the_title(); ?></h1>
    </div>

    <div class=”lcl-cnt”>

    <?php the_content(); ?>
    <!–
    <p>
    この度大進洋行は昭和区に新たに店舗を開設し、<br>
    2018年1月5日より営業を開始することになりました?<br>
    これもひとえに皆様方のご愛顧とご芳情の賜物と<br>
    深く感謝を申し上げます。
    </p>
    <h2>h2タイトル</h2>
    <p>テキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいります</p>
    <h3>h3タイトル</h3>
    <p>テキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいります</p>
    <h4>h4タイトル</h4>
    <p>テキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいります</p>
    <h5>h5タイトル</h5>
    <p>テキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいります</p>
    <h6>h6タイトル</h6>
    <p>テキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいりますテキストがはいります</p>

    • ダミー
    • ダミー
    • ダミー
    1. ダミー
    2. ダミー
    3. ダミー

    ダミー –>
    </div>

    <nav class=”pager”>
    <div class=”pager-btn-wrp”>
    <?php
    if(!empty($prevpost)):
    $id = $prevpost->ID;
    ?>
    “><span class=”linkbtn-in”>前を見る</span>
    <?php
    endif;
    ?>
    </div>
    <div class=”pager-btn-wrp–center”>
    /news/”><span class=”linkbtn-in”>記事一覧</span>
    </div>
    <div class=”pager-btn-wrp”>
    <?php
    if(!empty($nextpost)):
    $id = $nextpost->ID;
    ?>
    “><span class=”linkbtn-in”>次を見る</span>
    <?php
    endif;
    ?>
    </div>
    </nav>
    </section>
    </div><!– ./main-cnt –>
    </div><!– ./main-wrp –>

    </main><!– #main –>

    <?php include_template_part(“footer”,$page_path); ?>
    <div class=”f-seo”>
    <h2 class=”f-seo__txt”>名古屋市昭和区の買取専門店大進洋行の新着情報ページです。買取ショップ大進洋行の最新情報についてはこちらのページをご覧ください。</h2>
    </div><!– ./f-seo –>
    <?php include_template_part(“footer_bar”,$page_path); ?>
    </div><!– #wrapper –>
    <?php include_template_part(“add_body_before”,$page_path); /* </body>直前に必ず配置してください */ ?>
    <script src=”<?php echo $home; ?>/news/js/index.js”></script>
    <?php include_template_part(“add_body_after”,$page_path); /* </body>直前に必ず配置してください */ ?>

    </body>
    </html>

    Thread Starter daisin78s

    (@daisin78s)

    <?php wp_footer(); ?>

    bodyタグ内に記述することによってデザインが反映するようになりました。

    ただし、デザインが崩れています。

    理想は
    https://daisin78s.com/app/wp-content/uploads/2019/12/dad656b49b9b738eae5fb64ffac5d24e.png

    現状は
    https://daisin78s.com/app/wp-content/uploads/2019/12/c680261b7df5b177b8a897232123f190.png

    こちらもnewsのcssを修正するしかないのでしょうか?

    Thread Starter daisin78s

    (@daisin78s)

    連投になり申し訳ございません。

    デザインに関しては ページ全体のデザインに干渉している
    max-width:70%による影響でした。

    CSSが反映されない原因に関しては
    表示部分の最後尾辺りに
    <?php wp_footer(); ?>
    が記述されていないことが原因でした。

    無事解決しました!!!
    ありがとうございました。

    Plugin Author YAHMAN

    (@back2nature)

    解決されたようで何よりです。

    ご連絡ありがとうございました。

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘画像とセリフの文字しか表示されない’ is closed to new replies.