Tagged: archive page, category page
-
AuthorPosts
-
September 2, 2016 at 6:08 am #681120
My blog does not have much content on it, so I had created several dummy posts (some which have full content) and was using the ALB. I had my category pages set up the way I wanted. Categories, Title, Featured Image, Excerpt Date/Comments, Read More.
Then after deciding that it’s more conducive to use the default layout editor for posts and just use ALB for pages, I redid some of my posts using the Default Editor. Now category pages are showing the full content of each post using Default Editor and are showing the excerpts for those posts still using the ALB.
http://thewanderologist.com/category/adventure-files/
Please tell me what settings to change to make the post EXCERPT show on category pages for posts that have been created using the Default Editor, rather than the full content of the post. I’ve scoured all the settings and can’t figure it out.
In the meantime I’ve located one way to manually get around this and have tested it on one of my posts….by placing my except text at the beginning of each post (as a blockquote because I like the way it looks) and then putting using the Read More button after it. And making sure to select “Use ALEditor to build…” in the Blog Layout setting in the Enfold Settings.
The main downside is that this step is easily forgettable and I may not want to always put my excerpt at the beginning of each post. I don’t want to just put Read More after the beginning paragraph of my content because it might not represent the article and entice the reader the way an excerpt would.
Thanks!!
- This topic was modified 8 years, 3 months ago by juliacecere.
September 5, 2016 at 9:37 am #682038Hey!
Try adding this at the very end of your theme / child theme functions.php file:
function change_blog_archive_style() { global $avia_config; if(!is_single()){ $avia_config['blog_content'] = "excerpt_read_more"; } } add_action('get_header', 'change_blog_archive_style');
Cheers!
JosueSeptember 5, 2016 at 6:15 pm #682302Hi there,
So this definitely made the blog/archive pages use the excerpt rather than the content of the post, but it too away the featured images.
So I added this to functions .php
add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
function avia_change_category_blog_layout($layout, $context){
if($context == ‘archive’) $layout = ‘multi-big’;
if($context == ‘tag’) $layout = ‘multi-big’;
return $layout;
}Now the featured images are showing, but they are more justified to the right than the center and they are pretty small, and the author preview pic is showing, which isn’t necessary since I’m the only author.
How do I remove the author pics, and how do I not only center the preview/featured image, but keep the original dimensions of the featured image (not the actual pixel dimensions, but the aspect ratio) and make the featured image on the archive page always match the width of the title/excerpt?
How can we make those show?
Could you adjust that code to make this possible?
Thanks so much!
September 5, 2016 at 7:58 pm #682329ok I just changed “multi” to single and that took the author pic away and also solved the centering issue, but I’d still like to be able to keep the original aspect ratio of the featured image, as it cuts off important parts of my Featured images.
September 8, 2016 at 4:39 am #683462Hi,
Install the following plugin then go to the Settings > Media panel. Adjust the size of the “entry_with_sidebar” and “entry_without_sidebar” thumbnails. Update, save then regenerate the thumbnails. https://wordpress.org/plugins/simple-image-sizes/
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.