Styling and sorting questions
-
I am trying to create a resource page on my company’s site that lists all pdfs for catalogs, spec sheets, etc. I am using the Astra Pro theme with Elementor. I have created tabs on the page for each category (Catalogs, Spec Sheets, etc) for sorting using attachment categories.
1) When I view the list, the icon is stacked on top of the caption instead of in front of it. I have tried to add display:inline; and float:left; in the style, but it isn’t working. It seems that they are possibly in different cells? How can I place them in the same cell or float them next to each other within the same gallery-item?
This is the code used on the page:
[mla_gallery]post_parent=all
post_mime_type=application/pdf
attachment_category=spec-sheets
columns=4
orderby=name
order=asc
size=icon
mla_caption=”{+title+}”
link=file
display=inline
mla_target=”_blank”[/mla_gallery]
This is the code in the style:
style type=’text/css
#[+selector+] {
margin: auto;
width: 100%;
}
#[+selector+] .gallery-item {
float: [+float+];
margin: [+margin+];
text-align: center;
width: [+itemwidth+];
}#[+selector+] .gallery-icon {
width: 30px;
}
#[+selector+] .gallery-icon img {
width: 20px;
}
#[+selector+] .gallery-caption {
float: left;
margin-left: 0;
vertical-align: top;
}/style
2) How can I sort further, by sub-categories? For example, In my category spec sheets, there will be hundreds of files and I want to organize by types (lamps, downlights, linear fixtures, etc.). Is there another search criteria like the “attachment_category” that can be added so it will only show anything that is both attachment_category=spec-sheets and {other category/tag name}=lamps?
3) Can the caption title also work as a link and not just the icon image? I would like both to be a clickable option.
Thank you for your help!
- The topic ‘Styling and sorting questions’ is closed to new replies.