This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Search Bar in Featured Area

  • Creator
    Topic
  • #3009
    pfhess@jrhess.com
    Participant

    Hi Jason –

    I’d like to hook into the featured area and place a search bar on the right side. Any thoughts on how I could accomplish this? Thanks,

    Patrick

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #3041
    Jason Bobich
    Keymaster

    Hooking into the featured area is tricky because you not only have to hook in there, but you also have to activate the area so the surrounding HTML markup is triggered. This is something unique that you don’t need to do with any of the other action hooks.

    // Hook content
    function my_featured(){
           get_seach_form();
    }
    add_action( 'themeblvd_featured', 'my_featured' );
    
    // Activate featured areas by default
    function my_global_config(){
    	$config['featured']['archive'] = true;
    	$config['featured']['blog'] = true;
    	$config['featured']['grid'] = true;
    	$config['featured']['page'] = true;
    	$config['featured']['single'] = true;
    	return $config;
    }
    add_filter( 'themeblvd_global_config', 'my_global_config' );
Viewing 1 replies (of 1 total)
  • The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.