。
WordPressでのウィジェットのカスタマイズについて質問です。
下記の2つめのコードが最終的に吐き出したいhtmlです。
dynamic_sidebar()関数を使ってコードを吐き出す場合には、どのように個々のウィジェットに対してhtmlを適応できるのでしょうか?
駄文で申し訳ありません。
よろしくお願いします。
register_sidebar(array( 'name' => __('Test', 'admin'), 'description' => __('Top of Services area'), 'id' => 'services', 'before_widget' => '<div class="row section featured topspace">', 'after_widget' => '</div>', 'before_title' => '<h2 class="section-title"><span>Services</span>', 'after_title' => '</h2>' ));
<div class="row section featured topspace"> <h2 class="section-title"><span>Services</span></h2> <div class="row"> <div class="col-sm-6 col-md-3"> <h3 class="text-center">Custom website design</h3> <p>I don't think they tried to market it to the billionaire, spelunking, base-jumping crowd. i did the same thing to gandhi, he didn't eat for three weeks. i once heard a wise man say there are no perfect men.</p> <p class="text-center"><a href="" class="btn btn-action">Read more</a></p> </div> <div class="col-sm-6 col-md-3"> <h3 class="text-center">Wordpress integration</h3> <p>I don't think they tried to market it to the billionaire, spelunking, base-jumping crowd. i did the same thing to gandhi, he didn't eat for three weeks. i once heard a wise man say there are no perfect men.</p> <p class="text-center"><a href="" class="btn btn-action">Read more</a></p> </div> <div class="col-sm-6 col-md-3"> <h3 class="text-center">Application development</h3> <p>I don't think they tried to market it to the billionaire, spelunking, base-jumping crowd. i did the same thing to gandhi, he didn't eat for three weeks. i once heard a wise man say there are no perfect men.</p> <p class="text-center"><a href="" class="btn btn-action">Read more</a></p> </div> <div class="col-sm-6 col-md-3"> <h3 class="text-center">SEO & SEM services</h3> <p>I don't think they tried to market it to the billionaire, spelunking, base-jumping crowd. i did the same thing to gandhi, he didn't eat for three weeks. i once heard a wise man say there are no perfect men.</p> <p class="text-center"><a href="" class="btn btn-action">Read more</a></p> </div> </div> </div>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。