pokerio
フォーラムへの返信
-
ただ、既存のtwentysixteenなどの表示は変わらずのままですが、今回はWelcartbasicでサイト構築していきますので、このまま進めて行きたいと思います。
もし、既存のテーマの解決策がわかる方がいらっしゃれば、どうかその時はご教授ください。
それまで解決済みにせずおります。
よろしくお願いいたします。初歩的な事でしたね。
CG様の言われたとおりWelcartを有効にしたら表示されました。
解決策を探してたところで、すべてのプラグインを外すと指示されていたサイトがあり、ついついWelcartまで外しておりました・・・・
大変お恥ずかしい限りです。
ただ、それでも一部の表示が崩れておりました。この部分はなんとかなりそうなので自力で解決いたします。
Toro_Unit様、CG様、的確なアドバイス誠にありがとうございました。お返事ありがとうございます!
sslを有効にしておりますのでhttp→httpsに変更済みです。
そしてアクセスはhttpsでアクセスしております。
ただいまクロームの開発者ツールを開いて格闘しておりますが、見方がわからず奮闘しております。
既存テーマのtwentysixteenの表示は画像などが抜けている感じで表示され、新規で入れたwelcart basicに至っては次のような表示がされます。↓Fatal error: Uncaught Error: Call to undefined function welcart_basic_is_cart_page() in /home/reliveinc/reliveec.com/public_html/wp-content/themes/welcart_basic/header.php:28 Stack trace: #0 /home/reliveinc/reliveec.com/public_html/wp-includes/template.php(704): require_once() #1 /home/reliveinc/reliveec.com/public_html/wp-includes/template.php(653): load_template(‘/home/reliveinc…’, true) #2 /home/reliveinc/reliveec.com/public_html/wp-includes/general-template.php(41): locate_template(Array, true) #3 /home/reliveinc/reliveec.com/public_html/wp-content/themes/welcart_basic/front-page.php(1): get_header() #4 /home/reliveinc/reliveec.com/public_html/wp-includes/template-loader.php(77): include(‘/home/reliveinc…’) #5 /home/reliveinc/reliveec.com/public_html/wp-blog-header.php(19): require_once(‘/home/reliveinc…’) #6 /home/reliveinc/reliveec.com/public_html/index.php(17): require(‘/home/reliveinc…’) #7 {main} thrown in /home/reliveinc/reliveec.com/public_html/wp-content/themes/welcart_basic/header.php on line 28
私には何がなんだかさっぱりで・・・・
このような状態で何か考えられる事はございますか?
ご教授いただければ助かります。フォーラム: テーマ
返信が含まれるトピック: Twentyseventeenのヘッダーメディア試したことは、
スマホに関するトピック(英語)のキャサリンが提示していたCSS
/*
Theme Name: Twenty Seventeen Child
Description: Twenty Seventeen Child Theme
Author: WordPress
Author URI: http://ordPress.org
Template: twentyseventeen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twenty-seventeen-child
*//* Make sure play/pause button can be clicked on smaller screens */
.wp-custom-header-video-button {
z-index: 10;
}それとfunction.php
<?php
/**
* Twenty Seventeen Child Theme functions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
*/
/*
* Enqueue parent and child theme styles.
*/
function twentyseventeenchild_enqueue_styles() {
$parent_style = ‘twentyseventeen-parent-style’;
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
}
add_action( ‘wp_enqueue_scripts’, ‘twentyseventeenchild_enqueue_styles’ );
/*
* Change the minimum screen size to use the video header
*/
function twentyseventeenchild_video_size( $settings ) {
$settings[‘minWidth’] = 100;
$settings[‘minHeight’] = 100;
return $settings;
}
add_filter( ‘header_video_settings’, ‘twentyseventeenchild_video_size’ );
@kathrynwp
Owner Authorこれらを各子テーマに書き込んでみましたが、function.phpの方に問題があるようで表示さえされませんでした。
フォーラム: テーマ
返信が含まれるトピック: Twentyseventeenのヘッダーメディアishitaka様
お返事大変ありがとうございました。クロームの仕様であれば仕方ありませんね。再生音に関しては諦めます。
あとスマホでの動画表示の方法をご存知であれば教えていただきたいのですが。
すでにfunction.phpの方にはishitaka様が提示されていたコードは書き込んでおります。
よろしくお願いいたします。フォーラム: テーマ
返信が含まれるトピック: Twentyseventeenのヘッダーメディア早速のご教授ありがとうございます。
子テーマは作成しておりましたので、子テーマのfunction.phpにコードをペーストしてみましたが、反映されませんでした。
前回解決に至った方は最後のコメントで
「教えてくださった記事とコードを参考にし追記してみた所、無事音ありでスマホでも表示される様になりました。
ありがとうございました!」と言われておりました。
もしかしたら、
「スマホに関しては、下記のトピック(英語)が参考になると思います。
https://wordpress.org/support/topic/video-settings-twenty-seventeen-theme/音に関しては、下記のトピック(英語)が参考になると思います。
https://wordpress.org/support/topic/two-issues-with-video-header/
の中にヒントが隠されているかもしれませんね…。翻訳して読んでみましたが、素人の私にはそのヒントがわかりませんでした。