Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Umar Bajwa

    (@umarbajwa)

    Hi,

    Please share the URL of page where feed is placed, I will look into it.

    Thanks

    How did this get resolved? My widget is also misaligned
    https://www.barbarabrownart.com/

    Thread Starter japwp

    (@japwp)

    I guess it’s not resolved :/

    Plugin Author Umar Bajwa

    (@umarbajwa)

    Hi,

    It is misaligned because for some reason its width becomes 0px. Add following custom css on your page and it will fix it.

    <style>
    .social-feed-main-container {width:100% !important;}
    </style>

    Plugin Author Umar Bajwa

    (@umarbajwa)

    Thanks! That did it ??

    here’s a patch to fix it by default:

    --- public/templates/default/template.php.bak   2019-08-16 17:21:02.068000000 -0400
    +++ public/templates/default/template.php       2019-08-16 17:37:54.600000000 -0400
    @@ -1,9 +1,21 @@
     <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
    -<div class="social-feed-main-container" style="width: <?php echo intval( $template_var['width'] ) ?>px;max-width: 100%">
    +<div class="social-feed-main-container" style="width: <?php 
    +  if( intval( $template_var['width'] ) != 0)  {
    +    echo intval( $template_var['width'] ) , 'px';
    +  } else { 
    +    echo '100%';
    +  }
    +?>;max-width: 100%">
     <div
     
     id="feed<?php echo intval($id) ?>"
    -style="width: <?php echo intval( $template_var['width'] ) ?>px;max-width: 100%"
    +style="width: <?php 
    +  if( intval( $template_var['width'] ) != 0)  {
    +    echo intval( $template_var['width'] ) , 'px';
    +  } else { 
    +    echo '100%';
    +  }
    +?>;max-width: 100%"
     data-ajaxlink="<?php echo esc_url( $template_var['ajax_link'] ) ?>" 
     data-facebook="<?php esc_attr_e( $template_var['facebook_profile'] ) ?>" 
     data-fbtoken="<?php esc_attr_e( $template_var['fb_token'] ) ?>" 

    It looks like this is because wssf_feed_width cannot be set in the free version but the code assumes there will be a valid value.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Misaligned plugin’ is closed to new replies.