2011-02-27 16 views
8

में विजेट्स के एचटीएमएल कोड को कैसे परिवर्तित करें विजेट्स के एचटीएमएल कोड को कैसे बदलें? मैंने sidebar.php में कुछ बदलाव करने की कोशिश की लेकिन कोई परिणाम नहीं।वर्डप्रेस

मैं किसी भी मदद के लिए बहुत आभारी रहूंगा।

उत्तर

8

यह आपके functions.php फ़ाइल में परिभाषित किया गया है। आप आसानी से सही विकल्प में पास करके इसे बदल सकते हैं

if (function_exists('register_sidebar')) { 
     $opts = array(
     'name'   => 'IndexWidgets', 
     'before_widget' => '<div id="%1$s2" class="home_box %2$s">', 
     'after_widget' => '</div></div>', 
     'before_title' => '<h2>', 
     'after_title' => '</h2><div class="home_box_body">' 
    ); 
    register_sidebar($opts); 
} 

इस संदर्भ के लिए Wordpress कोडेक्स लिंक है: http://codex.wordpress.org/Function_Reference/register_sidebar