-
AuthorPosts
-
July 24, 2019 at 6:51 am #1121397
I am happy with the layout of my blog page. Is there a way to get the category pages to look the same? I’m trying to get the images on the left not everything centred down the middle
Blog:
https://www.wearetrafik.com/wp-content/uploads/2019/07/blog.pngCategory:
https://www.wearetrafik.com/wp-content/uploads/2019/07/catgory.png
Thanks- This topic was modified 5 years, 5 months ago by trafik2018.
July 24, 2019 at 11:38 am #1121477Hey trafik2018,
Please refer to this solution on how to customize the category page:
https://kriesi.at/support/topic/category-archive-page-change-layout-to-show-excerpt/#post-459206Best regards,
VictoriaJuly 25, 2019 at 3:43 am #1121804Thanks Victoria, I have tried adding this to the 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 = ‘single-small’;
return $layout;
}
… but it seems to have no effect.There is however a change when I try: $layout = ‘single-big’; or $layout = ‘blog-grid’;
July 29, 2019 at 7:08 pm #1122859Hi trafik2018,
Is the blog grid working for you?
Best regards,
VictoriaJuly 30, 2019 at 5:22 am #1123044Hi Victoria, yes I can get the blog-grid to work. The only one that doesn’t seem to have any effect at all is single-small. Sod’s law, that’s the one I need.
July 30, 2019 at 6:39 pm #1123225Hi trafik2018,
You can try a different blog style in the theme options > blog layout and maybe the single-small will work for that style.
Best regards,
VictoriaAugust 1, 2019 at 6:04 am #1123751Hello Victoria,
I have tired all of the possible combinations. Nothing works. Here’s my findings:
$layout = ‘single-grid’; gives a grid
$layout = ‘single-big’ gives a large image centred above text
$layout = ‘single-small’; gives a small image centred above text (this seems to be the default)Is there another “$layout” I can try?
I am looking for a category $layout that gives small images left of the text to emulate options > blog layout > Single Author Small Preview (no author picture is displayed…)
If there isn’t a $layout for this, is it possible to manipulate $layout = ‘single-small’ using CSS?
August 3, 2019 at 7:03 pm #1124405Hi trafik2018,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaAugust 6, 2019 at 2:22 am #1124934Hi Victoria
The site is in staging at the moment – I’ve put logins (for flywheel not for wordpress) in the private content below:Thanks
DaveAugust 7, 2019 at 5:57 pm #1125614Hi Dave,
Best regards,
VictoriaAugust 7, 2019 at 10:39 pm #1125733Hi Victoria
Yes, it’s nice and clean, but it’s centred.If you have chosen “grid” layout for your blog page and you use $layout = ‘blog-grid’; for your category pages the two match. The same goes for the “single-big” layout.
I’ve chosen the “Single Author Small Preview” blog option which is left aligned. Is there a way of left aligning the category pages so that they match? I also like the dotted line joining the thumbnails down the left…
Dave
August 7, 2019 at 10:46 pm #1125736Just what I been look for too.
August 10, 2019 at 9:51 pm #1126543Hi,
Sorry for the late reply, I added this function to my child theme functions.php to achieve the small image to the left:add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); function avia_change_category_blog_layout($layout, $context){ if($context == 'archive') $layout = 'single-small'; return $layout; }
The trick is that you need to have the sidebar on the archive pages:
If you don’t want the sidebar, then please try this css in your Enfold Theme Options > General Styling > Quick CSS field/*remove sidebar from single author blog layout*/ #top.archive .container main.av-content-small.units { width: 100%!important; } #top.archive #main .sidebar { display: none !important; } #top.archive .container main.content { border-right-style: none !important; border-right-width: 0px !important; }
Best regards,
MikeAugust 12, 2019 at 4:32 am #1126709Hey Mike – Such a simple thing! I’m kicking myself for not trying that myself.. Thanks for your help.
August 12, 2019 at 7:16 pm #1126921Hi trafik2018,
Glad you got it working for you with Mike’s help! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.