#解決したい問題
WordPress(Bizvektor)で社内専用サイトを構築しています。WordPressの管理画面から記事を投稿すると、サイトで表示したときにタイトルが「投稿したタイトル+"[]"」と出ます。例えば、「テスト」というタイトルの記事を投稿すると、サイト上でその記事のタイトルが『テスト[]』と表示されますが、その際、WordPressの管理画面で確認すると記事タイトルは「テスト」のままです。この"[]"を表示させない方法があればご教示ください。
#開発環境
Virtualbox(Windows7)でMAMP上にローカル環境でWordPressを使用
・WordPress(4.9.8)
・WPのテーマ Bizvektor(1.11.4)
#試したこと
・使用中のプラグインを一旦すべて停止したが、影響なし。
・親テーマの編集なし。子テーマのfunction.phpとstle.cssに一部変更あり(後述)。
#該当のソースコード
function.php
<?php add_action('wp_enqueue_scripts','theme_enqueue_styles'); function theme_enqueue_styles(){ wp_enqueue_style('parent-style',get_template_directory_uri().'style.css'); wp_enqueue_style('child-style',get_stylesheet_directory_uri().'style.css',array('parent-style') ); } function my_contact_enqueue_scripts(){ wp_deregister_script('contact-form-7'); wp_deregister_style('contact-form-7'); if (is_page('contact')) { if (function_exists( 'wpcf7_enqueue_scripts')) { wpcf7_enqueue_scripts(); } if ( function_exists( 'wpcf7_enqueue_styles' ) ) { wpcf7_enqueue_styles(); } } } add_action( 'wp_enqueue_scripts', 'my_contact_enqueue_scripts'); @ini_set( 'upload_max_size' , '30M' ); @ini_set( 'post_max_size', '30M'); @ini_set( 'max_execution_time', '300' ); add_filter( 'edit_post_link', '__return_false'); add_filter( 'edit_comment_link', '__return_false'); ?>
style.css
/* Theme Name: bizvektor-child Theme URI: http://localhost/bizvektor-child Description: bizvektor-child Theme Author : Yokota Author URI: http://localhost Template: bizvektor Version: 1.11.4 */ body{ font-family: sans-serif; font-weight:500; } /* 問い合わせフォームのスタイルを編集 */ .wpcf7 input[name="text"] { width: 80%; height: 35px !important; } .wpcf7 textarea[name="text2"] { width: 80%; height: 350px !important; }
回答1件
あなたの回答
tips
プレビュー