フォーラムへの返信

3件の返信を表示中 - 1 - 3件目 (全3件中)
  • フォーラム: テーマ
    返信が含まれるトピック: Twenty Twelve の entry-title を h1 から h2 に変更できない
    トピック投稿者 sato_ru

    (@sato_ru)

    ご回答ありがとうございます。
    content-page.php の修正でできました。

    h1→h2に変更したかった理由は、SEO対策のためです。Googleのアルゴリズムに、1ページあたりh1 は1つが有利というものがあるため修正したかったのです。

    どうもありがとうございました。

    トピック投稿者 sato_ru

    (@sato_ru)

    mypacecreatorさん、どうもありがとうございました!

    OKでした。うまくいきました!

    本当にありがとうございました。

    本件は、SEO内部対策を中心したSEO対策会社のエンジニアから、アルゴリズム解析からH3タグは1ページに4つ以下が最適という指示を頂戴したためでした。

    トピック投稿者 sato_ru

    (@sato_ru)

    mogueさん、mypacecreatorさん、どうもありがとうございます。

    テーマは、「ホームページビルダー17
    *「JustSystems Homepage Builder Version 17.0.3.0 for Windows」によって作成されました。とテーマの管理のところに記載されています。

    function.php の register_sidebar を下に表記しましたが、該当すH2タグが書かれていません。

    また、コア(/wp-includes/widgets.php)とのことですが、
    /wp-includes/
    の配下に
    widgets.php
    が存在しません。「widgets」と名の付くものは
    default-widgets.php
    のみとなります。

    よろしくお願い申し上げます。

    register_sidebar();
    
    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 550, 400, true );
    
    register_post_type(
    	'news',
    	array(
    	'label'         => 'ニュース',
    	'hierarchical'  => false,
    	'public'        => true,
    	'has_archive'   => true,
    	'supports'      => array(
    	'title',
    	'editor',
    	'thumbnail',
    	'comments'
    	),
    	'menu_position' => 5,
    	'menu_icon'     => get_bloginfo('template_url') . '/post-types/menu_news.png'
    	)
    );
    
    register_taxonomy(
    	'newscat',
    	'news',
    	array(
    	'label'        => 'ニュースのカテゴリー',
    	'hierarchical' => true,
    	)
    );
    
    function manage_news_columns( $columns ) {
    	$columns['fcategory'] = "カテゴリー";
    	return $columns;
    }
    
    function add_news_column( $column_name, $post_id ){
    	if ( 'fcategory' == $column_name ) {
    		$fcategory = get_the_term_list( $post_id, 'newscat' );
    		if ( $fcategory ) {
    			echo $fcategory;
    		} else {
    			echo __('None');
    		}
    	}
    }
    
    add_filter( 'manage_edit-news_columns', 'manage_news_columns' );
    add_action( 'manage_news_posts_custom_column',	'add_news_column', 10, 2 );
    
    add_action('admin_head', 'plugin_header_news');
    function plugin_header_news() {
    	global $post_type;
    ?>
    <style>
    	<?php if (($_GET['post_type'] == 'news') || ($post_type == 'news')) : ?>
    		#icon-edit { background: url('<?php echo get_bloginfo('template_url') . '/post-types/icon_news.png';?>') no-repeat transparent; background-size:auto !important; }
    	<?php endif; ?>
    </style>
    <?php
    }
    
    if ( ! isset( $content_width ) )
    	$content_width = 648;
3件の返信を表示中 - 1 - 3件目 (全3件中)