• Forum
  • FAQ
  • Docs
Notice: In order to post a support question you have to have an account and be logged in.
Register  or  Login
  1. Hi there,

    I noticed that the page title of the search page is turned around compared to the other pages, example:

    Correct, "About us | Welcome Inn":
    http://themefuse.com/demo/wp/welcomeinn/about-us/
    Wrong, "Welcome Inn | Search Results for 'TEST'":
    http://themefuse.com/demo/wp/welcomeinn/?s=TEST

    How can this be fixed?

    Regards,
    happysmile :)

    happysmile
    1 year ago
  2. Hi,
    in search.php file find this code:

    <div class="news-meta"><a href="<?php the_permalink() ?>" class="link-more alignleft">Find out more</a> 
    					<?php if(get_post_meta($post->ID, PREFIX . "_post_single_comments", true) != 'true') { ?>
    					<a href="<?php comments_link(); ?>"><?php comments_number('0 comments', '1 comment', '% comments') ?> </a> </div>
    					<?php } ?>
                  	</div>
    

    and replace with:
    <div class="news-meta"><a href="<?php the_permalink() ?>" class="link-more alignleft">Find out more</a> 
    					<?php if(get_post_meta($post->ID, PREFIX . "_post_single_comments", true) != 'true') { ?>
    					<a href="<?php comments_link(); ?>"><?php comments_number('0 comments', '1 comment', '% comments') ?> </a>
    					<?php } ?>
                  	</div></div>
    

    Cheers,
    Max.

    Max
    1 year ago
  3. I see, that's a small bug isn't it? Because the div element doesn't get closed in certain cases...

    Anyway, I changed it as you've suggested but it didn't fix the issue: The website title of the search result page is still turned around. Example in my first post.

    happysmile
    1 year ago
  4. Sorry, I thought that the problem is in layout. What about the title, this is not a bug at all, this is how we set up this to appear. You can change this from core.php file (library\tfuse_framework\functions). This is the code:

    	if ( is_search() )   { $title = $theme_name.' | '.__('Search Results for ', 'tfuse').sprintf(__('\'%s\''), get_search_query(false)); }
    

    replace it with:
    	if ( is_search() )   { $title = __('Search Results for ', 'tfuse').sprintf(__('\'%s\''), get_search_query(false).' | '.$theme_name); }
    

    Max
    1 year ago
  5. Well the previous fix you've posted is indeed a small bug, as the div doesn't get properly closed when the php condition is true.

    So you've designed this behavior of the search title on purpose?
    In my opinion it would make more sense if it's displayed as on every other page...
    But if you want it like this I'll just keep it because I don't want to mess with the "internal" functions -> keeping the Child Theme approach alive!

    Anyway, thanks for posting a way to change the behavior.

    happysmile
    1 year ago
  6. Well the previous fix you've posted is indeed a small bug, as the div doesn't get properly closed when the php condition is true.

    Yes, this is a small bug.

    So you've designed this behavior of the search title on purpose?

    There isn't a specific purpose for this. We just added it in this format for some pages that don't have specific SEO settings.

    Max
    1 year ago

Add Reply

You must log in to post.

 

Add a new topic!

Chances are your issue is already answered, but if it’s not, you can always create a new topic.

Add new topic

Search forums

Searching for something specific? Type something and press Enter to search.