This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remove_dashboard_widget() { | |
remove_action( 'welcome_panel','wp_welcome_panel' ); // ようこそ | |
remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' ); // 概要 | |
remove_meta_box( 'dashboard_activity', 'dashboard', 'normal' ); // アクティビティ | |
remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); // クイックドラフト | |
remove_meta_box( 'dashboard_primary', 'dashboard', 'side' ); // WordPress イベントとニュース | |
} | |
add_action('wp_dashboard_setup', 'remove_dashboard_widget' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sns-btn__title { | |
display: inline-block; | |
position: relative; | |
padding: 0 25px; | |
color: #44B3D8; /*色を変更*/ | |
font-size: 18px; /*適宜サイズを変更*/ | |
font-weight: bold; | |
line-height: 1; | |
letter-spacing: 1px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sns-btn__title { | |
display: inline-block; | |
position: relative; | |
padding: 0 25px; | |
color: #44B3D8; /*色を変更*/ | |
font-size: 18px; /*適宜サイズを変更*/ | |
font-weight: bold; | |
line-height: 1; | |
letter-spacing: 1px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sns-btn__title:before, | |
.sns-btn__title:after { | |
display: inline-block; | |
position: absolute; | |
top: 50%; | |
width: 20px; | |
height: 3px; | |
border-radius: 3px; | |
background-color: #44B3D8; /*この部分を変更*/ | |
content: ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="comments-toggle">コメントを閉じる</div> | |
<script> | |
$(function() { | |
$("#comments-toggle").click(function() { | |
if ($("#comments").css("display") == "none") { | |
$("#comments").slideToggle(); | |
$("#comments-toggle").text("コメント欄を閉じる"); | |
} else { | |
$("#comments").slideToggle("fast"); | |
$("#comments-toggle").html("この記事にコメントする(<i class=\"far fa-comment-dots\"></i> <?php echo get_comments_number(); ?>)"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* コメント欄の開閉ボタンのデザイン修正 */ | |
#comments-toggle { | |
display: block; | |
margin: 25px 15% 25px 15%; | |
padding: 3px 0px; | |
background-color: #44B3D8; /* ここを変更して好きな色に変更 */ | |
border-radius: 3px; | |
color: #fff; | |
font-size: 1em; | |
font-weight: bold; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div id="content"<?php column_class();?>> | |
<div id="inner-content" class="wrap cf"> | |
<main id="main" class="m-all t-2of3 d-5of7 cf"> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<article id="entry" <?php post_class('cf'); ?>> | |
<header class="article-header entry-header page-header"> | |
<?php if(is_front_page()) : // ホーム固定の場合 ?> | |
<h2 class="page-title"><?php the_title(); // タイトル ?></h2> | |
<?php else : // 通常の場合 ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div id="content"<?php column_class();?>> | |
<div id="inner-content" class="wrap cf"> | |
<main id="main" class="m-all t-2of3 d-5of7 cf"> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<article id="entry" <?php post_class('cf'); ?>> | |
<header class="article-header entry-header page-header"> | |
<?php if(is_front_page()) : // ホーム固定の場合 ?> | |
<h2 class="page-title"><?php the_title(); // タイトル ?></h2> | |
<?php else : // 通常の場合 ?> |
OlderNewer