Support » Plugin: Widget Shortcode » Avoid duplicate element ID?

  • I have put a widget at the top of my frontpage with this plugin, but it generates a widget with the same element ID as the one it is a copy of, which is shown elsewhere on the homepage, at the same time.
    Now two elements have the same ID, I think that is very bad CSS behavior. Can i use a tag in the short code for generating custom ID?

Viewing 1 replies (of 1 total)
  • Plugin Author shazdeh

    (@shazdeh)

    You can use the container_id parameter to change the id attribute, eg:

    
    [widget id="text-1" container_id="my-custom-widget"]
    
Viewing 1 replies (of 1 total)
  • The topic ‘Avoid duplicate element ID?’ is closed to new replies.