X7ROOT File Manager
Current Path:
/home/notabjze/boatingnight.com/wp-content/themes/yachbat/inc
home
/
notabjze
/
boatingnight.com
/
wp-content
/
themes
/
yachbat
/
inc
/
ðŸ“
..
📄
class-customize.php
(41.74 KB)
📄
class-elementor.php
(7.39 KB)
📄
class-hook.php
(11.19 KB)
📄
class-main.php
(10.67 KB)
📄
class-widgets.php
(1.25 KB)
📄
class-woo-template-functions.php
(11.54 KB)
📄
class-woo-template-hooks.php
(4.8 KB)
📄
class-woo.php
(6.35 KB)
📄
functions.php
(8.64 KB)
Editing: class-widgets.php
<?php if (!defined( 'ABSPATH' )) exit; if( !class_exists('Yachbat_Widgets') ){ class Yachbat_Widgets { function __construct(){ /** * Regsiter Widget */ add_action( 'widgets_init', array( $this, 'yachbat_register_widgets' ) ); } function yachbat_register_widgets() { $args_blog = array( 'name' => esc_html__( 'Main Sidebar', 'yachbat'), 'id' => "main-sidebar", 'description' => esc_html__( 'Main Sidebar', 'yachbat' ), 'class' => '', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => "</div>", 'before_title' => '<h4 class="widget-title">', 'after_title' => "</h4>", ); register_sidebar( $args_blog ); if( yachbat_is_woo_active() ){ $args_woo = array( 'name' => esc_html__( 'WooCommerce Sidebar', 'yachbat'), 'id' => "woo-sidebar", 'description' => esc_html__( 'WooCommerce Sidebar', 'yachbat' ), 'class' => '', 'before_widget' => '<div id="%1$s" class="widget woo_widget %2$s">', 'after_widget' => "</div>", 'before_title' => '<h4 class="widget-title">', 'after_title' => "</h4>", ); register_sidebar( $args_woo ); } } } } return new Yachbat_Widgets();
Upload File
Create Folder