Black Screen Issue: Please update your theme to ensure WordPress 5.6 compatibility. Dentalia 2.1 and Recycle 2.1 are now available on ThemeForest. 

Okay
  Public Ticket #3007937
Feature Request
Closed

Comments

  • Doug Arnold started the conversation

    Hi, Andrej

    It's fairly impossible to know which @Orion Static Block to move when there's no way to name them; there is no way to identify them individually. Any ideas or thoughts?

    Much thanks,  Doug

  •  530
    OrionThemes replied

    In such cases, I would recommend using the Live editor. So you will see exactly which part you are moving. 

    If you're interested to dive a bit deeper, read on.

    We use Page Builder API to build the forms for custom widgets. The way it works, it picks up the first text field for the description and if it doesn't find it, it just displays the value of the first option. In the case of static block, it will show widget title if there is one. The next field is the post id, as this is how the content is  saved for the form field. 

    9045238796.png

    So the only way I know, to label it clearly, would be to create a separate "admin label" field on top, which wouldn't do anything on the front end, but would serve the purpuse of adding a description in the page edit screen. 

    So it would look like this:

    5709809232.png
    8484081090.png

    To apply this changes, edit the wp-content/recycle-plugin/widgets/so-widgets/orion-static-block-w/orion-static-block-w.php file and add this on the top of form fields declaration:

        'orion_admin_label' => array(
             'type' => 'text',
             'label' => esc_html__('Admin label', 'recycle'),
         ),

    so it looks like this:

    9004000796.png

    Unfortunatly, when you update the recycle plugin, this changes will be lost. (you'll need to modify the file again). 

    Kind regards,

    Andrej