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 results page not showing title in featured area

  • Creator
    Topic
  • #19921
    newbie2004
    Participant

    hi jason,

    can you tell me, how i can add h1 .entry-title headline for search results page?

    br,

    newbei2004

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #19922
    newbie2004
    Participant

    or completely set to “display: none”.
    my page show a blank featured area with a height of around 20 px without head- or tagline.

    #19933
    Jason Bobich
    Keymaster

    Hi,

    Checkout your actions map here:

    http://dev.themeblvd.com/tutorial/primary-framework-action-hooks/

    … I would just hook to themeblvd_content_top, and then use is_search within your function to make sure you’re outputting to the search results page only.

    #19948
    newbie2004
    Participant

    hi jason,

    i’m irritated. i my mind it deals wit “featured” contaimer …

    if you can have a quick look on it: http://bit.ly/1tB2rWi

    thanks & br,

    newbie2004

    #19957
    Jason Bobich
    Keymaster

    Aw, okay, so you’ve turned on titles for archive pages from your Theme Options page, but nothing shows. I didn’t realize this is what you meant. Add this to your child theme’s functions.php

    /** 
     * Display title on search result pages
     */
    function swagger_featured_search() {
    	if ( is_search() ) {
    		?>
    		<div class="element element-headline featured-entry-title">
    			<h1 class="entry-title"><?php themeblvd_archive_title(); ?></h1>
    		</div><!-- .element (end) -->
    		<?php
    	}
    }
    add_action('themeblvd_featured', 'swagger_featured_search');
    #20002
    newbie2004
    Participant

    hi jason,

    so can you tell me, how to do this for error 404 page as well?

    br,

    newbie2004

    #20004
    Jason Bobich
    Keymaster

    Unfortunately this would be a more complicated customization you’d need to make because the theme is not setup to display the 404 title in the featured area.

    See this article: http://dev.themeblvd.com/tutorial/hooking-to-the-featured-area/

    … In the section of the article called “A more specific example”, you’d be doing essentially that, except you’d use is_404(), instead of is_page(123).

    Then, you’d need to remove the title from the lower portion of the content. You’d do that by copying content-404.php to your child theme, and deleting the title from there.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.