Skip to content

Instantly share code, notes, and snippets.

@juanres
juanres / Divi section import from page
Created March 1, 2018 13:22
import from module taking its ID
<?php
get_header();
echo do_shortcode('[et_pb_section global_module="5306"][/et_pb_section]');
$show_default_title = get_post_meta( get_the_ID(), '_et_pb_show_title', true );
$is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() );
?>
@juanres
juanres / condicional css IE
Created August 28, 2019 13:38
para usar embebed en head
<!--[if IE]>
<style type="text/css">
/************ css for all IE browsers ****************/
.beneficio_desk{
top: 20vh;
}
</style>
<![endif]-->
@juanres
juanres / flex sample html
Created August 29, 2019 02:43
muestra head+contenedores hacia abajo
<!DOCTYPE html>
<html lang="es" dir="ltr">
<head>
<meta charset="utf-8">
<title>Base Flexbox</title>
</head>
<body>
<header>
<nav>
@juanres
juanres / css flex sample
Created August 29, 2019 02:44
muestra head+contenido sentido columna
header{
height: 10vh;
background: grey;
position: fixed;
top: 0;
left: 0;
right: 0;
}
section{