Sidebar, how to change the width?


#1

Simple question, yet i can’t find an answer in the documentation.

Is there a simple way to set the width of a sidebar?
I chose a layout with sidebar for post and full width for pages.

Bonus question, is there a widget that displays only the recent post in the same category than the current post?

Thank you so much for your help.
Regards


#2

Hello,

Unfortunately there is no such widget.

As for the sidebar width, it can be changed with custom css code.
Please share the page URL where you want to modify the sidebar.

Thank you.
Best regards,
Artbees Support.


#3

Thank you for your reply

I want to use the sidebar for this one:

diagnostictechniqueglobal.net/diagnostic-immobilier/article-de-test/

As you can see i use specific html in the sidebar.
Carefull, some pages uses full_width layout, it must not disturb thoses pages :).
Regards.


#4

Hello,

Sorry for a delay.
Please add this code in Theme Options > Advanced > Custom CSS:

.theme-page-wrapper #mk-sidebar.mk-builtin {
    width: 30% !important;
}

.theme-page-wrapper.right-layout .theme-content, .theme-page-wrapper.left-layout .theme-content {
    width: 70% !important;
}

Best regards,
Artbees Support.