Commit a7168825 authored by agnez's avatar agnez

remove admin menu entries

parent b6bdbd05
...@@ -102,11 +102,12 @@ function vs_add_capabilities() { ...@@ -102,11 +102,12 @@ function vs_add_capabilities() {
/** /**
* Remove capabilities from editors. https://codex.wordpress.org/Function_Reference/remove_cap * Remove capabilities from editors. https://codex.wordpress.org/Function_Reference/remove_cap
*/ */
//add_action( 'init', 'vs_remove_capabilities' ); add_action( 'init', 'vs_remove_capabilities' );
function vs_remove_capabilities() { function vs_remove_capabilities() {
$editor = get_role( 'editor' ); $editor = get_role( 'editor' );
$caps = array( $caps = array(
'customize', 'customize',
//'manage_categories',
); );
foreach ( $caps as $cap ) { foreach ( $caps as $cap ) {
$editor->remove_cap( $cap ); $editor->remove_cap( $cap );
...@@ -115,7 +116,7 @@ function vs_remove_capabilities() { ...@@ -115,7 +116,7 @@ function vs_remove_capabilities() {
// hide from admin menu http://www.wpmayor.com/how-to-remove-menu-items-in-admin-depending-on-user-role/ // hide from admin menu https://wpmayor.com/how-to-remove-menu-items-in-admin-depending-on-user-role/
add_action( 'admin_head', 'vs_remove_menu_pages' ); add_action( 'admin_head', 'vs_remove_menu_pages' );
function vs_remove_menu_pages() { function vs_remove_menu_pages() {
...@@ -141,4 +142,12 @@ function remove_wp_nodes() ...@@ -141,4 +142,12 @@ function remove_wp_nodes()
add_action('admin_menu', 'remove_unnecessary_wordpress_menus', 999);
function remove_unnecessary_wordpress_menus(){
global $submenu;
unset($submenu['themes.php'][20]);
unset($submenu['themes.php'][15]);
}
// plugins could eventually change the index of a given submenu -> 'pretty' print the $submenu array to find corresponding indexes https://wordpress.stackexchange.com/questions/190170/remove-customize-background-and-header-from-appearance-admin-menu-without-css-or
?> ?>
\ No newline at end of file
...@@ -9,5 +9,5 @@ ...@@ -9,5 +9,5 @@
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: left-sidebar,right-sidebar,one-column,two-columns,three-columns,four-columns,grid-layout,custom-colors,custom-background,custom-logo,custom-menu,custom-header,editor-style,featured-images,footer-widgets,sticky-post,buddypress,full-width-template,front-page-post-form,theme-options,threaded-comments,translation-ready,rtl-language-support,blog,news,photography Tags: left-sidebar,right-sidebar,one-column,two-columns,three-columns,four-columns,grid-layout,custom-colors,custom-background,custom-logo,custom-menu,custom-header,editor-style,featured-images,footer-widgets,sticky-post,buddypress,full-width-template,front-page-post-form,theme-options,threaded-comments,translation-ready,rtl-language-support,blog,news,photography
Text Domain: voisinssolidaires Text Domain: voisinssolidaires
*/#header .nav .menu-navigation-principale-container{margin:0 auto}#header .nav .menu-navigation-principale-container ul li a{border-bottom:solid 3px white;color:#666}#header .nav .menu-navigation-principale-container ul li a:hover{color:#e51566}#header .nav .menu-navigation-principale-container ul li ul li a{color:white}.home-page section{padding-bottom:0}.home-page #slider h2{font-size:48px;font-weight:bold;text-align:center}.home-page #slider .nivo-caption{left:10%;overflow:visible;padding:0 10px}.home-page #slider .nivo-caption .slide-cap{color:#197189}.home-page #slider .nivo-caption .slide-cap a.read-more{display:inline-block;background:white none repeat scroll 0 0;border:2px solid #e51566;border-radius:25px;color:#e51566;font-size:18px;font-weight:bold;padding:15px 45px}.home-page .darkbox{text-align:center}.home-page .darkbox .imagebox{position:relative}.home-page .darkbox .imagebox .contentbox h4{font-size:1.1rem;width:100%}.home-page .darkbox#photography .imagebox .contentbox h4{background:rgba(25,113,137,0.5) none repeat scroll 0 0}.home-page #page-content{margin-top:2em}.home-page #page-content .middle-align{min-height:0}#content-blog .wpcf7-form .form-group{border:2px solid #e51566;border-radius:15px;padding:2em}#content-blog .wpcf7-form p{line-height:1}#content-blog .wpcf7-form p span.wpcf7-list-item{display:block}#content-blog .wpcf7-form .wpcf7-not-valid-tip{margin:-1em 0 1em}div.wpcf7-validation-errors,div.wpcf7-acceptance-missing,div.wpcf7-response-output{border-radius:15px;padding:2em}div.wpcf7-validation-errors.wpcf7-mail-sent-ok,div.wpcf7-acceptance-missing.wpcf7-mail-sent-ok,div.wpcf7-response-output.wpcf7-mail-sent-ok{border:2px solid #197189}.footer-wp aside h3{font-size:20px;font-family:ClearSans,"Clear Sans",helvetica,tahoma,arial,sans-serif}.footer-wp aside ul li{padding:0}.inner .copyright-wrapper{font-size:1rem;font-weight:normal;background-color:white;padding:20px 0;position:relative;color:#666}.inner .copyright-wrapper p{color:#666}.inner .copyright-wrapper a{color:#e51566}.inner .copyright-wrapper h3{font-size:20px;letter-spacing:2px;text-align:center;font-weight:bold;letter-spacing:2px}.btn-primary{background-color:#e51566;border-color:#e51566}a{color:#e51566}h1,h2,h3,h4,h5,h6{font-family:ClearSans,"Clear Sans",helvetica,tahoma,arial,sans-serif}.nivo-directionNav,.nivo-controlNav{display:none} */#header{background-image:none !important}#header .nav .menu-navigation-principale-container{margin:0 auto}#header .nav .menu-navigation-principale-container ul li a{border-bottom:solid 3px white;color:#666}#header .nav .menu-navigation-principale-container ul li a:hover{color:#e51566}#header .nav .menu-navigation-principale-container ul li ul li a{color:white}.home-page section{padding-bottom:0}.home-page #slider h2{font-size:48px;font-weight:bold;text-align:center}.home-page #slider .nivo-caption{left:10%;overflow:visible;padding:0 10px}.home-page #slider .nivo-caption .slide-cap{color:#197189}.home-page #slider .nivo-caption .slide-cap a.read-more{display:inline-block;background:white none repeat scroll 0 0;border:2px solid #e51566;border-radius:25px;color:#e51566;font-size:18px;font-weight:bold;padding:15px 45px}.home-page .darkbox{text-align:center}.home-page .darkbox .imagebox{position:relative}.home-page .darkbox .imagebox .contentbox h4{font-size:1.1rem;width:100%}.home-page .darkbox#photography .imagebox .contentbox h4{background:rgba(25,113,137,0.5) none repeat scroll 0 0}.home-page #page-content{margin-top:2em}.home-page #page-content .middle-align{min-height:0}#content-blog .wpcf7-form .form-group{border:2px solid #e51566;border-radius:15px;padding:2em}#content-blog .wpcf7-form p{line-height:1}#content-blog .wpcf7-form p span.wpcf7-list-item{display:block}#content-blog .wpcf7-form .wpcf7-not-valid-tip{margin:-1em 0 1em}div.wpcf7-validation-errors,div.wpcf7-acceptance-missing,div.wpcf7-response-output{border-radius:15px;padding:2em}div.wpcf7-validation-errors.wpcf7-mail-sent-ok,div.wpcf7-acceptance-missing.wpcf7-mail-sent-ok,div.wpcf7-response-output.wpcf7-mail-sent-ok{border:2px solid #197189}.footer-wp aside h3{font-size:20px;font-family:ClearSans,"Clear Sans",helvetica,tahoma,arial,sans-serif}.footer-wp aside ul li{padding:0}.inner .copyright-wrapper{font-size:1rem;font-weight:normal;background-color:white;padding:20px 0;position:relative;color:#666}.inner .copyright-wrapper p{color:#666}.inner .copyright-wrapper a{color:#e51566}.inner .copyright-wrapper h3{font-size:20px;letter-spacing:2px;text-align:center;font-weight:bold;letter-spacing:2px}.btn-primary{background-color:#e51566;border-color:#e51566}a{color:#e51566}h1,h2,h3,h4,h5,h6{font-family:ClearSans,"Clear Sans",helvetica,tahoma,arial,sans-serif}.nivo-directionNav,.nivo-controlNav{display:none}
/*# sourceMappingURL=style.css.map */ /*# sourceMappingURL=style.css.map */
{ {
"version": 3, "version": 3,
"mappings": "AAAA;;;;;;;;;;;EAWE,AAID,kDAAqC,CACpC,MAAM,CAAC,MAAM,CAEZ,0DAAE,CACD,aAAa,CAAE,eAAe,CAC9B,KAAK,CChBJ,IAAO,CDiBR,gEAAO,CACN,KAAK,CCrBL,OAAO,CDyBR,gEAAE,CACD,KAAK,CAAC,KAAK,CASf,kBAAQ,CACN,cAAc,CAAE,CAAC,CAGlB,qBAAG,CACF,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,IAAI,CACjB,UAAU,CAAE,MAAM,CAEnB,gCAAa,CACZ,IAAI,CAAC,GAAG,CACR,QAAQ,CAAE,OAAO,CACjB,OAAO,CAAE,MAAM,CACf,2CAAU,CACT,KAAK,CChDJ,OAAO,CDiDR,uDAAY,CACX,OAAO,CAAE,YAAY,CACrB,UAAU,CAAE,4BAA4B,CACxC,MAAM,CAAE,iBAAc,CACtB,aAAa,CAAE,IAAI,CACnB,KAAK,CCvDL,OAAO,CDwDP,S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,IAAI,CAClB,OAAO,CAAE,GAAG,CACZ,2IAAoB,CACnB,MAAM,CAAC,iBAAc,CAMtB,mBAAE,CACD,SAAS,CAAC,IAAI,CACd,WAAW,CCrHL,wDAAwD,CDuH/D,sBAAK,CACJ,OAAO,CAAC,CAAC,CAIX,yBAA0B,CACzB,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,MAAM,CACnB,gBAAgB,CAAE,KAAK,CACvB,OAAO,CAAE,MAAM,CACf,QAAQ,CAAE,QAAQ,CAClB,KAAK,CCpID,IAAO,CDqIX,2BAAC,CACA,KAAK,CCtIF,IAAO,CDwIX,2BAAC,CACA,KAAK,CC5IF,OAAO,CD8IX,4BAAG,CACF,SAAS,CAAE,IAAI,CACf,cAAc,CAAE,GAAG,CACnB,UAAU,CAAE,MAAM,CAClB,WAAW,CAAE,IAAI,CACjB,cAAc,CAAE,GAAG,CAKrB,YAAY,CACR,gBAAgB,CCzJf,OAAO,CD0JR,YAAY,CC1JX,OAAO,CD4JZ,CAAC,CACA,KAAK,CC7JD,OAAO,CDgKZ,iBAAiB,CAChB,WAAW,CC5JJ,wDAAwD,CDkKhE,mCACgB,CACf,OAAO,CAAC,IAAI",
"sources": ["../multipurpose-blog-child_dev/sass/style.scss","../multipurpose-blog-child_dev/sass/_variables.scss"], "sources": ["../multipurpose-blog-child_dev/sass/style.scss","../multipurpose-blog-child_dev/sass/_variables.scss"],
"names": [], "names": [],
"file": "style.css" "file": "style.css"
......
...@@ -12,27 +12,31 @@ ...@@ -12,27 +12,31 @@
*/ */
@import "_variables"; @import "_variables";
#header .nav{ #header{
.menu-navigation-principale-container{ background-image: none !important;
margin:0 auto; .nav{
ul li{ .menu-navigation-principale-container{
a { margin:0 auto;
border-bottom: solid 3px white;
color:$vs3;
&:hover{
color:$vs1;
}
}
ul li{ ul li{
a { a {
color:white; border-bottom: solid 3px white;
} color:$vs3;
} &:hover{
color:$vs1;
}
}
ul li{
a {
color:white;
}
}
}
} }
} }
} }
.home-page{ .home-page{
section { section {
padding-bottom: 0; padding-bottom: 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment