- This topic has 5 replies, 2 voices, and was last updated 6 years, 2 months ago by tikaram.
-
AuthorPosts
-
January 24, 2018 at 8:56 pm #130472abisbeeParticipant
Hi.
I have 3 sidebars on my site. (https://wellnesswarriorsboston.org/) I used CSS to set the sidebar widget spacing for two types of sidebars, but I can’t increase the spacing on the sidebar used for my password protected pages and I don’t know why. My CSS code is below.
Home page (page-id-3848) uses Optional Sidebar 2
Password protected pages (e.g. https://wellnesswarriorsboston.org/team-events/) use Optional Sidebar 1
All other pages use Primary Sidebar..sidebar-primary .widget {
margin-bottom: 15px;
}.page-id-3848 .sidebar-primary .widget {
margin-bottom: 5px;
}.optional-sidebar-one .widget {
margin-bottom: 20px;
}What am I doing wrong?
January 25, 2018 at 12:30 am #130484tikaramKeymaster@abisbee : Please replace the NON-HOME PAGE Resize sidebar css with the following css and all your pages will have larger sidebar. If you would like to set spacing for specific pages you will need to include page ids. Please let me know if you need further assistance regarding the issue.
/*NON-HOME PAGE Resize sidebar ---------------------------*/ @media screen and (min-width: 990px) { #main { width: 60%; } .sidebar-primary { width: 32%; padding-left:0; } }
Regards,
TikaramJanuary 25, 2018 at 12:42 am #130487abisbeeParticipantThank you, Tikaram, but that wasn’t my question. I want to adjust the spacing between the widgets in the sidebars. For example, if you look at the sidebar in page-id-3095, the CT: Featured Post and the Image widgets are tight against each other. I was able to adjust the widgets on the other sidebars using the code I showed above, but not in this one.
Alice
January 25, 2018 at 3:43 am #130509tikaramKeymaster@abisbee : Please try adding the following additional css.
#catchresponsive_post_widget-4 { margin-bottom: 35px; }
Let me know if this resolves your issue.
Regards,
TikaramJanuary 25, 2018 at 4:58 pm #130546abisbeeParticipantIt works! Thank you, Tikaram. 🙂
Alice
January 25, 2018 at 11:12 pm #130565 -
AuthorPosts
- The topic ‘sidebar widget spacing’ is closed to new replies.