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

Overwrite Post Layout

How to overwrite any post layout in your theme’s folder? How to maintain core changes even after plugin update?

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

Its much useful feature when you want to modify any post layout according to your needs. You can use new content, custom fields etc in your new layout.

Steps To Follow

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

You can download full theme folder here.

NOTE : Please keep in mind , same layout should be selected from CAF control panel to use at frontend.

Was this article helpful to you? Yes No

How can we help?