BuddyBoss Home – Web › Support Forums › Solutions › Social Learner › Change padding on content to header space
- This topic has 8 replies, 2 contibutors, and was last updated 8 years, 10 months ago by Anonymous.
Question
December 29, 2015 at 10:26 am #55184@stingray309Hi
In this thread:
https://www.buddyboss.com/support-forums/topic/disable-page-title/
Varun Dubey describes a method to change the padding of the top of the page (content area). Here is the code he provides:
#activate-page, .sensei-content, body.page:not(.buddypress) .site-content article:not(.comment), body.single:not(.buddypress):not(.bbpress) .site-content article:not(.comment){
padding-top: 60px!important;
padding-bottom: 36px!important;
}Is there CSS code that will only reduce the padding on the “home” page’s content and leave the other pages in their default state? I want the home page to be 5px (and the others to be 60px).
Thanks,
Jim
Answers
December 29, 2015 at 1:19 pm #55199@
AnonymousHi @stingray309, Please provide the url for your home page so I could provide you the exact css for 5px padding and you can use the same css for other pages to set the padding 60px.
Regards
December 29, 2015 at 1:38 pm #55200@stingray309Hi
Can I send to you my URL through your contact form? The web site is in “stat collecting mode” where we are attempting to monitor the site for keywords and don’t want the Internet BOTs to raise the numbers by posting here.
Jim
December 29, 2015 at 1:48 pm #55202@
AnonymousHi @stingray309, Okay you can send me the site details through contact us page.
Regards
December 29, 2015 at 2:01 pm #55203@stingray309Hi
Thank you very much. I have submitted.
Jim
December 29, 2015 at 2:33 pm #55207@
AnonymousOkay I will check that and reply you there..
Thanks
December 31, 2015 at 8:20 am #55278@stingray309Hi
Just to follow up with the great suggestion Pallavi provided. She indicated to make a copy of my FrontPage.php from the main theme’s file and add the following line of code between lines 19-21:
<?php echo do_shortcode( ‘[layerslider id=”2″]’ ); ?>
This worked perfectly! The slider now looks very professional.
(Once I get a solution to this ticket: https://www.buddyboss.com/support-forums/topic/possible-bug-headings-colors-v-text-color/#post-55160…I’ll be looking really good!)
Thank you Pallavi!
Jim
December 31, 2015 at 8:21 am #55279@stingray309Additional Note:
The slider shortcode is custom to my site; if you add this to your site, your shortcode might actually be slightly different.
Jim
January 1, 2016 at 10:24 am #55322@
AnonymousThanks..I Will Provide you proper solution there..
- The question ‘Change padding on content to header space’ is closed to new replies.