BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Home Page Formatting
- This topic has 15 replies, 4 contibutors, and was last updated 9 years, 6 months ago by Alyssa.
Question
April 19, 2015 at 9:55 pm #39137@don4lawI am struggling with trying to format the front page. I would like to format 2 things and cannot figure out how to di it:
1. Adjust the height of the slider because it appears much too large on desktops, kn my view; and
2, I want to eliminate the title of the page on the home page, but when I do usingg display:none css, there is a huge gap between the bottom of the slider and the text. If I add additional text or widget, there is a huge gap. If I choose to display the page title, there is a huge gap between the bottom of the title and the subsequent item, whether it be text or widget, or whatever. I would like to format these elements according to my wishes. How do I do that?
Answers
April 21, 2015 at 10:59 am #39206@alyssa-buddyboss
AlyssaParticipant@don4law sorry for the delay I was having trouble accessing my dev computer remotely.
1) Add this to functions.php in your child theme:
add_image_size('buddyboss_slides', 1040, 400, true);
Change 400 to whatever height you want the slides to be. NOTE: You will need to delete your current slides from WP Media and reupload them to get them to resize.2) This is a bit ambiguous since you can literally set your home page to be any page on your site. But instead of targeting the h1 tag try targeting this class:
.page-header
or simplyheader
(non-class, just straight)April 24, 2015 at 6:05 pm #39375@duca24I added that to the functions.php file, deleted all slides and uploaded new ones. But still 400px height, but does not work. Do you know why?
April 25, 2015 at 5:59 pm #39404@alyssa-buddyboss
AlyssaParticipant@duca24 what did you change the new value to? You need to change the 400 in the above code to whatever you want it to be.
April 25, 2015 at 8:06 pm #39409@duca24Please check my attached picture, I changed it to 200
April 26, 2015 at 9:38 am #39441@alyssa-buddyboss
AlyssaParticipant@duca24 did you just delete them from the Slide Post, via FTP, or via WordPress Media?
April 26, 2015 at 1:41 pm #39448@duca24Hi I just delete them from the Slide post. Where should I delete them? FTP?
April 27, 2015 at 8:33 pm #39481April 27, 2015 at 8:55 pm #39488@duca24@tjchester I deleted all the files from the Media libary. It is still 400px height?
Why?
April 28, 2015 at 8:49 am #39506@alyssa-buddyboss
AlyssaParticipant@duca24 try deleting the files from FTP as well. Or at least verify the files are deleted by checking FTP.
April 28, 2015 at 11:22 pm #39529@duca24I deleted it Media, form the slides and checked FTP, everything deleted.
The slide dimensions are still saying 400 height.
Would you recommend to use Meta Slider instead?
April 29, 2015 at 8:43 pm #39567@alyssa-buddyboss
AlyssaParticipant@duca24 sorry it appears the code is executing after the functions.php file I have tested this code to work properly:
function alt_buddyboss_setup() { add_image_size('buddyboss_slides', 1040, 200, true); } add_action( 'after_setup_theme', 'alt_buddyboss_setup', 999 );
April 29, 2015 at 10:46 pm #39575@duca24Thank you it worked out finally 😀 Great support!!
April 30, 2015 at 2:22 pm #39592@alyssa-buddyboss
AlyssaParticipantGreat news, thanks!
May 2, 2015 at 6:59 am #39651@jeanpierre… i would vote/request that the slider height become a setting, i would prefer to have it on something else than 400px myself as well… 🙂
- The question ‘Home Page Formatting’ is closed to new replies.