2012-06-16 90 views

回答

0

當您註冊側邊欄(部件領域),有可用於設置HTML標籤的參數。

register_sidebar(array(
      'name'   =>"Sidebar Name", 
      'id'    => "unique_sidebar_id", 
      'description'  => "Your Description here", 
      'before_widget' => '<aside id="%1$s" class="your-classes %2$s">', 
      'after_widget' => '</aside>', 
      'before_title' => '<h3 class="widget-title" rel="your-rel">', 
      'after_title'  => '</h3>' 
     )); 

的before_widget說法也運行sprint_f與每個部件的唯一ID代替%1$s

相關問題