Skip to main content

Posts

Showing posts from May, 2016

One page Website with smooth scrolling and hide hash from url

One page Website One page Website with smooth scrolling and hide hash from url Css <style> html, body { margin:0; padding:0; width:100%; font-size:1em; color:#ffffff; } #header { height:80px; background:#1240AB; padding:20px; border-bottom:3px solid #4671D5; } #subMenu { height:50px; width:inherit; background:#6c8cd5; display:none; position:fixed; top:0; left:0; z-index:500; opacity:.9; padding:15px; } #content { margin:20px; font-size:2.25em; color:#232323; height: 1000px; } #content h1 {     font-size: 20px;     margin: 0 auto;     padding-top: 5%;     text-align: center; } section {     min-height: 100%; } .main {     height: 100%; } li {     color: #000;     display: inline-block;     font-size: 16px; } li a {color: #fff; text-decoration: none;} </style> javascript  <script>     $(document).ready(fun...

Get the children of the parent category by parent id in wordpress

<?php     $args = array(   'orderby' => 'name',   'parent' => category id,   'taxonomy' => 'category',   'hide_empty' => 1 ,   'number' => 'category limit'   ); $categories = get_categories( $args ); $content=''; foreach ( $categories as $category ) {     echo '<a href="' . get_category_link( $category->term_id ) . '">' . $category->name . '</a><br/>';     }     ?>