1. Home
  2. Docs
  3. Documentation
  4. Developers
  5. Overwrite Post Layout

Overwrite Post Layout

Note :- Want to overwrite any layout and maintain changes after plugin update?

‘If you want to modify any post layout according to your needs. You want to use new content, custom fields etc in your new layout.

In PRO version , you can overwrite our any post layout in your active theme’s folder.

Steps To Follow (Version below than 8.6)

  1. Know the structure of PRO plugin. You can check all post layout files are in (category-ajax-filter->includes->layouts->post->post-layout*.php)
  2. You just need to copy the specific layout from this folder.
  3. You just need to create new directory in your active theme’s folder.
  4. Directory structure should be as category-ajax-filter => layouts => post =>post-layout*.php
  5. So you just need to paste that layout file in this folder.
  6. After placing the file there, you can modify the file with your own code.
  7. You can overwrite its related CSS file too. Folder Structure : category-ajax-filter => css => post =>post-layout*.css
  8. You can follow the same procedure to overwrite filter layouts. To overwrite filter layouts , Your Theme Folder’s structure should be as : category-ajax-filter => layouts => filter =>post-layout*.php

Steps To Follow (Version above than 8.6)

  1. To overwrite any post layout you just need to copy the ‘Templates’ folder from (plugins/category-ajax-filter-pro/templates) and need to place into your active theme’s folder. Folder Structure should be as {active-theme-folder}/category-ajax-filter/templates.
  2. In the Templates folder, All modules/files are available that are responsible for any of the post layout. So you can easily figure out the file from the file name and modify it according to your needs. So these file changes will not lost after plugin upgrade.
Important:- Please keep in mind , same layout should be selected from CAF control panel to use at frontend.

How can we help?