Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

Home Forums Support Widgets

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #122843
    Bhekor

    Hi,
    Am having a little problem with my sidebar widgets, the widget don’t usually have their full width is either they float to the right or left or just looks tiny, so I sometimes use margin-left or right in my CSS to position them but this always affect the responsive layout of the site on different screen sizes. Am using Jetpack facebook widget and twitter timeline widget right now, the facebook widget seems ok but the twitter widget is having the same problem.

    #122876
    Tom
    Lead Developer
    Lead Developer

    Can you link me to your site so I can take a look at what’s going on possibly?

    #130677
    Bhekor

    Thanks for replying, my site is not online yet, am still working/hosting it offline then use ftp client to upload it online when completed.

    #130699
    Tom
    Lead Developer
    Lead Developer

    No problem – any chance you can take a screenshot of the issue so I can see it?

    #130803
    Bhekor

    Yes, here facebook like it looks as if it float to the right, I was able to align it perfectly on the desktop with CSS but this affect the responsiveness which I have to start writing different media queries to achieve. the widget area works great for other widgets but the facebook and the twitter widgets for some reason not cooperating have tried different widget plugin for the facebook and twitter but always come out the same. The widget in the image is Facebook Like Box (Jetpack).

    #130878
    Tom
    Lead Developer
    Lead Developer

    Hmm, very difficult for me to know what’s going on without being able to look at the code.

    What’s the CSS you added for desktop?

    #131029
    Bhekor

    .fb-page{
    width: 230px !important;
    margin-left: -60px !important;
    margin-right: 60px;
    }

    #131117
    Tom
    Lead Developer
    Lead Developer

    What happens when you remove that code completely?

    #132854
    Bhekor

    When I removed the code I got that in the picture above. But with the code I got this
    With the code

    #132906
    Tom
    Lead Developer
    Lead Developer

    You can try to use that CSS only on desktop:

    @media (min-width:767px) {
          .fb-page{
                width: 230px !important;
                margin-left: -60px !important;
                margin-right: 60px;
          }
    }
    #133450
    Bhekor

    OK, thanks

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.