• Resolved YogieAnamCara

    (@yogieanamcara)


    Hi,

    I’m using a widget area that has all the “normal site widgets” and they are numbered 1,2,3,4,5,6,7,8,9,10,11

    I’m having pages that should have a single widget replaced here I’m using a custom widget area, which my theme can replace against the standard widget area, unfortunately “Widget Alias” is somehow adding more than just the alias widgets, the widget are numbered: 1,2,2,3,5,6,4,5,6,7,8 which is messing up the layout.

    So I suspect that the way that plugin work is causing the trouble

    Anyone else seeing this?

    Cheers
    Joerg

    https://ww.wp.xz.cn/plugins/widget-alias/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Mickey Kay

    (@mcguive7)

    Hi Joerg,

    Sorry you’re experiencing this issue. I’m not sure I fully understand what you’re describing though – would it be possible to send a link to a screenshot/cast of what you’re experiencing so that I can take a closer look?

    I did notice a deprecated constructor call while I was investigating this though, so thanks for the help on that!

    Happy to take a look once I hear back from you.

    Thread Starter YogieAnamCara

    (@yogieanamcara)

    Hi Mickey,

    to be honest I did not expect such a fast reaction.

    I just disabled the plugin and re-enabled it and started to add widgets again and still it is messing up. I’m adding a “Widget Alias” widget and choose the source widget, but it is not being displayed or has a wrong numbering. Within my theme I can adjust the size of the columns and decide how many widget should be in one row.

    This is the page that is having the “source” or “standard” widgets:
    http://www.meinnovascotia.de/nova-scotia/ (so this is how it should look like)

    This is a different page using now some unique and some “Widget Alias” widgets:
    http://www.meinnovascotia.de/yarmouth-und-acadian-shore-region/

    I’m currently working on the widgets, but basically the faulty page should look like the page with the “standard” widgets, except that the other page should display a different weather widget on the right top.

    Hope you will find out what I mean!?

    Cheers
    Joerg

    Plugin Author Mickey Kay

    (@mcguive7)

    Hi again Joerg,

    To debug this issue, I really need to see a screenshot/cast of you admin widget screen, including the sidebar that is causing problems. Can you provide that by any chance?

    Thread Starter YogieAnamCara

    (@yogieanamcara)

    Well if you are online and you have Skype then I can share and show what I mean!? I will send out a contact request to you…

    Thread Starter YogieAnamCara

    (@yogieanamcara)

    When I place the “Widget Alias” widget and chose an existing widget from the drop down, it get’s highlighted and marked, then the entry disappears, so I have to choose it again from the dropdown. When I place a second one the same procedure happen and to sometimes the previous placed widget entry resets to none. I think each time hitting the save button is doubling the same widget!?

    Plugin Author Mickey Kay

    (@mcguive7)

    So, per our Skype conversation, it looks to me like this issue is arising because of the way that the theme you are using is applying widget-{number} classes to each widget, and then using these classes to apply various widths and layout styles.

    As you mentioned, various widgets are ending up with shared classes applied by your theme. For example, on http://www.meinnovascotia.de/yarmouth-und-acadian-shore-region/, there are two widgets with the class widget-1. This is likely a result of the theme generating the number index based on the index of that specific widget within its own sidebar, instead of the index as it pertains to how many widgets have already been output. However, this can lead to duplicate classes when using Widget Alias. . .

    Say, for example, I have two sidebars. In sidebar 1 I have three widgets, Widgets 1, 2, and 3.

    In sidebar 2 I have one Widget Alias widget that aliases widget 2. In an ideal world, this Widget Alias would output with the class of widget-1, since it is the first widget that will output in sidebar 1. However, because it references Widget 2, which is the 2nd widget in sidebar 1, it seems to end up with a class of widget-2 which causes your intended layout to break since it is not actually the 2nd widget being output.

    If I were to a venture a guess, I would suggest that the theme needs to switch its method of generating these indexes.

    Best of luck!

    Thread Starter YogieAnamCara

    (@yogieanamcara)

    Thanks a lot Mickey!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘widget numbering is messing up’ is closed to new replies.