Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1306917

    Hi,
    I used the ALB for a customized blog page for a client of mine. Basically it has 2 columns and a sidebar.
    The blog has a number of categories which are listed in the sidebar menu. When I click on a category then the relevant blog posts are displayed but the preset theme layout is not optimum: the posts are displayed in 3 columns and the images are cropped. Is there any way of targeting the template so that the category pages only have 2 columns? I´ll give you links to the relevant pages down below.
    You may want to know that have tried different settings and combinations within the Enfold theme options (for the blog page and for the blog layout) but nothing affects the category pages. Maybe his has to do with the fact that the categories do not seem to be sub-pages of the blog (I´m guessing because the blog page is customized).
    Thanks for your help & best regards,
    Sara

    #1307540

    Hey sarawh,
    Sorry for the late reply and thank you for your patience, to change the archive pages to two columns please try going to \wp-content\themes\enfold\archive.php on line 59 look for 'columns' => 3; and change to 2
    2021-06-26_003.jpg
    You can copy the modified file to your child theme if you wish.

    Best regards,
    Mike

    #1310092

    Hi Mike,
    Sorry for taking such an age to get back to you on this. Your solution worked just fine, many thanks!
    I have one more question: the image size on the archive pages differs from the image size on the blog page. I can see that this is due to the images being assigned different classes. The ones on the blog page have the classes .attachment-magazine .size-magazine and on the archive pages they have .attachment-portfolio .size-portfolio. I´d like the images on the archive pages to display in the magazine size. Can I change that somewhere too?

    Thanks & best regards,
    Sara

    #1310490

    Hi,
    Thank you for your patience and the links to your site, the portfolio size images on the archive pages is set by line 190 in the enfold/functions.php file
    2021-07-17_001.jpg
    I didn’t find an easy way to adjust the image size on the archive page so I would recommend changing the portfolio size from array('width'=>495, 'height'=>400 ); to mmatch the magazine size array('width'=>710, 'height'=>375 ); and then you will need to regenerate your thumbnails and then check.
    This would also change any other use of the portfolio thumbnails on your site, but it doesn’t look like this would be an issue for you.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.