Override RSBaraka! template positions
Although RSBaraka! offers tremendous flexibility when choosing or modifying existing positions via the Template Positions builder functionality, if you want to custom code your desired position this can be done without having to worry about loosing these changes after you update the template. The following position rows can be overridden:
- top
- after-top
- featured
- breadcrumbs
- before-higher
- higher
- after-higher
- before-content
- after-content
- before-middle
- middle
- after-middle
- before-lower
- lower
- after-lower
- before-bottom
- bottom
- after-bottom
- before-footer
- footer
- after-footer
- copyright
Let's assume for example you want to override the higher template position. Steps you need to take:
- create an empty PHP file named exactly after the position, in our case higher.php
- place the file within RSBaraka! positions folder (\templates\rsbaraka\positions\)
- add your custom PHP code within this particular file
One person found this article helpful.