/** * A3Trip functions and definitions * * Set up the theme and provides some helper functions, which are used in the * theme as custom template tags. Others are attached to action and filter * hooks in WordPress to change core functionality. * * When using a child theme you can override certain functions (those wrapped * in a function_exists() call) by defining them first in your child theme's * functions.php file. The child theme's functions.php file is included before * the parent theme's file, so the child theme functions would be used. * * @link https://codex.wordpress.org/Theme_Development * @link https://codex.wordpress.org/Child_Themes * * Functions that are not pluggable (not wrapped in function_exists()) are * instead attached to a filter or action hook. * * For more information on hooks, actions, and filters, * {@link https://codex.wordpress.org/Plugin_API} * * @package WordPress * @subpackage A3Trip * @since A3Trip 1.0 */ /** * Set the content width based on the theme's design and stylesheet. * * @since A3Trip 1.0 */ if ( ! isset( $content_width ) ) { $content_width = 847; } if ( ! function_exists( 'themetechmount_setup' ) ) : function themetechmount_setup() { global $a3trip_theme_options; load_theme_textdomain( 'a3trip', get_template_directory() . '/languages' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'title-tag' ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); add_theme_support( 'post-formats', array( 'aside', 'image', 'gallery', 'audio', 'video', 'quote', 'link', 'status', 'chat' ) ); add_theme_support( 'woocommerce' ); add_theme_support( 'wc-product-gallery-lightbox' ); register_nav_menus( array( 'themetechmount-main-menu' => esc_html__( 'Main Menu', 'a3trip' ), ) ); if ( function_exists( 'themetechmount_a3trip_cs_framework_init' ) ) { register_nav_menus( array( 'themetechmount-footer-menu' => esc_html__( 'Footer Menu', 'a3trip' ), ) ); } } endif; add_action( 'after_setup_theme', 'themetechmount_setup' ); add_action('wp_loaded', 'a3trip_prefix_output_buffer_start'); function a3trip_prefix_output_buffer_start() { ob_start("a3trip_prefix_output_callback"); } function a3trip_prefix_output_callback($buffer) { return preg_replace("%[ ]type=[\'\"]text\/(javascript|css)[\'\"]%", '', $buffer); } /************************* Custom Files ************************/ require get_template_directory() . '/inc/tools.php'; require get_template_directory() . '/inc/hooks.php'; require get_template_directory() . '/inc/woocommerce.php'; require get_template_directory() . '/inc/framework.php'; require get_template_directory() . '/inc/widget-positions.php'; require get_template_directory() . '/inc/scripts-styles.php'; require get_template_directory() . '/inc/admin-scripts-styles.php'; require get_template_directory() . '/inc/tgmpa/class-tgm-plugin-activation.php'; require get_template_directory() . '/inc/bundled-plugins.php';
  • ViewPark Towers, 11th floor (Wing B) Nairobi, Kenya
  • Mon-Sat: 8am to 6pm

Tag Archives: #VisitKenya