- This topic has 13 replies, 2 voices, and was last updated 3 years, 3 months ago by
Leo.
-
AuthorPosts
-
October 10, 2019 at 10:57 am #1031479
Ravi Dixit
I want to add a floating TOC at sidebar…
When I added it using Easy Table Of Contents by adding it in widgets…
But it is changing single post container alignment, See here https://prnt.sc/phkkp8
I don’t want to move my single post container to left. Instead, I want to add TOC without moving my post container, see here https://prnt.sc/phknqy
I tried by using Right Sidebar Width from in-built option but it is not looking as I am expecting… It should be like https://prnt.sc/phkpyl
Thanks,
Ravi DixitOctober 10, 2019 at 11:13 am #1031489Leo
StaffCustomer SupportHi there,
Can you add it using the right sidebar and link me to the post in question?
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 10, 2019 at 11:31 am #1031509Ravi Dixit
October 10, 2019 at 12:13 pm #1031523Leo
StaffCustomer SupportTry this CSS:
.single .site.grid-container { margin-right: 0; }
You could increase the number if you want some space on the right of sidebar too.
Let me know if this helps π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 10, 2019 at 12:20 pm #1031529Ravi Dixit
It worked but not as I wanted…
See here https://prnt.sc/phlspt
I don’t want to move post container…
Instead, we can make the widget small…
October 10, 2019 at 12:25 pm #1031534Leo
StaffCustomer SupportI’m looking at the screenshot but not sure what I am missing.
So you want to make the sidebar smaller?
That can be done in the customzier:
https://docs.generatepress.com/article/sidebar-widths/Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 10, 2019 at 12:29 pm #1031535Ravi Dixit
Thanks, Leo!
It worked, I decrease the width using the in-built option.
Can you help me in this query, https://generatepress.com/forums/topic/how-to-last-updated-date-on-page-header/#post-1031433
October 10, 2019 at 12:31 pm #1031537Leo
StaffCustomer SupportNo problem π
We will get to the other topic. Thanks for your patience!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 10, 2019 at 1:01 pm #1031557Ravi Dixit
Hey, Leo!
Something just popped up into my mind…
If we can decrease the space between Sidebar and Post containers then it might solve my issue. I am talking about this highlighted space: https://prnt.sc/phmbk5
And the TOC links are not showing fully just because of the sidebar, I have highlighted that too.
October 10, 2019 at 1:14 pm #1031569Leo
StaffCustomer SupportYou could try this CSS to decrease the space between them:
.single .inside-article, .comments-area { margin-right: 20px; }
It’s simply not possible to keep the container where it was, decrease the space between the content and sidebar while keeping the sidebar sticking to the right edge.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 10, 2019 at 2:23 pm #1031603Ravi Dixit
Thanks, It worked as I was expecting…
October 10, 2019 at 6:25 pm #1031699Leo
StaffCustomer SupportAwesome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 11, 2019 at 11:39 am #1032330Ravi Dixit
Hi, Leo…
That CSS is working on mobile also, see here https://prntscr.com/pi2msk
I want it only for desktop…
I have disabled the TOC from mobile.
Please help…
October 11, 2019 at 11:45 am #1032334Leo
StaffCustomer SupportJust need to wrap the code in media query:
@media (min-width: 769px) { .single .inside-article, .comments-area { margin-right: 20px; } }
Learn more here: https://docs.generatepress.com/article/responsive-display/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.