Support » Fixing WordPress » Border or margin problem

  • Resolved sthaa019

    (@sthaa019)


    Hi

    I’m relatively new on this..

    At my site, when viewing a single post, the text is too far to the left, it’s outside the ‘page’.

    I have tried to fiddle around a bit with the CSS-files, but cannot seem to fix it..

    pls help

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @sthaa019

    To do that you have to add below css code into Appearance → Customize → Additional CSS:

    @media screen and (min-width: 601px) {
      .content-area-right-sidebar {
        right: 0;
      }
    }

    Let me know if that does it.
    Thank you.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @sthaa019, You need to stop making changes to the theme’s style.css file and instead use the “Additional CSS” section of the dashboard to change things.

    This:
    1) Preserves your changes when the theme updates;
    2) Reduces margin for larger errors (a syntax error could break all other styles)
    3) And helps us debug the problem without looking through a thousand lines of code.

    https://codex.wordpress.org/CSS#Custom_CSS_in_WordPress

    So when you want to make a CSS change, find the CSS you want, copy it and paste it into the “Additional CSS” section. Change it from there.

    @snehalb890
    Thanks! that does it!
    Very much appreciated!

    @anevins
    Totally agree!
    I’m learning both the hard way and how to use the custom CSS-function.

    Thanks for quick responses guys!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Border or margin problem’ is closed to new replies.