z Codics

Codic color Nokia #183693


Espai invisible horitzontal i vertical (sense els guions i tot junt):

 &- n- b- s- p- ;


Salt de linea:

https://reinspirit.com/crear-salto-linea-wordpress/

INSERTAR A FUNCTIONS.PHP

/* ——-Shortcode Salto de Linea ——–*/
function line_break_shortcode() {
return ‘
‘;
} add_shortcode( ‘br’, ‘line_break_shortcode’ );


VEURE YOUTUBE EN WPFORO  AGREGAR AL FINAL DE FUNCTIONS-PHP (APARIENCIA/EDITOR DE TEMA)

add_filter(‘wpforo_content_after’, ‘wpforo_custom_video_embed’, 10);
function wpforo_custom_video_embed( $content ){
$paterns = array();
$paterns[] = “/<a[^><]+>\s*[a-zA-Z\/\/:\.]*youtube.com\/watch\?v=([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i”;
$paterns[] = “/<a[^><]+>\s*[a-zA-Z\/\/:\.]*youtu.be\/([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i”;
$content = preg_replace($paterns, “<iframe width=\”420\” height=\”280\” src=\”//www.youtube.com/embed/$1\” frameborder=\”0\” allowfullscreen></iframe>”, $content);
return $content;
}