Genesis eNews Extended
[resolved] Can I have multiple instances of enews extended widget? (2 posts)

  1. amsinclair
    Posted 3 years ago #

    Hi Brandon,

    I want to know if can have 2 different instances of the enews widget on the same page with different styling? I have one in my sidebar but am toying with the idea of adding one after the post also. When I try it, I can't style the second instance separately and I don't want to mess up the main widget in the sidebar.

    Thanks in advance, Allegra


  2. Brandon Kraft
    Happiness Engineer
    Plugin Author

    Posted 3 years ago #

    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: http://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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Genesis eNews Extended
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.