StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 03-02-2012, 06:58 PM
GaryJ's Avatar
GaryJ GaryJ is offline
Community Leader
 
Join Date: Jun 2010
Location: Basingstoke, UK
Posts: 2,855
Default

If you don't want to use h4 for widget titles, then feel free to amend the before_title and after_title keys in the array in the genesis_register_sidebar_defaults filter.

PHP Code:
add_filter'genesis_register_sidebar_defaults''child_register_sidebar_defaults' );
/**
 * Amend widget title defaults to use div instead of h4 tags.
 * 
 * @author Gary Jones
 * @link   http://www.studiopress.com/support/showthread.php?t=94086
 *
 * @param array $defaults Sidebar registration defaults.
 * 
 * @return array Amended defaults.
 */
function child_register_sidebar_defaults( array $defaults ) {
    
$defaults['before_title'] = '<div class="widgettitle">';
    
$defaults['after_title']  = '</div>';
    return 
$defaults;

Equally, when registering your own sidebar, you can set unique tags:
PHP Code:
genesis_register_sidebar(
    array(
        
'id'            => 'home-banner'
        
'name'          => 'Home Banner',
        
'description'   => 'This is the banner area above the grid on the home page.',
        
'before_title'  => '<h2 class="not-a-consistent-widget-title">',
        
'after_title'   => "</h2>\n",
    )
); 
__________________
@garyj | About | Smidge and Smudge | Genesis Changelog
I am a volunteer on these forums. I do not work for StudioPress and do not get paid to answer threads.
If you feel I've helped you, please help me and Like me on FB and / or leave a comment like so many others have.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What happens when I install a non-genesis theme along with the Genesis framework? Scott Sutherland General Discussion 8 01-04-2012 03:31 PM


All times are GMT -5. The time now is 05:38 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.