Can there be more than one version of the list-widget.php template?

Home Forums Welcome! Pre-Sales Questions Can there be more than one version of the list-widget.php template?

  • This topic has 0 replies, 2 voices, and was last updated 8 years ago by simpletheory.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1493768
    simpletheory
    Participant

    I have created a custom list-widget template that is currently in my child theme. I’m looking to display upcoming events in a couple of locations on my website. The contents are similar between the two versions, but the html structure and styling is different. There might be an obvious solution but I have tried searching but haven’t seen anyone post about this. Thanks.

    #1494925
    Cliff
    Member

    Hi. If I’m understanding your needs fully, you might want to have your template override file as a sort of “gateway”, figuring out the logic for which widget is rendering or whatever other context needs to be detected, and then loading one of 3 other (totally custom) drop-in files by using include_once(), for example.

    If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.

    Please let me know how things go for you.

    #1514986
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Can there be more than one version of the list-widget.php template?’ is closed to new replies.