-
AuthorPosts
-
March 10, 2016 at 2:07 pm #596286
Hi, ref web page link please. Upon selecting any of the subcategory links on the RHS the the grid layout disappears and a page listing with full article content replaces it. This is an issue, I need the grid layout to be retained across all listings pages.
Now I managed to fix this behaviour by changing the blog to NOT using the custom layout editor and to use the default grid listing. However I then lost the ability to provide a custom page title and also to filter out one of the blog categories (recruitment). So I changed back to the custom layout editor.
How can I keep the title, filter out the recruitment subcategory and keep the grid listing across ALL available subcategories?
Cheers!
March 10, 2016 at 8:50 pm #596553Ok so I added the code mods to my child theme functions.php mod and all is good with the grid now displayed across all subcategories. :)
However I’d like to carry the main title from the blog page across to all. What php file do I need to edit for this? archive.php?
Cheers.
March 10, 2016 at 9:13 pm #596563Hey!
can u please post for us the code you have used, so we can give it a look?
Also by Main Title, which one do you refer at?Regards,
BasilisMarch 11, 2016 at 7:57 am #596738Hi there, well the code isn’t relative anymore as the grid layout is now consistently carried across so issues there solved but here goes:
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;
}What I want is to be able to incorporate the MAIN TITLE – ‘The Blog’ – from the URL provided within this post (it’s the only large title and you can’t miss it!) within ALL result listings output. Once drilling down deeper than the initial blog page the title disappears. Even better would be to display dynamically the title of the subcategory one currently now views!!!
Mod archive.php? Help please :)
- This reply was modified 8 years, 8 months ago by fusion01.
March 11, 2016 at 8:27 am #596754OK I’ve managed to output the subcategory title by modding the ‘archive.php’ file – I’m just trying to figure out how to assign a style. This falls outside of Enfold so the thread can be closed, thanks.
March 16, 2016 at 12:08 am #598717Hey!
alright! Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Regards,
Andy -
AuthorPosts
- The topic ‘Grid layout is not retained upon selecting a blog subcategory’ is closed to new replies.