-
投稿者検索結果
-
2021年7月5日 11:12 AM #80059
返信が含まれるトピック: スマホ用でのボタンの非表示が対応されない件
ありがとうございます。
[05-Jul-2021 01:39:48 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\class-wp-hook.php on line 294 and exactly 2 expected in C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-content\themes\snow-monkey\functions.php:100 Stack trace: #0 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\class-wp-hook.php(294): {closure}('\n<!-- wp:paragr...') #1 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\plugin.php(212): WP_Hook->apply_filters('\n<!-- wp:paragr...', Array) #2 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-content\plugins\snow-monkey-forms\App\Controller\Complete.php(43): apply_filters('snow_monkey_for...', '\n<!-- wp:paragr...', Object(Snow_Monkey\Plugin\Forms\App\Model\Responser), Object(Snow_Monkey\Plugin\Forms\App\Model\Setting)) #3 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-content\plugins\snow-monkey-forms\App\Contract\Controller.php(60): Snow_Monkey\Plugin\Forms\App\Controller\Complete->set_message() #4 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-content\plugins\snow-monkey-forms\App\Model\Dispatcher.php(31): Snow_Monkey\Plugin\Forms\App\Contract\Controller->__construct(Object(Snow_Monkey\Plugin\Forms\App\Model\Responser), Object(Snow_Monkey\Plugin\Forms\App\Model\Setting), Object(Snow_Monkey\Plugin\Forms\App\Model\Validator)) #5 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-content\plugins\snow-monkey-forms\App\Rest\Route\View.php(150): Snow_Monkey\Plugin\Forms\App\Model\Dispatcher::dispatch('complete', Object(Snow_Monkey\Plugin\Forms\App\Model\Responser), Object(Snow_Monkey\Plugin\Forms\App\Model\Setting), Object(Snow_Monkey\Plugin\Forms\App\Model\Validator)) #6 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-content\plugins\snow-monkey-forms\App\Rest\Route\View.php(123): Snow_Monkey\Plugin\Forms\App\Rest\Route\View->_send() #7 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-content\plugins\snow-monkey-forms\snow-monkey-forms.php(167): Snow_Monkey\Plugin\Forms\App\Rest\Route\View->send() #8 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\rest-api\class-wp-rest-server.php(1139): Snow_Monkey\Plugin\Forms\Bootstrap->Snow_Monkey\Plugin\Forms\{closure}(Object(WP_REST_Request)) #9 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\rest-api\class-wp-rest-server.php(985): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/snow-monkey-fo...', Array, NULL) #10 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\rest-api\class-wp-rest-server.php(412): WP_REST_Server->dispatch(Object(WP_REST_Request)) #11 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\rest-api.php(354): WP_REST_Server->serve_request('/snow-monkey-fo...') #12 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\class-wp-hook.php(292): rest_api_loaded(Object(WP)) #13 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters('', Array) #14 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\plugin.php(551): WP_Hook->do_action(Array) #15 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\class-wp.php(388): do_action_ref_array('parse_request', Array) #16 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\class-wp.php(750): WP->parse_request('') #17 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-includes\functions.php(1291): WP->main('') #18 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-blog-header.php(16): wp() #19 C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\index.php(17): require('C:\\Users\\wtnb9\\...') #20 {main} thrown in C:\Users\wtnb9\Local Sites\crescitaacademy\app\public\wp-content\themes\snow-monkey\functions.php on line 100 [05-Jul-2021 01:39:49 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:9000 (from HTTP_X_FORWARDED_FOR HTTP header), localhost:9000 (fallback through xdebug.client_host/xdebug.client_port) :-( [05-Jul-2021 01:39:50 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:9000 (from HTTP_X_FORWARDED_FOR HTTP header), localhost:9000 (fallback through xdebug.client_host/xdebug.client_port) :-( [05-Jul-2021 01:39:50 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:9000 (from HTTP_X_FORWARDED_FOR HTTP header), localhost:9000 (fallback through xdebug.client_host/xdebug.client_port) :-( [05-Jul-2021 01:39:51 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:9000 (from HTTP_X_FORWARDED_FOR HTTP header), localhost:9000 (fallback through xdebug.client_host/xdebug.client_port) :-( [05-Jul-2021 01:40:26 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:9000 (from HTTP_X_FORWARDED_FOR HTTP header), localhost:9000 (fallback through xdebug.client_host/xdebug.client_port) :-( [05-Jul-2021 01:40:27 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:9000 (from HTTP_X_FORWARDED_FOR HTTP header), localhost:9000 (fallback through xdebug.client_host/xdebug.client_port) :-( [05-Jul-2021 01:40:28 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:9000 (from HTTP_X_FORWARDED_FOR HTTP header), localhost:9000 (fallback through xdebug.client_host/xdebug.client_port) :-( [05-Jul-2021 01:40:28 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:9000 (from HTTP_X_FORWARDED_FOR HTTP header), localhost:9000 (fallback through xdebug.client_host/xdebug.client_port) :-(
このように表示されていました。
♥ 0Who liked: No user2021年7月5日 11:06 AM #80058返信が含まれるトピック: スマホ用でのボタンの非表示が対応されない件
Local は僕もあまり詳しくないのですが、Local のディレクトリ内にあるログファイルがそうかもしれないですね。
~/Local Sites/名前/logs/php
♥ 0Who liked: No user2021年7月5日 10:22 AM #80055返信が含まれるトピック: スマホ用でのボタンの非表示が対応されない件
Internal Server Error と表示されているので追加したコードになんらかのエラーがあるのではないかと思います。サーバーのエラーログをみるとエラーの内容や行番号が出力されていないですかね?
♥ 0Who liked: No user2021年7月5日 9:56 AM #80054返信が含まれるトピック: JSファイルのパスを変更したい
ご確認ありがとうございます!
すみませんこれは具体的に何をされたのでしょうか? ダッシュボード → 設定 → 一般の「WordPress アドレス」「サイトアドレス」のことですかね?
はいおっっしゃるとおりで、「サイトアドレス (URL)」を、変更したい「ドメイン名+ディレクトリ」へ変更しました。
これも具体的に何をされたのでしょうか?
以下の2つを行いました
1.~/wp-admin/options.phpを開く
2.[upload_url_path]を変更したい「ドメイン名+ディレクトリ」に変更
※以下記事を参考にいたしました。
いかないなら script_loader_tag などのフックで変えていく感じではないでしょうか。
こちらありがとうございます。もう少し調査してWordpressについて学び、上記を試してみたいと思います。
2021年7月5日 9:55 AM #80052返信が含まれるトピック: スマホ用でのボタンの非表示が対応されない件
ご指摘いただいたように、コードを変更してみましたが、以下の画像のように表示されます。
この場合は、SnowMonkey以外に問題があるということでしょうか?♥ 0Who liked: No user2021年7月5日 9:39 AM #80050返信が含まれるトピック: 投稿ページのページヘッダータイトル下に、Meta descriptionに入力した文字を表示させたい
ちょっと調整は必要かもしれませんが、こんな感じでどうでしょうか?
add_filter( 'snow_monkey_template_part_render_template-parts/common/page-header', function( $html ) { $meta_description = get_post_meta( get_the_ID(), 'wp-seo-meta-description', true ); return str_replace( '</h1>', '</h1><div>' . $meta_description . '</div>', $html ); } );
2021年7月5日 9:39 AM #80048返信が含まれるトピック: お知らせバーをページ内リンクにしてスムーススクロールできるようにしたいです。
2021年7月5日 9:22 AM #80045返信が含まれるトピック: アップデート対策について「横並びのブロック(例:項目、パネル等)の左右余白のとり方」
まだ Snow Monkey に変更を入れていないので、実際にやってから出ないとこうすれば絶対大丈夫ということは言えないのですが、とりあえずこんな感じではないでしょうか。
.test-p { gap:0 !important; margin: xxx !important; // アップデートで margin がなくなるかもしれないので何か設定しておく } .test-p > .test{ padding: 0 50px !important; margin: xxx !important; // アップデートで margin が変更されるかもしれないので何か設定しておく }
♥ 0Who liked: No user2021年7月5日 9:18 AM #80043返信が含まれるトピック: JSファイルのパスを変更したい
– サイト内リンクは「サイトURL」でしたいドメインを変更
すみませんこれは具体的に何をされたのでしょうか? ダッシュボード → 設定 → 一般の「WordPress アドレス」「サイトアドレス」のことですかね?
– 画像ファイルは「wp-admin/options.php」のupload用のパスにてドメイン変更
これも具体的に何をされたのでしょうか?
僕がリバースプロキシ含めたそのサーバー構成をよく理解していないので適切な回答ができないのですが、ダッシュボード → 設定 → 一般の「WordPress アドレス」「サイトアドレス」を変えてうまくいくならそれが一番良いでしょうし、いかないなら
script_loader_tag
などのフックで変えていく感じではないでしょうか。♥ 0Who liked: No user2021年7月5日 9:13 AM #80040返信が含まれるトピック: お知らせバーをページ内リンクにしてスムーススクロールできるようにしたいです。
お知らせバーの
<a>
タグのclass名に.u-smooth-scroll
を付けるにはフィルターフックで置換する方法が良いかなと思います。スクロールのテストはしていませんが、クラスを追加するだけであれば、これでできると思います。
>add_action( 'snow_monkey_template_part_render_template-parts/common/infobar', function( $html ) { $html = str_replace( 'p-infobar__inner', 'p-infobar__inner u-smooth-scroll', $html ); return $html; }, 10, 3 );
お試しください。
2021年7月5日 9:09 AM #80038返信が含まれるトピック: スマホ用でのボタンの非表示が対応されない件
画像(そのもののデータ)を
echo
しているのが気になりました(img
で表示するのかと思っていたので)が、これが仕様かもしれませんし、あとはやってみて問題があればというところではないでしょうか。♥ 0Who liked: No user2021年7月5日 9:02 AM #80035返信が含まれるトピック: 非推奨スライダーの全幅について
2021年7月4日 11:35 PM #80023返信が含まれるトピック: 非推奨スライダーの全幅について
ご提示ありがとうございます。
拝見しました!
スライダーの画像は、1024pxのものを使用されるということでしょうか?
こちらで1920pxに拡大して試したところ、以下のような全幅のスライダーになりました。デモ
1024px幅の画像のまま全幅にする場合は、CSSで画像
img
の親要素の幅を100%にすることで対応はできそうです。.smb-slider__item__figure { width: 100%; }
このCSSで以下のようになります。
2021年7月4日 10:56 PM #80022返信が含まれるトピック: 非推奨スライダーの全幅について
GONSY様
以下のURLになります。
お手数をおかけしまして大変申し訳ございません。
どうぞよろしくお願いいたします
2021年7月4日 9:19 PM #80015返信が含まれるトピック: アップデート対策について「横並びのブロック(例:項目、パネル等)の左右余白のとり方」
ありがとうございますm(__)m
gridは見送られることになったのですね!
やはり今回はアップデートの際には手を離れてしまうこともあるので、無理には左右余白をつくらないで、「グループ」「コンテナ」を利用して全体的に幅を狭めて余白感がでるようにしたいと思います..!!
ちなみになんですが、教えていただいた方法というのは、以下の理解で合っていますでしょうか…?
.test-p{ gap:0 ;!important(gapをあらかじめ0にしておく) } .c-row–margin>.test{ padding: 0 50px;!important }
♥ 0Who liked: No user -
投稿者検索結果