• Resolved gonzalesc

    (@gonzalesc)


    Hi
    I’m developing a custom widget and I need my widget allow add other widgets inside.

    Do you have some example of this? I see when add the section widget, it put a row with 2 columns inside.

    Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • You might want to expand on your question so we can understand where your headed. It sounds like you want to add your new widget to the same section that another widget is located. Multiple widgets in the same section or column is already possible. ( If that’s what your asking)

    Thread Starter gonzalesc

    (@gonzalesc)

    Yes I in Google find threads where it says “yes is posible” but I need some code or some hook or a example to can proceed.

    I have a widget with conditions, for example: if user is login show the widgets inside. But if user is not login, then doesnt show the widgets inside.

    I talked about section widget as example, due this has the functionality I need implement in my custom widget.

    Regards

    So, If a user is logged in, the widgets show on the page but if they are not logged in, the widgets do not show. It’s like passwording a page but you want to show the same page to logged in users and non-logged in users, but the content will change based on their logged status?
    As I mentioned, you can restrict a page to logged in users but I have not seen how to do this for specific areas/widgets on a page. One alternative might be to create 2 identical pages except add the logged in content to the second page. When someone logs in, send them to the complete page as oppose to the default restricted content page.

    • This reply was modified 6 years, 3 months ago by LesTexas60.
    Thread Starter gonzalesc

    (@gonzalesc)

    Hi.
    Im a developing a custom widget, from code PHP. And need my widget allows embed other widgets:

    For example:

    View post on imgur.com

    This example: The imagen will be show if the user is login.

    My question is a nivel code. There some tutorial?
    Regards

    Thread Starter gonzalesc

    (@gonzalesc)

    I think I asked a difficult question.

    In Gutenberg and in Visual Composer I have been able to do it, but I can not find documentation for Elementor.

    Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Inner Columns in a custom widget’ is closed to new replies.