Skip to content

Instantly share code, notes, and snippets.

@axxe16
axxe16 / function.php
Created May 8, 2020
customizzazione site reviews #plugin #wp #site-review #custom
View function.php
//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.
@axxe16
axxe16 / function.php
Created May 8, 2020
customizzazione site reviews #plugin #wp #site-review #custom
View function.php
//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.
@axxe16
axxe16 / debug_griglie.scss
Created May 4, 2020
Debug_griglie #scss #column #grid #debug
View debug_griglie.scss
.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;
}
@axxe16
axxe16 / function.php
Created May 2, 2020
Woocommerce aggiungere login/logout a menù #woocommerce #woo #menù
View function.php
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>';
@axxe16
axxe16 / navbar_base.html
Created Apr 28, 2020
barra di navigazione base bootstrap #FCSBTBASE #navbar #bootstrap
View navbar_base.html
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#mainMenu">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="mainMenu">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home</a>
@axxe16
axxe16 / media_object_struttura.html
Last active Apr 27, 2020
Struttura Media Object #FCSBTBASE #media_object
View media_object_struttura.html
<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>
@axxe16
axxe16 / griglia03_fissa_fluida.html
Created Apr 25, 2020
Sample griglia 03 #FCSBTBASE #L004
View griglia03_fissa_fluida.html
<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
@axxe16
axxe16 / griglia02.html
Last active Apr 23, 2020
Griglia Sample 02 #FCSBTBASE #L004
View griglia02.html
<main role="main" class="container">
<div class="row">
<div class="col-6">1</div>
<div class="col-6">2</div>
</div>
<div class="row">
<div class="col-8">1</div>
<div class="col-4">2</div>
</div>
<div class="row">
@axxe16
axxe16 / griglia01.html
Created Apr 23, 2020
Griglia sample 01 #FCSBTBASE #L003
View griglia01.html
<main role="main" class="container">
<div class="row">
<div class="col">1</div>
<div class="col">2</div>
<div class="col">3</div>
<div class="col">4</div>
</div>
<div class="row">
<div class="col">1</div>
<div class="col">2</div>
@axxe16
axxe16 / mixin.scss
Last active Apr 25, 2020
Raccolta @mixin #scss #mixin
View mixin.scss
@mixin border-radius($radius) {
border-radius: $radius;
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
}
@mixin transition($property, $duration, $easing: linear) {
transition: $property $duration $easing;
-webkit-transition: $property $duration $easing;
-moz-transition: $property $duration $easing;
You can’t perform that action at this time.