반응형
문제점
구분선 기본값은 위와 같이 짧은 선이지만 편집 화면에서는
위와 같이 길게 표시되어 넓은 라인과 구별이 되지 않는 문제가 있습니다.
구분선 기본값을 좁게 표시하기
테마 파일을 편집해야 하므로 child(차일드) 테마를 사용하는 것이 좋습니다.
functions.php
add_action( 'admin_head', function() {
echo '<style>
.editor-styles-wrapper .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
width: 160px !important;
max-width: 160px !important;
margin-left: auto !important;
margin-right: auto !important;
border-bottom: 2px solid #ccc !important;
}
</style>';
}, 999 );
스타일은 사용자 정의하면 됩니다.
반응형