weboosteg
Forum Replies Created
-
use a custom css like that
/* Hide the Right Menu on the English (LTR) site */
html[dir=”ltr”] .mobmenur-container {
display: none !important;
}/* Hide the Left Menu on the Arabic (RTL) site */
html[dir=”rtl”] .mobmenul-container {
display: none !important;
}Forum: Plugins
In reply to: [Custom Post Type UI] AR issueI pasted this in the functions.php and nothing happened
function cptui_register_my_cpts_عربيه() {
/**
* Post Type: عربيه.
*/
$labels = [
"name" => esc_html__( "عربيه", "woodmart" ),
"singular_name" => esc_html__( "عربيه", "woodmart" ),
];
$args = [
"label" => esc_html__( "عربيه", "woodmart" ),
"labels" => $labels,
"description" => "",
"public" => true,
"publicly_queryable" => true,
"show_ui" => true,
"show_in_rest" => true,
"rest_base" => "",
"rest_controller_class" => "WP_REST_Posts_Controller",
"rest_namespace" => "wp/v2",
"has_archive" => "عربيه",
"show_in_menu" => true,
"show_in_nav_menus" => true,
"delete_with_user" => false,
"exclude_from_search" => false,
"capability_type" => "post",
"map_meta_cap" => true,
"hierarchical" => false,
"can_export" => false,
"rewrite" => [ "slug" => "عربيه", "with_front" => true ],
"query_var" => true,
"menu_icon" => "dashicons-car",
"supports" => false,
"show_in_graphql" => false,
];
register_post_type( "عربيه", $args );
}
add_action( 'init', 'cptui_register_my_cpts_عربيه' );