- This topic has 15 replies, 4 contibutors, and was last updated 9 years, 7 months ago by .
-
Question
Answers
- The question ‘Home Page Formatting’ is closed to new replies.
BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Home Page Formatting
I 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?
@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 simply header
(non-class, just straight)
I 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?
@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.
Please check my attached picture, I changed it to 200
@duca24 did you just delete them from the Slide Post, via FTP, or via WordPress Media?
Hi I just delete them from the Slide post. Where should I delete them? FTP?
@tjchester I deleted all the files from the Media libary. It is still 400px height?
Why?
@duca24 try deleting the files from FTP as well. Or at least verify the files are deleted by checking FTP.
I 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?
@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 );
Thank you it worked out finally 😀 Great support!!
Great news, thanks!
… 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… 🙂