If you need to show the number of posts or pages on your WordPress site without using a plugin, you can write a simple function and add it to the functions.php Wordpress function simple_post_views( $post_ID ) { global $count_key,$count; $count_key = 'simple_post_views_count'; $count = get_post_meta( $post_ID, $count_key, true ); if ( $count == '' ) { $count = 0; update_post_meta(...
In this tutorial I create simple button shortcode with three attributes: url target background Put this code in your functions.php file Wordpress function btn_big_shortcode( $atts, $content = null ){ $args = shortcode_atts( array( 'url' => '', 'target' => 'self', 'background' => '#F39D77', ), $atts ); $out = '<div class="btn-big"> <a...
Colored responsive WordPress theme Customizer features Header options Fixed sticky header Custom logo Background colors Site background Header background Content bacground Footer background Content options Left/Right sidebar position Show/Hide Date Meta Show/Hide Author Meta Show/Hide Category Meta Show/Hide Views Meta Show/Hide Comment Meta Show/Hide Comments Template Show/Hide Tags Read More Link Text Post Excerpt...
Theme installation Go to Appearance - Themes. Click Add New, then click Upload Theme. Choose zip file with theme and click Install now and Activate. Also you can install a theme via FTP. Unzip zip file with theme, then connect to FTP to your site and copy the theme to a folder /wp-content/themes/ After that activate theme in admin dashboard Appearance - Themes Main settings Main theme settings are available on...