think differentnew
asked 4 years ago

Hi i am using Dwfocus 1.7 Dw focus version and i would like to show DW focus widget Headline li section in two equal section , How i add the changes for this, Thanks ,
Please check this screenshot : I would like to show this particular li section in two equal parts .
http://www.awesomescreenshot.com/image/329626/ffef729e7729857552a45bb12f11a6eb

3 Answers
DominicStaff
answered 3 years ago

Hi,
The DW focus:Headline widget used for DW Focus has made for only the "Under Navigation" position and not support in the DW tabs widget. So it’s hard for you to show in two equal parts, unfortunately.
Regards,

think differentnew
answered 3 years ago

Yep thanks perfect now, I did’t update the css for this :

.headline_left{
    float:left;
    width:42%;
    padding-right:6%;
    min-height:40px;

}
.headline_right{
    float:left;
    width:42%;
    padding-right:6%;
    margin:0;
    min-height:40px;
}
dominic Staff
replied 3 years ago

Awesome! Thank you so much, my friend.

think differentnew
answered 3 years ago

Can you please remove the above code , I has a wrong piece of code : This is the code which is works perfect with above css .

<div class="headlines" data-interval="<?php echo ($interval>0)?$interval*1000:'false'; ?>">
<ul class="headline_left">
<?php  
   $i = 1;
    while ( $r->have_posts() ) {
       $r->the_post(); ?>
        <li>
            <?php the_title( '<a href="' . get_permalink() . '">', '</a>' ); ?>
            <span class="time_diff"><?php echo ' - ' . dw_human_time_diff( get_the_time('U'), current_time('timestamp') ); ?></span>
        </li>
        <?php 
        if($i == 10){ 
            echo "</ul><ul class='headline_right'>";
        } 
        $i++; 
    }
?>
</ul>  
</div>  
Powered by DW Question & Answer Pro