「Google翻訳ツール」を利用したプラグイン。まとめて多言語翻訳が可能。
設定方法の参考記事はこちら
翻訳を一部無効化(除外)する方法の参考記事はこちら
当サイトでは、カレンダーウィジェットが翻訳で化けるため、arw-widget.phpに、クラス名「notranslate」を追加する修正を行った。
$cal .= ‘<div class=”calendar-archives notranslate ‘ . $theme . ‘” id=”arc-‘ . $title . ‘-‘ . mt_rand( 10, 100 ) . ‘”>’;
表示の体裁を整えるため、以下のCSSを追記
①TCDテーマのカスタムCSSに追加
#glt-translate-trigger span { background-color:rgba(0,0,0,0.0); }
#glt-translate-trigger {
background-image: url(https://support-z.com/blog/wp-content/uploads/2023/12/google-translate_64-1.png);
background-repeat: no-repeat;
padding: 0; width: 44px; height: 44px;
background-color:rgba(0,0,0,0.0);
top: 10px; font-weight: 300; box-shadow: none;
}
.tool-container { box-shadow: none; border-radius: 2px; }
.tool-container.tool-top { top: 60px !important; }
//スマホ用の設定
@media screen and (max-width:750px) {
#glt-translate-trigger { top: 14px; right: 60px; }
}
コメント