Community Forums › Forums › Archived Forums › General Discussion › Why there are only two listings on the first row?
- This topic has 3 replies, 3 voices, and was last updated 6 years, 6 months ago by victor1972.
-
AuthorPosts
-
October 9, 2017 at 1:10 am #212302victor1972Participant
Hi,
I used Kickstart child theme to build a Real estate site. I have transfer the file archive-listing.php of Agentpress child theme to Kickstart theme folder.Everything is fine except, the search result display ONLY two listings at the first row.
I want the first row display three listing like other row
DemoHere is the CSS code of Archive page:
/*Custom styles For Archive Listing*/ .author-box::before, .clearfix::before, .entry::before, .entry-content::before, .footer-widgets::before, .nav-primary::before, .nav-secondary::before, .pagination::before, .site-container::before, .site-footer::before, .site-header::before, .site-inner::before, .wrap::before { content: " "; display: table; } .author-box::after, .clearfix::after, .entry::after, .entry-content::after, .footer-widgets::after, .nav-primary::after, .nav-secondary::after, .pagination::after, .site-container::after, .site-footer::after, .site-header::after, .site-inner::after, .wrap::after { clear: both; content: " "; display: table; } .archive .content .listing-custom:nth-of-type(3n+1), .full-width .featured-listings .listing-custom:nth-of-type(3n+1), .full-width .featuredpage:nth-of-type(4n+1), .full-width .featuredpost .entry:nth-of-type(3n+1) { clear: both; margin-left: 0; } .archive .content .listing-custom, .full-width .featured-listings .listing-custom, .full-width .featuredpage, .full-width .featuredpost .entry { background-color: #fff; color: #1a212b; float: left; margin: 0 0 1.5% 1.5%; overflow: hidden; padding: 0 0 40px; position: relative; text-align: center; width: 32.3333%; } .listing-custom a.more-link { color: #d23836; } @media only screen and (max-width: 768px) { .archive .content .listing-custom, .full-width .featured-listings .listing-custom, .full-width .featuredpage, .full-width .featuredpost .entry { width: 48.3333% !important; } .archive .content .listing-custom:nth-of-type(2n+1), .full-width .featured-listings .listing-custom:nth-of-type(2n+1), .full-width .featuredpage:nth-of-type(4n+1), .full-width .featuredpost .entry:nth-of-type(2n+1) { clear: both !important; margin-left: 0 !important; } .archive .content .listing-custom:nth-of-type(3n+1), .full-width .featured-listings .listing-custom:nth-of-type(3n+1), .full-width .featuredpage:nth-of-type(4n+1), .full-width .featuredpost .entry:nth-of-type(3n+1) { clear: none !important; margin-left: 1.5% !important; } }
October 9, 2017 at 6:24 am #212308gabrielajavorskiMemberNão sei, mas você pode ter mais informações aqui na frente, veja: http://www.lilycollinsbrasil.com.br/green-coffee-turbo-suplemento/
October 9, 2017 at 7:24 am #212311Victor FontModeratorCan't tell a whole lot from the front end. This may require looking at how the loop is constructed. What I can see from the front end is that the first post on the first row is missing the class giatien-duoi-500-trieu. It also has a left margin of 1.5% that is pushing it to the right. It doesn't align with the posts below it.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?October 9, 2017 at 7:32 am #212313victor1972Participantthe archive-listing.php is copy exactly from Agentpress child theme.
All the css codes are same but the child theme Studio Pro working well, please see here
Not sure what is the problem, my coder from India unable to fix it too. 🙁
Please help!
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.