This file contains 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
.modal-dialog { | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
max-width: none !important; | |
} | |
.modal-content { | |
height: auto; |
This file contains 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 | |
//aggiunge una pagina option dentro la sezione impostazioni | |
if( function_exists('acf_add_options_page') ) { | |
acf_add_options_sub_page(array( | |
'page_title' => 'Impostazioni Tema', | |
'menu_title' => 'Impostazioni Tema', | |
'parent_slug' => 'options-general.php', | |
)); | |
} |
This file contains 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
//Crea filtro dropdown backend per un campo ACF di tipo object | |
/** Create the filter dropdown */ | |
add_action( 'restrict_manage_posts', 'wpse45436_admin_posts_filter_restrict_manage_posts' ); | |
<?php | |
function wpse45436_admin_posts_filter_restrict_manage_posts(){ | |
global $post; | |
$type = 'materiale'; | |
if (isset($_GET['post_type'])) { | |
$type = $_GET['post_type']; | |
} |
This file contains 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
//RIF: https://wordpress.org/plugins/site-reviews/ | |
// | |
// ADDING CUSTOM FIELDS TO THE SUBMISSION FORM IS NOT ACTIVELY SUPPORTED! | |
// However, if you would like to try and do this on your own, this should help get you started. | |
// | |
/** | |
* Modifies the submission form fields | |
* Paste this in your active theme's functions.php file. |
This file contains 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
//RIF: https://wordpress.org/plugins/site-reviews/ | |
// | |
// ADDING CUSTOM FIELDS TO THE SUBMISSION FORM IS NOT ACTIVELY SUPPORTED! | |
// However, if you would like to try and do this on your own, this should help get you started. | |
// | |
/** | |
* Modifies the submission form fields | |
* Paste this in your active theme's functions.php file. |
This file contains 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
.row { | |
border-bottom:1px solid #aaa; | |
> div:nth-child(even) { | |
min-height:200px; | |
background-color:#ccc; | |
} | |
> div:nth-child(odd) { | |
min-height:200px; | |
background-color:#eee; | |
} |
This file contains 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
add_filter( 'wp_nav_menu_items', 'add_loginout_link', 10, 2 ); | |
function add_loginout_link( $items, $args ) { | |
if (is_user_logged_in() && $args->theme_location == 'primary') { | |
$items .= '<li><a href="'. wp_logout_url( get_permalink( wc_get_page_id( 'myaccount' ) ) ) .'">Log Out</a></li>'; | |
} | |
elseif (!is_user_logged_in() && $args->theme_location == 'primary') { | |
$items .= '<li><a href="' . get_permalink( wc_get_page_id( 'myaccount' ) ) . '">Log In</a></li>'; |
This file contains 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
<div class="media"> | |
<img class="mr-3" src="https://dummyimage.com/80x80/000000/fff"> | |
<div class="media-body"> | |
<h5 class="mt-0">Media heading</h5> | |
Cras sit amet nibh libero, in gravida nulla. | |
</div> | |
</div> |
This file contains 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
<main class="container"> | |
Container Fisso | |
<div class="row"> | |
<div class="col-6 col-sm-10 col-md-2 col-lg-1 col-xl-6">1</div> | |
<div class="col-6 col-sm-2 col-md-10 col-lg-11 col-xl-6">2</div> | |
</div> | |
</main><!-- /.container --> | |
<main class="container-fluid mt-4"> | |
Container fluido |