Skip to main content
Le panier est vide

How to use custom and overrided elements

 

Since version 1.23 of the Falang for Yootheme Pro plugin, you have the ability to create custom elements and override existing content elements.

Create or Override Elements

  • Create custom elements or override existing ones by modifying the JSON files in the appropriate directories (wp-content/plugins/falang-for-yootheme/custom for custom elements).
  • Ensure that your custom elements follow the required structure and specifications.

Example

Here's an example demonstrating how to override the section element:

1.Copy the elements JSON file (section.json) from the directory:

wp-content/plugins/falang-for-yootheme//elements/

2.Paste it into the directory:

wp-content/plugins/falang-for-yootheme/custom/

The original section.json file looks like this:

{
  "name": "section",
  "fields": [
    "image",
    "video",
    "title"
  ]
}

In this example, the ID needs to be added to the translation tab in Falang.

{
  "name": "section",
  "fields": [
    "image",
    "video",
    "title",
    "id"
  ]
}

The result of making these changes can be viewed in the Falang translation tab

Pro