WordPress: Agregar efecto de mouseover al bloque Gutenberg en WordPress

.shadow-with-mouse-over-effect {
    background: #efefef;
    box-shadow: 0 0 17px 0 rgba(0,0,0,0.06);
    margin-bottom: 30px;
    transition: .3s;
}

.shadow-with-mouse-over-effect:hover {
    box-shadow: 0 20px 25px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

Visto en https://myknowledgeportal.com/2019/01/09/add-mouseover-effect-to-gutenberg-block-in-wordpress/

WordPress: Agregar efecto de mouseover al bloque Gutenberg en WordPress Leer más »

Toolset: eliminar los parágrafos manuales de la plantilla de contenido

remove_filter( 'the_content', 'wpautop' );
 add_filter( 'the_content', 'wpautop' , 12);
  
add_filter('the_content', 'remove_empty_p', 20, 1);
function remove_empty_p($content){
    $content = force_balance_tags($content);
    return preg_replace('#<p>\s*+(<br\s*/*>)?\s*</p>#i', '', $content);
}

Visto en https://toolset.com/forums/topic/manual-paragraphs-setting-showing-empty-p-tags-in-content-template-2/

Toolset: eliminar los parágrafos manuales de la plantilla de contenido Leer más »

¿Cómo eliminar la palabra archivo del título de categoría y etiquetas?

add_filter( 'get_the_archive_title', function ($title) {
 if ( is_category() ) {
 $title = single_cat_title( '', false );
 } elseif ( is_tag() ) {
 $title = single_tag_title( '', false );
 } elseif ( is_author() ) {
 $title = '<span class="vcard">' . get_the_author() . '</span>' ;
 }
 
 return $title;
});

Visto en https://bloggersprout.com/remove-word-archive-from-category-tag-title/

¿Cómo eliminar la palabra archivo del título de categoría y etiquetas? Leer más »

How to change Contact Form 7 Placeholder Text Color

::-webkit-input-placeholder { /* WebKit browsers */
    color: #000 !important;
    opacity: 1;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: #000 !important;
    opacity: 1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: #000 !important;
    opacity: 1;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
    color: #000 !important;
    opacity: 1;
}

Visto en https://codeless.co/contact-form-7-placeholder-text-color/

How to change Contact Form 7 Placeholder Text Color Leer más »

Toolset: Different Custom Marker in a map based on a custom taxonomy

Solution: Add the following custom shortcode to determine how many terms are assigned to the current post in the loop:

function ts_get_post_tax_term_count_func( $atts ) {
  
  $a = shortcode_atts( array(
      'postid' => '0',
      'taxonomy' => null ), $atts
  );
  
  $terms = wp_get_post_terms( $a['postid'], $a['taxonomy']);
  return is_wp_error( $terms ) ? 0 : sizeof($terms);
}
  
add_shortcode( 'ts_get_post_tax_term_count', 'ts_get_post_tax_term_count_func');

Go to Toolset > Settings > Frontend content, and register both «has_term» and «ts_get_post_tax_term_count_func» to be used in conditionals and in 3rd party shortcode arguments. Then use the custom shortcode in combination with has_term to display the proper markers:

Multiple types:
[wpv-conditional if="('[ts_get_post_tax_term_count postid='[wpv-post-id]' taxonomy='facebook-type']' gt '1')"]https://www.tripup.it/wp-content/plugins/toolset-maps/resources/images/markers/MULTIPLE-MARKER.png[/wpv-conditional]
  
Only one type - arte-e-intrattenimento:
[wpv-conditional if="('[ts_get_post_tax_term_count postid='[wpv-post-id]' taxonomy='facebook-type']' eq '1') AND (has_term('arte-e-intrattenimento', 'facebook-type', null) eq '1')"]https://www.tripup.it/wp-content/uploads/2018/02/marker_shopping_web_white.png[/wpv-conditional]
  
Only one type - ospitelita:
[wpv-conditional if="('[ts_get_post_tax_term_count postid='[wpv-post-id]' taxonomy='facebook-type']' eq '1') AND (has_term('ospitelita', 'facebook-type', null) eq '1')"]https://www.tripup.it/wp-content/uploads/2018/02/OSPITELITA-MARKER.png[/wpv-conditional]
  
... copy and paste the block above for each facebook-type...
  
No types:
[wpv-conditional if="( [ts_get_post_tax_term_count postid='[wpv-post-id]' taxonomy='facebook-type']  eq '0')"]https://www.tripup.it/wp-content/plugins/toolset-maps/resources/images/markers/default.png[/wpv-conditional]

Visto en Toolset

Toolset: Different Custom Marker in a map based on a custom taxonomy Leer más »

Scroll al inicio

We are using cookies on our website

Please confirm, if you accept our tracking cookies. You can also decline the tracking, so you can continue to visit our website without any data sent to third party services.