This file contains hidden or 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 $args = array( | |
'display_flags' => 1, | |
'display_names_in_native_lang' => 0, | |
'display_names_in_current_lang' => 0 | |
); ?> | |
<?php do_action('wpml_add_language_selector', $args); ?> |
This file contains hidden or 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 custom_admin_style() { | |
wp_enqueue_style( 'child-admin-style', get_stylesheet_directory_uri() . '/framework-customizations/theme/custom_admin_style.css' ); | |
} | |
add_action( 'admin_head', 'custom_admin_style' ); |
This file contains hidden or 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
// Custom Widget Inits | |
function custom_widgets() { | |
register_sidebar( array( | |
'name' => __( '404 Area', 'best4u' ), | |
'id' => 'widget-404', | |
'description' => '', | |
'before_widget' => '<aside id="%1$s" class="widget %2$s">', | |
'after_widget' => '</aside>', | |
'before_title' => '<div class="widget-title">', | |
'after_title' => '</div>', |
This file contains hidden or 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
// removes Home default editor in admin | |
function remove_pages_editor(){ | |
if(get_the_ID() === 16) { | |
remove_post_type_support( 'page', 'editor' ); | |
} | |
} | |
add_action( 'add_meta_boxes', 'remove_pages_editor' ); |
This file contains hidden or 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
// Renaming default post type posts in News | |
function revcon_change_post_label() { | |
global $menu; | |
global $submenu; | |
$menu[5][0] = 'News'; | |
$submenu['edit.php'][5][0] = 'News'; | |
$submenu['edit.php'][10][0] = 'Add News'; | |
$submenu['edit.php'][16][0] = 'News Tags'; | |
} |
NewerOlder