wp_list_pages, links only for pages with no children

To create the menu in the first place, feel free to use the shortcode [AVIA_tree_menu root=”your_root_document_title”] by adding this to functions.php: function sc_AVIA_tree_menu($atts) { extract(shortcode_atts(array(‘root’ => ‘Start’,), $atts)); //default if empty. $page = get_page_by_title($root); $args = array( ‘child_of’ => $page->ID, ‘date_format’ => get_option(‘date_format’), ‘depth’ => 0, ‘echo’ => 0, ‘post_type’ => ‘page’, ‘post_status’ => ‘publish’, … Read more

How to get current menu item “CSS Classes” value?

Do not know if it’s exactly what you’re looking for but this short snippet adds custom classes to nav menu item : add_filter(‘nav_menu_css_class’ , ‘wpse_143574_nav_class’ , 10 , 2); function wpse_143574_nav_class($classes, $item){ $classes[] = “my-class”; } return $classes; } This could be modified with some conditional tags too. EDIT: $item is often useful for example … Read more

Next/previous a-like single navigation

After some additional research it looks like it will require to use two separate methods to get next/previous page/post to work. More here,here and here Solution for pages: <?php $pagelist = get_pages(‘sort_column=menu_order&sort_order=asc’); $pages = array(); foreach ($pagelist as $page) { $pages[] += $page->ID; } $current = array_search(get_the_ID(), $pages); $prevID = $pages[$current-1]; $nextID = $pages[$current+1]; ?> … Read more

Theme: Twenty Thirteen Mobile Sliding Menu Doesn’t Bump Content Down

You’ve got a static height set on a block-level element: style.css:806 /** * 4.1 Site Header * —————————————————————————- */ .site-header { position: relative; background: url(http://barkleyphoto.com/_wedding/wp-content/uploads/2014/05/cropped-header-background.jpg) no-repeat scroll top); height: 100px; } remove the height: 100px; and it should work like you expect.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)