Code for image columns in Custom Content Shortcode
-
I tried some code I found in the forum here for Custom Content Shortcode, but my images are not showing up in columns; tjey are still in one column. I don’t understand why?
Here’s my code
‘<div class=”column-container” style=”margin-top:-50px”><h1>Displaying All Products By Title</h1>
[loop type=product orderby=title]
<div class=”each-column”>
[field title]
[field thumbnail-link ]
[field image-caption]
</div>[/loop]
</div>’My child theme style.css file has the following code:
‘.column-container:after {
content: “”;
clear:both;
display: block;
position: absolute;
margin: 0
padding: 0
top: 200px;
}
.each-column {
float: left;
width: 33%;
height: 240px;
}
‘
- The topic ‘Code for image columns in Custom Content Shortcode’ is closed to new replies.