Tabs y accordions responsives

[codepen_embed height=”265″ theme_id=”0″ slug_hash=”XErLKe” default_tab=”html,result” user=”lauraMM”]See the Pen <a href=’https://codepen.io/lauraMM/pen/XErLKe/’>Responsive Accordion to Tabs</a> by laura (<a href=’https://codepen.io/lauraMM’>@lauraMM</a>) on <a href=’https://codepen.io’>CodePen</a>.[/codepen_embed]   [codepen_embed height=”265″ theme_id=”0″ slug_hash=”aBjvVG” default_tab=”css,result” user=”templater”]See the Pen <a href=’https://codepen.io/templater/pen/aBjvVG/’>Pure CSS Responsive Tabs – WIP</a> by templater (<a href=’https://codepen.io/templater’>@templater</a>) on <a href=’https://codepen.io’>CodePen</a>.[/codepen_embed]     [codepen_embed height=”265″ theme_id=”0″ slug_hash=”NPompr” default_tab=”html,result” user=”davidelrizzo”]See the Pen <a href=’https://codepen.io/davidelrizzo/pen/NPompr/’>Forcing …

Read moreTabs y accordions responsives

Generatepress cabecera con titulo centrado

<?php if ( is_single() ) : ?> <div class=”page-header-content-single parallax-enabled fullscreen-enabled vertical-center-container generate-page-header generate-content-header whatever-element ” > <div class=”inside-page-header-container inside-content-header grid-container grid-parent vertical-center-enabled”> <div class=”generate-inside-page-header-content”> <?php the_title( ‘<h1 class=”entry-title” itemprop=”headline”>’, ‘</h1>’ ); ?> </div> </div> </div> <?php endif; ?> <?php if ( is_page() && ! is_front_page() ) : ?> <?php the_title( ‘<h1 class=”entry-title” itemprop=”headline”>’, ‘</h1>’ …

Read moreGeneratepress cabecera con titulo centrado

Códigos útiles para plantillas wordpress

Mostar enlace a siguiente y anterior <div class=”navigation-post”><div class=”alignleft”><?php previous_post_link(); ?></div><div class=”alignright”> <?php next_post_link(); ?> </div></div> Mostrar loop con categoria especifica y número de posts  <?phpquery_posts(‘category_name=video&posts_per_page=10’);while (have_posts()) : the_post(); ?> Añadir un shortcode <?php echo do_shortcode(‘[hmp_player]’); ?> Añadir js en child-theme con soporte jquery wp_enqueue_script(‘my-custom-script’, get_stylesheet_directory_uri(). ‘/js/custom.js’,array(‘jquery’),’1.0′,true);