Registering Additional Customized Widgets

Home Forums Calendar Products Events Calendar PRO Registering Additional Customized Widgets

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13750
    Brad
    Participant

    I followed the “How to completely Customize Widgets (https://theeventscalendar.com/how-to-completely-customize-widgets/). Thanks for putting that together. But now I want another widget and I cannot get it to register.

    I am doing this because I want to have some more control over featuring different event categories and highlighting (read CSS).

    When I have all the files created (functions.php, includes, display). It is now showing up. Is this the line in functions.php that I am having trouble with?

    register_widget( ‘CustomTribeEventsFeatureWidget’,’CustomWidget02′ );

    Thanks.

    #13836
    Rob
    Member

    Hey Brad. Thanks for the note here; not sure how to address this myself, but let me see if our dev Jonah – who wrote that tut – has any suggestions. I’ll get him to chime in directly.

    #13920
    Jonah
    Participant

    Hi Brad, if you want to create another widget you cannot use the same widget class you declared before – you need a new one. So ‘CustomTribeEventsFeatureWidget2′ and then register_widget( ‘CustomTribeEventsFeatureWidget2’,’CustomWidget02’ );

    That should work. Let me know if not.

    #975370
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Registering Additional Customized Widgets’ is closed to new replies.