-
AuthorPosts
-
February 27, 2015 at 3:45 pm #403457
Hello, I am new to Enfold. I have set up some categories. I want to make the posts in the different categories look different from each other, but I have no idea where to start. I have searched the internet, but can’t find anything. Is there something in the Enfold demo files to get me started? Or is there a tutorial?
For example, when I show the latest post in each category, there is a pale grey bar running across the screen between the header and content, with the word “Blog”. I don’t know why it’s there, how to get rid of it, or how to put something else there.
All help gratefully received.
March 1, 2015 at 8:06 am #404032Hi Geoff!
Thank you for using Enfold.
If you really want to alter the look of a specific category, you have to create a custom template called category-name.php. Refer to this link for more info: http://codex.wordpress.org/Category_Templates#What_Template_File_is_Used.3F
http://premium.wpmudev.org/blog/how-to-create-a-unique-wordpress-category-archive-page/You can also use the Blog Posts element to create a page which shows a specific category. The problem is, when a user clicks on a category link, they will be taken to the default category template (archive.php). So if you want to have full control over the category page, creating a template is the way to go.
Cheers!
IsmaelMarch 2, 2015 at 4:49 am #404262Thanks. I’ve read those two links, I have created category-slug.php files for my categories, and put them in my child theme folder. I’m not sure of the next step. Can I use the Avia Layout Builder to design these templates? Or do I have to learn how to code?
For example, when I go to a post, there are arrows at the left and right which take me to previous/following post. But those arrows are oblivious to category. How do I edit them so they stick to one category? Where are they defined? I have looked at several of the Enfold parent php’s and my hunch is that the arrows are “in” loop-index.php. But I have no idea how to start editing the code.
It would be great if you could get me started.
March 3, 2015 at 7:45 am #404973Hey!
Unfortunately, you can’t use the advance layout builder when designing category pages. Yes, it will require custom coding. Please hire a freelance developer. If you want the avia_post_nav (post navigation) to filter the same category, add this to the functions.php file:
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod'); function avia_post_nav_settings_mod($settings) { $settings['is_fullwidth'] = false; $settings['same_category'] = true; return $settings; }
Cheers!
IsmaelMarch 3, 2015 at 4:26 pm #405217Perfect Ismael – that code is exactly what I wanted! THANKS
-
AuthorPosts
- The topic ‘How to format categories (preferably with ALB)’ is closed to new replies.