Viewing 1 replies (of 1 total)
  • Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    Hi Allegra,

    Yes, you can use multiple instances and style them independently.

    When both widgets are on your page, check out the source code. You’ll see this (snipped from your site)

    <div id="enews-ext-7" class="widget enews-widget">
    <div class="widget-wrap"><div class="enews"><h4 class="widgettitle">Updates</h4>snip

    The enews-ext-7 id is unique for each instance and can use that to style the “second” instance. For example,

    #enews-ext-7 #subbutton {
    background: black;
    }

    would change the submit button background for just that instance.

    A quick example of this: https://trash.brandonkraft.net
    With the two instances in the sidebar, I used the #enews-ext-5 id to change the submit button background and the widget title font size, compared to #enews-ext-3 above it, which is pulling from the standard settings.

    Does that get you in the right direction? Have a happy Thanksgiving!

Viewing 1 replies (of 1 total)
  • The topic ‘Can I have multiple instances of enews extended widget?’ is closed to new replies.