Flexslider empty slide

I solved issue with putting integer to -1,don’t know really why this helped but if someone get same problem then maybe this will help to him. <?php $i = -1; if (have_posts() ) : while ( have_posts() ) : the_post(); if ($i%2 == 1) echo ‘</li><li>’; ?>

Use wordpress for /blog section only and all other pages static, but using same footer.php and header.php

You could create page templates within the theme. So, for example, for your About page: Create a “page-about.php” file in your theme Include the content there, but instead of using require use the normal WP functions (i.e. wp_head()) so all your plugins’ scripts and styles will load properly Create a Page in wp-admin with the … Read more

include javascript Multiple files in wordpress through script.js

Open console ( right click -> inspect – Console ) and read what is the error, you probably didn’t enqueue jQuery You should enqueue scripts from functions.php ( best practice ) function theme_scripts() { wp_enqueue_script( ‘jquery’ ); wp_enqueue_script( ‘script’, get_template_directory_uri() . ‘/script.js’, array(), false, true ); } add_action( ‘wp_enqueue_scripts’, ‘theme_scripts’ );

Remove node from multisites?

Here, try this: add_action( ‘admin_bar_menu’, ‘remove_nodes_from_mysites’, 999 ); function remove_nodes_from_mysites( $wp_admin_bar ) { $user_blogs = get_blogs_of_user( get_current_user_id() ); foreach ( $user_blogs as $user_blog ) { $wp_admin_bar->remove_node( “blog-” . $user_blog->userblog_id . “-n” ); $wp_admin_bar->remove_node( “blog-” . $user_blog->userblog_id . “-c” ); } }

Dynamic_sidebar load in string makeup

You could use output buffering to catch the display of the sidebar. This does make it a bit more difficult to debug should you need to but it will get you what you need: ob_start(); dynamic_sidebar( ‘header-widget’ ); $sidebar = ob_get_clean(); $menu_markup = ‘<header class=”%s header”>’ . $sidebar . ‘</div>’;