TaniaDow
Forum Replies Created
-
Forum: Plugins
In reply to: [List category posts] Display thumbnail before titleCreate a template as described in the documentation. Then you can rearrange the output as you like.
I wanted the thumbnail, title and excerpt (which I’m using as a description) in divs so I could rearrange them. Then I added the lcp_post and lcp_excerpt to my child theme’s stylesheet to modify their styles without touching the original files.
Here’s part of my template:
foreach ($this->catlist->get_categories_posts() as $single){ //Start a List Item for each post: $lcp_display_output .= "<div>"; //Post Thumbnail $lcp_display_output .= $this->get_thumbnail($single); $lcp_display_output .= "</div>"; //Show the title and link to the post: $lcp_display_output .= $this->get_post_title($single, 'div', 'lcp_post'); /** * Post content - Example of how to use tag and class parameters: * This will produce:<p class="lcp_content">The content</p> */ $lcp_display_output .= $this->get_content($single, 'p', 'lcp_content'); /** * Post content - Example of how to use tag and class parameters: * This will produce:<div class="lcp_excerpt">The content</div> */ $lcp_display_output .= $this->get_excerpt($single, 'div', 'lcp_excerpt'); $lcp_display_output .= "<div class='separator'></div>"; // Get Posts "More" link: $lcp_display_output .= $this->get_posts_morelink($single); } // Close the wrapper I opened at the beginning: $lcp_display_output .= '</div>'; // If there's a "more link", show it: $lcp_display_output .= $this->catlist->get_morelink(); //Pagination $lcp_display_output .= $this->get_pagination(); $this->lcp_output = $lcp_display_output;Hope this helps.
Forum: Fixing WordPress
In reply to: add media query to gallery shortcodeEdit: Just wanted to add that I’ve tried adding the following to my stylesheet:
/* For displaying 3 columns on tablet */ @media only screen and (max-width: 800px) { .gallery-columns-5 .gallery-item { width: 33%; } } /* For displaying single column on mobile */ @media only screen and (max-width: 480px) { .gallery-columns-5 .gallery-item { width: 100%; } } .gallery-columns-5 .gallery-item:nth-child(5n+1) { clear: none; }It had no effect whatsoever.
Forum: Plugins
In reply to: [List category posts] Display as tableDid you manage to create a table head?
Forum: Plugins
In reply to: [List category posts] A couple of styling queriesHow did you resolve it? I’m having a bit of trouble with the styling as well.
Thanks! I look forward to it. Will you be adding fields to the album admin to allow the user to create a title and description?
Although I’m still looking for a solution, I can’t spend any more time on it.
For now, I’m just creating wordpress galleries and displaying them on posts. Then creating a page containing a list of all the posts, complete with thumbnails. Of course, this page has a custom template.
Idea: I’m going to try adding custom fields to foogallery->extensions->albums->class-metaboxes.php. I’ll copy the custom css section. Unfortunately, I’ll have to redo this with every update.
Is there any way to do this without modifying the original file? For instance, can I do this by adding it to my theme’s function.php?