CSS editing and sidebar width question

resolved (3 posts) (2 voices)

  1. James_Borrell
    Member

    Hi Guys,

    Quick question on the best/correct way to do something.

    I'd like to change the sidebar width.

    Following the suggestion in this thread, I tried editing 'custom CSS' under my theme menu, general settings. However nothing seems to change.

    .right_sidebar #sidebar {
      width: 150px;
    }
    .right_sidebar #main {
        width: 700px;
    }

    Instead, I've edited the style.css file, and this works.

    Just wondering out of curiosity why changes under 'custom CSS' don't seem to have any effect, or what am I doing wrong?

    Many thanks!

    James

    p.s. also, changing the style.css file, will this be fine even if there are updates?

    Posted 3 years ago #
  2. Elliott
    Support

    Hello James_Borrell,

    Try using the !important rule like so,

    .right_sidebar #sidebar { width: 100px !important; }

    If you edit any files then they will need to be re-edited after an update.

    Posted 3 years ago #
  3. James_Borrell
    Member

    Cheers Elliott, got the hang of it now I think.

    Posted 3 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme