Diff Widget Containers With/Without Title, For Use In register_sidebar()
-
I want to output a different widget container for each widget based on if it has a title or not.
So something like:
<?php if (check if widget title is present) { register_sidebar(args..) // container for widgets with title } else { register_sidebar(args..) // container for widgets without title } ?>Is this how I would go about doing it in functions.php? Thank you very much in advance =o)
The topic ‘Diff Widget Containers With/Without Title, For Use In register_sidebar()’ is closed to new replies.