درود خدمت دوستان گرامی
خواستم بدانم که چطور می شود که در قسمت title یک ابزارک در وردپرس تغییر ایجاد کرد (بتوان یک کلاس را کنار title قرار داد)
مثل تصویر زیر: فایل پیوست 36208
من از php سر در نمی یارم اینم کد های یک ابزارک اختصاصی مشکل من این است که یک دایو و کلاس را قبل از After title قرار داد
<?php // Creating the widget class wpb_widget extends WP_Widget {
function __construct() { parent::__construct( // Base ID of your widget 'wpb_widget',
// Widget name will appear in UI __('a widget for wordpress', 'bigtheme'),
// Widget description array( 'description' => __( 'Sample widget based on (discription widget)', 'bigtheme' ), ) ); }
// Creating widget front-end // This is where the action happens public function widget( $args, $instance ) { $title = apply_filters( 'widget_title', $instance['title'] ); // before and after widget arguments are defined by themes echo $args['before_widget']; if ( ! empty( $title ) ) echo $args['before_title'] . $title . $args['after_title'];
// This is where you run the code and display the output echo __( 'سلام , این ابزارک من است!', 'bigtheme' ); echo $args['after_widget']; }