To answer your question faster, you can search our knowledgebase articles before submitting a ticket.
Knowledgebase

Developers -- How to create new layouts for WPL widgets?

Posted by Howard R. on 17 September 2017 08:20 AM

To create a new layout for WPL widgets, copy and paste one of the existing layouts and rename it a custom name. For example: if you want to create a new layout for the Carousel widget, create a new file in this path: /wp-content/plugins/real-estate-listing-realtyna-wpl-pro/widgets/carousel/tmpl/custom_my_layout.php

Then in the Carousel widget options you can select the new layout:

Then you can open this layout and apply your changes. You can also override this layout in your theme.

Note: Always select a custom name for your added layouts. If you name your layout to a general name like gallery.php it will be overriden in future if we add a new layout with same name to WPL core.

Note: Don't do this method when you're using WPL Basic because your custom file will remove in next update of WPL basic. You shouldn't put any custom file inside of a WordPress plugin generally because of update scenario of WordPress.


Comments (0)