Home Page Widgets
Support Area › Forums › Elite › Home Page Widgets
- This topic has 9 replies, 2 voices, and was last updated 11 years, 10 months ago by
Bill Robbins.
-
AuthorPosts
-
October 22, 2014 at 18:53 #23443
DenisK
ParticipantGood evening Bill,
I am placing different widgets on my home page, lets say i want to add weather widget 3 different cities, but when i place them they are not in line and one goes below another one.
How can place all three in line ?
Thank you.
October 23, 2014 at 08:46 #23451Bill Robbins
ParticipantGood Morning Denis,
Great question there. The widgets in the home page template are made to be full width. You can change that if you need to. Here’s how:
- Go to your theme options page and choose the Advanced tab.
- Scroll down to the Custom CSS box and add this:
@media only screen and (min-width: 768px) { #home-one .widget { width: 31%; float: left; margin-left: 1%; margin-right: 1%; } }Just replace the
onein the#home-onewith the number of the section where you’d like to make the widgets smaller. - Update your settings.
That should do it. Let me know if you have any questions.
Have a great day,
BillOctober 23, 2014 at 09:33 #23460DenisK
ParticipantGood Morning Bill,
This is what I get. I want these weather icons to be in one line 🙂
Please let me know what I am doing wrong.
Thank you.
October 23, 2014 at 09:38 #23462Bill Robbins
ParticipantHey Denis,
It looks like you’ve set up the code to use the fifth home widget area, but the one of the weather widgets is in the first one, and the other is in the second one. Try adding both of those widgets to the fifth one and see how that goes for you.
Bill
October 23, 2014 at 09:46 #23466DenisK
ParticipantIt does look better but not in one line ?
Thank you.
October 23, 2014 at 09:50 #23467Bill Robbins
ParticipantWe’re close. It’s home-two, not home-2. Change the entire snippet to be like this:
@media only screen and (min-width: 768px) { #home-two .widget { width: 31%; float: left; margin-left: 1%; margin-right: 1%; } }Don’t forget that last closing } or it may cause trouble for any other styles you add in the future.
See how that goes,
BillOctober 23, 2014 at 10:41 #23468DenisK
Participantworks much better Bill thank you )
How do i bring home two closer to home one, there is a little gap there ?
Thank you.
October 23, 2014 at 10:56 #23469Bill Robbins
ParticipantThe home page template is generally expected to use a format other than the standard one. When a standard format is used, there is a top margin added to the wrap class to keep the content from appearing under the header. Since you’re not using the hero section, we’ll need to remove that margin. Add this to your Custom CSS to do that:
.home .wrap { margin-top: 0; overflow: hidden; }Bill
October 23, 2014 at 11:27 #23470DenisK
ParticipantBill I am your loyal customer for life. Your support is simply amazing.
Thank you again and have a great day.
October 23, 2014 at 11:35 #23471Bill Robbins
ParticipantThank you Denis 🙂
Enjoy your day too
-
AuthorPosts
- The topic ‘Home Page Widgets’ is closed to new replies.
