блоки в админку и фиксы стилей
This commit is contained in:
@@ -142,13 +142,10 @@ function enqueue_swiper_assets() {
|
||||
);
|
||||
}
|
||||
|
||||
// Frontend
|
||||
add_action('wp_enqueue_scripts', 'enqueue_swiper_assets');
|
||||
|
||||
// Admin area
|
||||
add_action('admin_enqueue_scripts', 'enqueue_swiper_assets');
|
||||
|
||||
// Block Editor
|
||||
add_action('enqueue_block_editor_assets', 'enqueue_swiper_assets');
|
||||
|
||||
function display_icon($field_name)
|
||||
@@ -160,4 +157,12 @@ function display_icon($field_name)
|
||||
}
|
||||
}
|
||||
|
||||
//test
|
||||
function wider_language_cols() {
|
||||
echo '<style>
|
||||
.wp-list-table td[class*=column-language_],
|
||||
.wp-list-table th[class*=column-language_] {
|
||||
width: 3em !important;
|
||||
}
|
||||
</style>';
|
||||
}
|
||||
add_action('admin_head', 'wider_language_cols');
|
||||
Reference in New Issue
Block a user