250, 'width' => 250, 'flex-width' => true, 'flex-height' => true,) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'bw-featuredimage-portfolio_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); add_editor_style(); }add_action('after_setup_theme', 'bw_featuredimage_portfolio_theme_support'); } // Removed width and height of the thumbnail function bw_featuredimage_portfolio_remove_thumbnail_dimensions( $html, $post_id, $post_image_id ) { $html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html ); return $html; } add_filter( 'post_thumbnail_html', 'bw_featuredimage_portfolio_remove_thumbnail_dimensions', 10, 3 ); function bw_featuredimage_portfolio_posts_link_attributes() { return 'class="w3-button w3-padding-large w3-dark-grey w3-hover-black"'; } add_filter('next_posts_link_attributes', 'bw_featuredimage_portfolio_posts_link_attributes'); add_filter('previous_posts_link_attributes', 'bw_featuredimage_portfolio_posts_link_attributes'); /*------------------------------------------- * 3.0 Pagination *-------------------------------------------- */ function bw_featuredimage_portfolio_pagination() { // global $wp_query; global $query; if ( is_front_page() ) : echo previous_posts_link(' ' ); // echo paginate_links(); echo next_posts_link( ' ', 'bw-featuredimage-portfolio' ,$query->max_num_pages); else : echo previous_posts_link(' '); // echo paginate_links(); echo next_posts_link(__( ' ' ),$wp_query->max_num_pages); endif; } /* ---------------------------------------------------------------------------------------- * 4.0 - SIDEBAR =>Bitwali Featured Image Portfolie * ---------------------------------------------------------------------------------------- */ function bw_featuredimage_portfolio_register_sidebars() { register_sidebar( array( 'id' => 'bw-pfskillsop-sidebar', 'name' => __( 'Sidebare','bw-featuredimage-portfolio' ), 'description' => __( 'Right Sidebar.' , 'bw-featuredimage-portfolio'), 'before_widget' => '