Tagged: archive pages, custom archive page
-
AuthorPosts
-
July 18, 2017 at 10:55 am #823190
Hi,
I have been searching for a solution to the following issue:
I want to use a custom Blog page, and have that working without any issue by setting the Page name I want to use in Enfold->Theme Options, and then selecting the “Use Advanced Layout Editor…. ” in the Enfold->Blog Layout. This works great for the default blog archive page, and allows me to customize that page perfectly.
The problem arises when I look at any of the category archive pages, as they do not seem to follow the design and layout of the page specified as the default Blog page.
For example – where the default blog page has a “post element” set to display with excerpts, and the page displaying a sidebar – the category archive pages seem to ignore this entirely, and shows full articles, and no sidebar at all… and to be fair, it looks quite messy, and isn’t at all how we would like the category archives to display. Basically – we want them to be identical to the main archive page, just specifically showing the posts for that category.
Are you able to point me in the right direction as to how this can be achieved?
Thanks in Advance – you guys do awesome work in your support on these forums!
July 18, 2017 at 11:22 am #823200Just as a point to note. I am able to get the category archive page to show now the same as the main archive page by adding the following code to the functions.php file:
add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
function avia_change_category_blog_layout($layout, $context){
if($context == ‘archive’) $layout = ‘blog-grid’;
return $layout;
}However – there are additional items on the main archive page, like product slider etc., which do not show on the category archive page in the same way that they do on the main archive pages.
I realize I may be going about this in entirely the wrong way – but how can I have custom archive pages, that also have additional elements on them, such as product sliders etc.?
July 18, 2017 at 11:30 am #823202Sorry for the multiple postings – I suppose I should have waiting a bit and just written a single note.
I found this post:
Am I correct in understanding from this, that I must modify the archive.php file in order to accomplish this?
My goal is to have both the main archive, and category archives displaying additional elements such as a Product Slider, etc. on the page, for example at the bottom after XX number of posts (as you can see in the main archive page of the site as it currently is displayed – taglevel.com/blog).
July 20, 2017 at 4:24 am #824330Hi,
Thank you for using Enfold.
Yes, you have to modify the archive.php and the tag.php template files or do a 301 redirect.
// https://kriesi.at/support/topic/advanced-layout-editor-in-categories/#post-813698
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.