How to create a theme-friendly widget in wordpress? -
its first time tried write plugin wordpress knowledge limited.
as far know, there such loose rule in wordpress' theme creation whenever create themes, need widget friendly. far understood it, you're theme must support widgets, theme allows widgets dragged-and-dropped somewhere.
unfortunately, not themes follow said rule theme's sidebar uses <div>'s while use more standard <ul>'s.
so, question other way around. want know if there hook of sort allows me find out sidebar's layout. , after finding out, how display widget follow layout?
really best thing follow conventions and, important of all, not incorporate custom, inline styles clash selected theme.
if you're making list of items using ul or ol appropriate. wrapping whole thing in div , giving either unique id or allowing user select id helpful.
any information find out using hooks rather limited since style information exclusively contained within css files. should instead write widget generic enough , without inline styles fits reasonably seamlessly within theme.
Comments
Post a Comment