WordPress.org

Ready to get started?Download WordPress

Forums

ML Post Slider
[resolved] slider 100% width (2 posts)

  1. erangakavi
    Member
    Posted 11 months ago #

    Hi,

    I want to put a slider with 100% width ([ml_width]). Currently we can give only Pixel width. Please help.

    thanks
    Eranga

    http://wordpress.org/plugins/ml-post-slider/

  2. dwawobieg
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,

    If You want put a slider with 100% width You have to do some changes in code.

    In line 217 You have:
    echo '<div class="parrent_ml_post_slider'.$instance['ml_unique_id'].'" style="position:relative; display:block;width:'.($instance['ml_width']).'px; height:'.($instance['ml_height']).'px;">';
    and in line 221:
    echo '<div style="width:'.$instance['ml_width'].'px; height:'.$instance['ml_height'].'px; overflow:hidden;">'.do_shortcode($post->post_content).'</div>';
    All what You have to do is change 'px' on '%' in this two lines.

    If You will be use also navigation arrows do this same thing in lines 224 and 225.

Reply

You must log in to post.

About this Plugin

About this Topic