[codepen_embed height=”350″ theme_id=”0″ slug_hash=”ojNEmr” default_tab=”css” user=”myasseen”]See the Pen SCSS Getting sum of values in Array of Numbers with for loop. by Mahmoud Yasseen (@myasseen) on CodePen.[/codepen_embed]
Archive for Quick Tips Category
add this code to your wordpress function.php file // Output style function print_theme_extra_styles() { global $post; $bg = get_post_meta( $post->ID, ‘background’, true ); if( $bg ) : ?> <style type=”text/css”> .example-class { background-image: url(<?php echo $bg;?>); } </style> <?php endif; } add_action( ‘wp_print_styles’, ‘print_theme_extra_styles’ ); and add .example-class to your element where you want to…
Bootstrap Bootstrap comes with a cool CSS menu which support submenu’s out of the box. The only behaviour I almost always need to change is when the submenu should be displayed. By default the submenu is displayed when clicked on on it’s parent menu item, but I want it to open when mouse hovering the…