add a counter to your loop or use a conditional statement with $wp_query->current_post
, just before the ‘endwhile’, and add the div when the counter/post number reaches a certain value. please paste the full code of your template into a http://pastebin.com/ and post the link to it here, if you need more details.
Related Posts:
- What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?
- Set line spacing
- Vertically align text within a div
- create a white rgba / CSS3
- Using CSS for a fade-in effect on page load
- Transition of background-color
- In CSS what is the difference between “.” and “#” when declaring a set of styles? [duplicate]
- css: how to center box div element directly in center?
- How to fix a footer overlapping content?
- What is element.style and why is it overriding my css settings?
- What’s the HTML to have a horizontal space between two objects?
- HTML/CSS float: left; is not working properly
- How to get current screen width in CSS?
- CSS Div width percentage and padding without breaking layout
- CSS div width not working
- Positioning background image, adding padding
- CSS background-image – What is the correct usage?
- Set bootstrap modal body height by percentage
- Click through div to underlying elements
- Responsive iframe with max width and height
- How can I fill a div with an image while keeping it proportional?
- Inner glow effect of button
- Hexagon shape with CSS3
- CSS selector for first element with class
- Remove top admin bar
- How make theme css be first and not plugin css
- One WordPress and database but multiple subdomains
- How can I remove css from a child theme?
- Can “ and “ tags be used in the HTML editor?
- Change color of audio player depending on user role
- CSS style button For WP Login Function in page template
- WordPress CSS doesn’t update
- How to apply wordpress css styles to a jQueryUi dialog?
- Auto LTR-RTL Text Direction in wordpress post!
- Is there any size difference between single quote ‘ ‘ and double quote ” ” in CSS
- create bootstrap columns inside editor group block
- Website scroll not working on SAFARI
- Old Site displays on Mobile View, not New Site
- WordPress problematic caching
- why this media query is not working / not loading when I put it in child theme?
- Rendering css to screen and debug problem
- No responsive design is displayed
- WordPress custom styles in menu page
- Child theme CSS not applying to element
- Unable to align my sidebar to the contents section instead of comments
- Make CSS Changes To Only Affect Mobile Browser [closed]
- Disable File Editing function
- User gets access denied to css files and js files even though user is logged in [closed]
- Can’t call custom css in style.php
- Using post_class to style posts indivdually
- Getting values from options page to css
- Conditionally enqueue a stylesheet based off of a javascript click event
- WordPress 6 – inline container styles breaking my site
- How to make a difference between the portfolio list, and a portfolio item?
- What is the best method to have Dynamic CSS?
- Load custom CSS before admin CSS
- how to stop the shaking effect on my homepage [closed]
- List item images perfect on Chrome/Edge, css fudged on FF/IE [closed]
- Cannot change hover color for links [closed]
- How do I get access to the CSS Editor
- prevent HTML output if custom field is empty [closed]
- Style product detail page with custom CSS in woocommerce
- Using variable to display a page with a different stylesheet
- How can I style an IFRAME element that has a constantly changing class name? [closed]
- Twenty Twelve Calender Widget post titles creating disturbance
- why does this text overlaps in the sidebar?
- Combine CSS Files without plugin
- My site on mobile version is not giving responsive view
- JS button animation for ajax the WordPress style
- check the first login for specific roles
- Trying to make an image a circle in Gutenberg
- How to style a list item when the radio input button within that li is :checked
- How to properly hide the div of an inline collapsible button?
- How to remove padding from left&right side
- How can we create our own formatting style?
- links format change “on clic”
- Web Developer Console: “Slow network is detected.” with fonts
- Problem alignment issue with echo knowledge base
- Complex List Field – Gravity Forms
- Hide Login Page Labels
- The placeholder text doesnt disappear
- Theme stylesheet not called properly on cloned website
- Content alignment in Twenty Fourteen Theme
- Display different css or Information based on previous page
- Extending site width according to the image size
- a slider menu is compromised in space
- How would I use a media query to make my entire theme responsive or fluid? [closed]
- Clear white line off page [closed]
- Strange symbols on page [closed]
- Menu is not styled properly and footer as well [closed]
- Footer in middle of page in different browers [closed]
- Put CSS on TOP, how?
- I am trying to apply these CSS rules to x3 Post-ID’s but I can’t get it to work – any idea how I can?
- In which file can I find the custom CSS code I entered?
- Some times CSS not Applying
- CSS does not take effects and it doesn’t show in inspect [closed]
- How do I add JS and CSS to WP (Flatsome)
- Remove / Disable default custom.css?ver=1.0.0
- Website is not showing updated CSS
- How to hide button with CSS class?