'Top Menu') ); add_theme_support('custom-header'); add_theme_support( 'title-tag' ); add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption', 'style', 'script' ) ); add_theme_support( 'custom-logo' ); add_theme_support( 'custom-header' ); add_theme_support( 'custom-background' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. */ load_theme_textdomain( 'objtech' ); // Add support for full and wide align images. add_theme_support( 'align-wide' ); // Add support for responsive embeds. add_theme_support( 'responsive-embeds' ); add_theme_support( 'wp-block-styles' ); add_theme_support( 'post-thumbnails' ); register_sidebar( array( 'name'=>"sidebar Location", 'id'=>'sidebar' ) ); ?> __( 'Main Sidebar', '' ), 'id' => 'sidebar-1', 'class' =>'form-control p-3 border-0', 'before_widget' => '', 'after_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); } add_action( 'widgets_init', 'desktop_register_widgets_init' ); ?> __( 'First Footer Widget Area', '' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer widget area', '' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); // Second Footer Widget Area, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Second Footer Widget Area', '' ), 'id' => 'second-footer-widget-area', 'description' => __( 'The second footer widget area', '' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } // Register sidebars by running wraperdesc_widgets_init() on the widgets_init. add_action( 'widgets_init', 'wraperdesc_widgets_init' ); ?> esc_attr__( 'strong magenta', 'objtech' ), 'slug' => 'Yellow', 'color' => '#F3BD00', ), array( 'name' => esc_attr__( 'light grayish magenta', 'objtech' ), 'slug' => 'light-grayish-magenta', 'color' => '#d0a5db', ), array( 'name' => esc_attr__( 'very light gray', 'objtech' ), 'slug' => 'very-light-gray', 'color' => '#eee', ), array( 'name' => esc_attr__( 'very dark gray', 'objtech' ), 'slug' => 'very-dark-gray', 'color' => '#444', ), ) ); } add_action( 'after_setup_theme', 'objtech_setup_theme_supported_features' ); ?> /"; preg_match_all($pattern,$content,$match); if(empty($match[0][0])){ echo ""; } else { echo $match[0][0]; } } ?> '', 'default-preset' => 'default', // 'default', 'fill', 'fit', 'repeat', 'custom' 'default-position-x' => 'left', // 'left', 'center', 'right' 'default-position-y' => 'top', // 'top', 'center', 'bottom' 'default-size' => 'auto', // 'auto', 'contain', 'cover' 'default-repeat' => 'repeat', // 'repeat-x', 'repeat-y', 'repeat', 'no-repeat' 'default-attachment' => 'scroll', // 'scroll', 'fixed' 'default-color' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '', ); add_theme_support( 'custom-background', $defaults ); ?> tag support add_theme_support( 'title-tag' ); } add_action( 'after_setup_theme', 'nd_dosth_theme_setup'); ?>