Divi Help Documentation by Gables Tech
Code Snippets
Replace WordPress Log in Icon
function custom_login_logo() { echo '<style type="text/css"> .login h1 a { background-image: url(https://replace image address) ; // Your Logo Here background-position: center center; background-size: contain; width: 100%; } </style>'; } add_action('login_head', 'custom_login_logo'); function login_url(){ return "https://gablestech.com/"; // Your URL Here } add_filter('login_headerurl', 'login_url');
2 – Remove the grey line under the Divi menu
#main-header {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
3 – Remove the grey line from the sidebar of Divi
#main-content .container::before { background-color: rgba(0, 0, 0, 0); }
4 – Reduce font from Search button
.et_pb_widget .wp-block-search__button { font-size: 10px; }
5 – Remove shadow under the main menu of Divi
#main-header.et-fixed-header {
-webkit-box-shadow:none!important;
-moz-box-shadow:none !important;
box-shadow:none !important;
}
6 – Add a background image to the main menu
#main-header { background-size: initial; background-repeat: no-repeat; background-image: url(placez ici l'URL de votre image) !important; background-position: center; }