Get attribute name
-
I have created a custom sidebar and in the structure I want the title of the widget to appear;
register_sidebar(array( 'name' => __('Sidebar', 'html5blank'), 'description' => __('Main Sidebar', 'html5blank'), 'id' => 'sidebar', 'before_widget' => '<div id="%1$s" class="widget %2$s '. $term->name .'">', 'after_widget' => '</div>', 'before_title' => '<div class="widget__title"><h3>', 'after_title' => '</h3> <div class="title_arrow"><img src="'. get_stylesheet_directory_uri() .'/images/arrow.svg" alt="Filter Category" /></div></div>' ));
As you can see in ‘before_widget’ it says $term->name, I know this isn’t right but I’ve tried others but no success.
Can anyone help, please?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get attribute name’ is closed to new replies.