Community Forums › Forums › Archived Forums › Design Tips and Tricks › Need Help Adding 4 Columns to Home-Top Section – Executive Pro
Tagged: 4 columns, executive pro
- This topic has 12 replies, 3 voices, and was last updated 10 years, 12 months ago by Brad Dalton.
-
AuthorPosts
-
December 21, 2013 at 9:06 pm #806954WardMotionMember
Can someone tell me what I need to do to get 4 columns added to the home-top section using Executive Pro? I have changed the css to be 25% and played around with the padding, but it will not put my forth column to the right of the other three. It keeps dropping it below. I have also looked in functions.php and I can’t see anything in there that would affect this.
Here is the page in questions: http://fultonhotelsolutions.com
Probably something simple, but I am not getting it figured out.
Thanks!
http://fultonhotelsolutions.comDecember 21, 2013 at 10:53 pm #80699Brad DaltonParticipantAround line 1295 i changed the code to this:
.home-middle .widget { float: left; padding: 0 2.8%; width: 33.33333333%; } .home-top .widget { float: left; padding: 0 2.8%; width: 25%; }
And it works for me.
December 21, 2013 at 11:27 pm #80704Brad DaltonParticipantDecember 22, 2013 at 12:34 am #807134WardMotionMemberHi Brad,
Thank you very much for your tutorial. I tried doing this and it still isn't working for me. I also tried adding the centering of the title css that you added and that didn't work either.
Can you look at my site at http://fultonhotelsolutions.com and tell me if you can see what is going wrong?
Thanks for your help!
December 22, 2013 at 12:41 am #80716Brad DaltonParticipant1. This is the code in your style sheet which is not the code i provided in my tutorial:
/* Custom CSS Additions ---------------------------------------------------------------------------------------------------- */ .home .featured-content .entry-title h4 { font-size: 1.5rem; text-align: center; }
Please remove the h4
2. Also, nth-of-type(3n+1) doesn't work for 4 columns which is why the 25% width doesn't work.
This works however the code is not needed.
.home-middle .widget:nth-of-type(3n+1), .home-top .widget:nth-of-type(4n+1) { clear: left; }
December 22, 2013 at 12:45 am #807184WardMotionMemberYeah, I was trying that with the h4 as the other wouldn't work. I have changed it out now. My problem is still with the 4 columns not working. It is still dropping the 4th one below the other three. Are you not seeing it that way in your browser? I have tried IE, Firefox and Chrome browsers and all three render the same for me. It looks like it should be there, but it keeps dropping the 4th column below.
Any ideas?
Thanks!
December 22, 2013 at 12:51 am #807194WardMotionMemberHere is how it looks on my end:
December 22, 2013 at 12:52 am #80720Brad DaltonParticipantWorks as the screenshot shows with your style sheet.
Here's your style sheet http://pastebin.com/akSzv0yZ
December 22, 2013 at 1:04 am #807234WardMotionMemberSorry, I'm not following you. Are you saying that my style sheet works fine for your example? I tried posting a picture of what I am seeing above, but it doesn't seem to be working.
Here is another try and posting what I am seeing on my end:
Thanks again for your help with this. I feel like I'm losing my mind, but I just can't seem to get this figured out.
December 22, 2013 at 1:06 am #80724Brad DaltonParticipantI tested this style sheet so i know it works.
Replace the code in your style sheet with this code http://pastebin.com/akSzv0yZ
December 22, 2013 at 1:07 am #80726Genesis DeveloperMemberPlease modify your styls.css file.
.home-middle .widget:nth-of-type(3n+1), .home-top .widget:nth-of-type(3n+1) { clear: left; }
WILL BE
.home-middle .widget:nth-of-type(3n+1) { clear: left; }
December 22, 2013 at 1:14 am #807274WardMotionMemberOk, I just followed what genwrock told me to modify and that worked. I just looked at the style sheet you posted Brad and it looks like you removed that from the style sheet all together. If so, you might want to add that to your tutorial as it definitely worked for me.
Thank you both so much for your help. I can now go to bed knowing that I finally got this issue resolved with your help!
December 22, 2013 at 1:44 am #80732Brad DaltonParticipantI tested the code without it and it works so its not needed.
This code relates to the home middle widgets and not the home top widgets.
.home-middle .widget:nth-of-type(3n+1) { clear: left; }
The screenshot was taken without using that code and proves it works.
Its also not needed for the home middle widgets.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.