Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.


              <div class="nav-bottom-container">
					<ul class="menu nav-bottom">
					  $left = 0;
					  $get_parent_cats = array(
					  	  'taxonomy' => 'product_cat',
					      'hide_empty' => 0,
					      'parent'		=> 0,
					      'meta_key' => 'position',
						  'orderby'	 => 'meta_value_num',
						  'order'	 => 'ASC',
						  'exclude'		=> array(15, 35)

					  $all_categories = get_categories( $get_parent_cats );//get parent categories 

					  foreach( $all_categories as $single_category ){
					      //for each category, get the ID
					      $catID = $single_category->cat_ID; ?>
					      <li class="dropdown">
							<a href="<?php echo get_category_link( $catID ); ?>"><?php echo $single_category->name; ?></a>
							<div class="dropdown-content">
								<div class="wrapper">

					      <?php $get_children_cats = array(
					      	  'taxonomy' => 'product_cat',
					          'child_of' => $catID, //get children of this parent using the catID variable from earlier
					          'hide_empty' => 0,
					          'meta_key' => 'position',
						  	  'orderby'	 => 'meta_value_num',
						  	  'order'	 => 'ASC'
					      $child_cats = get_categories( $get_children_cats );//get children of parent category
					      //Check if category has children
					      $has_children = get_term_children($catID, 'product_cat');
					      	if(!empty( $has_children )){
					      	  echo '<ul class="submenu">';
					          foreach( $child_cats as $child_cat ){
					              //for each child category, get the ID
					              $childID = $child_cat->cat_ID;

					              //for each child category, give us the link and name
					              echo '<li><a href=" ' . get_category_link( $childID ) . ' ">' . $child_cat->name . '</a></li>';
					      	echo '</ul>'; //subcats
					      	// check if the repeater field has rows of data



              body {
  background-color: #a3d5d3;