Dear Customers! We're out of the office from the 6th of October to the 11th of October. We sincerely apologize for the inconvenience. For WordPress 5.5.* related issues, please visit this article

Okay
  Public Ticket #1589308
Search result site in same style as category site
Closed

Comments

  • VSG_DE started the conversation

    Hello Support,

    when I do a search within Engage the results are shown as followed:

    https://www.videospielgeschichten.de//?s=Atari

    The style is classic BUT the images are getting cropped.

    How is it possible to display the search results in the same blog style as category pages? In my case that is "Left Image":

    https://www.videospielgeschichten.de/category/konsolen/

    Kind regards

    Andre

  •  255
    Joanna replied

    Hi VSG_DE,

    Ah! Looks like it's going to the default 'classic' post style as it is being told to.

    In engage/search.php

    under line 19 where it says:

    $blog_style = 'classic';
    

    Add this code snippet in:

    if( engage_option('blog_style') && engage_option('blog_style') != 'classic' ) {
        $blog_style = engage_option('blog_style');
    }

    Then save, upload and replace to the same directory via ftp/hosting control panel and that should now display the blog style selected from the Theme Options


    Kind regards,
    Joanna
    Veented Support

    Find a helpful article for your theme here: https://veented.ticksy.com/articles/#article-categories

    Check out our latest article: How to Improve Page Loading Times

    Don't forget to hit the like button below if you are happy with your support answer :)

  • VSG_DE replied

    Hi Joanna,

    it's works perfect! Thanks a lot!!

    Unfortunately the page has no title at all. How can I add a title to the search page?

    Please see: https://www.videospielgeschichten.de//?s=Atari

    Andre

  •  255
    Joanna replied

    Hi VSG_DE,

    I'm not sure 100% the best way to approach this one, as the search page itself isn't editable like a standard page (as you can't create it in the WordPress editor as it is a theme file).

    I'll message the developer to see if we can get a page title or something like breadcrumbs added into the search.php file, that you can enable/disable via the Theme Options.

    Otherwise, what you can do for now is hardcode the page title into the search.php and play around with that for a bit.


    Kind regards,
    Joanna
    Veented Support

    Find a helpful article for your theme here: https://veented.ticksy.com/articles/#article-categories

    Check out our latest article: How to Improve Page Loading Times

    Don't forget to hit the like button below if you are happy with your support answer :)

  • VSG_DE replied

    Thanks Joanna. It would be valueable to have a real title for the search page. If someone don't want to use breadcrumps (like me) the title is just empty and that looks VERY ugly in in very beautiful theme.

    The title should be like this:

    [amount] SEARCH RESULTS FOR [search string]

    For the meantime: on which position should i hardcode the title? Above "get_header();"?

  •  255
    Joanna replied

    Hi VSG_DE,

    I would try something like this to remove the title area:

    In the header.php at the bottom where it says:

    if ( engage_option( 'header_title' ) != 0 && get_post_meta( engage_get_id(), "custom_pagetitle", TRUE ) != 'disable' || !class_exists( 'Engage_Core' ) || engage_option( 'header_title' ) == null ) {        
            get_template_part( 'page-title' );
        }
        do_action( 'engage_after_page_title_area' );
    

    I would change it to: if it is not the search page, then do the title stuff:

    if (! is_search() ) {
         
            if ( engage_option( 'header_title' ) != 0 && get_post_meta( engage_get_id(), "custom_pagetitle", TRUE ) != 'disable' || !class_exists( 'Engage_Core' ) || engage_option( 'header_title' ) == null ) {        
                get_template_part( 'page-title' );
            }
            do_action( 'engage_after_page_title_area' );
        }

    as a quick edit.

    Or you can change it do if it is_search do add the [amount] SEARCH RESULTS FOR [search string], if that makes any sense at all.


    Kind regards,
    Joanna
    Veented Support

    Find a helpful article for your theme here: https://veented.ticksy.com/articles/#article-categories

    Check out our latest article: How to Improve Page Loading Times

    Don't forget to hit the like button below if you are happy with your support answer :)

  • VSG_DE replied

    Thanks a lot Joanna. I tried this but the code update breaks the layout of the search site.

    Whatever I try, I cannot put my output in the title box of the search page.

    This is a bit important for me.

    Any other ideas?

  •  255
    Joanna replied

    Hi VSG_DE,

    What do you mean it breaks the layout of the search site? Can you add a screenshot?

    The code I gave you definitely works and shouldn't affect the layout at all. It only removes the title area from the page and doesn't touch any styling or layout code.

    I have added the feature request for the developer to have a look at adding the [amount] SEARCH RESULTS FOR [search string] into the title area


    Kind regards,
    Joanna
    Veented Support

    Find a helpful article for your theme here: https://veented.ticksy.com/articles/#article-categories

    Check out our latest article: How to Improve Page Loading Times

    Don't forget to hit the like button below if you are happy with your support answer :)

  • VSG_DE replied

    Hi Joanna,

    sorry for my confusion. Your code basically works BUT the the search result list is pushed to the top and the first search row is only shown half (the image is only "half" too). This is what i mean mit "broken". I can add screenshots this afternoon...

  •  255
    Joanna replied

    Hi VSG_DE,

    Ok, yes please add screenshot and I'll see what's going on. Sounds like it could be getting pushed up under the menu? If so I can give you a small CSS fix for that


    Kind regards,
    Joanna
    Veented Support

    Find a helpful article for your theme here: https://veented.ticksy.com/articles/#article-categories

    Check out our latest article: How to Improve Page Loading Times

    Don't forget to hit the like button below if you are happy with your support answer :)

  • VSG_DE replied

    I think you're right with the menu Joanna.

    Please see the screenshots attached.

  •  255
    Joanna replied

    Hi VSG_DE,

    Ok, try this CSS:

    .search.search-results .main-row {
        margin-top:150px;}
    

    You can change the margin to what suits you best


    Kind regards,
    Joanna
    Veented Support

    Find a helpful article for your theme here: https://veented.ticksy.com/articles/#article-categories

    Check out our latest article: How to Improve Page Loading Times

    Don't forget to hit the like button below if you are happy with your support answer :)

  • VSG_DE replied

    Thanks Joanna, it works!

    But this remains the right solution... ;)

    I have added the feature request for the developer to have a look at adding the [amount] SEARCH RESULTS FOR [search string] into the title area
    
  •  255
    Joanna replied

    Hi VSG_DE,

    Great!


    Kind regards,
    Joanna
    Veented Support

    Find a helpful article for your theme here: https://veented.ticksy.com/articles/#article-categories

    Check out our latest article: How to Improve Page Loading Times

    Don't forget to hit the like button below if you are happy with your support answer :)

  •  361
    Filip replied

    Hi there!

    The new update brings that feature!

    https://d.pr/i/1erLCQ

    Kind Regards,
    Veented Team

  •  361
    Filip replied

    Hi there!

    Thanks for reporting those!

    Two new switches are now available under Theme Options / Archives to disable the Page Title section on those two particular type of pages individually:

    https://d.pr/i/ieBK5G

    Kind Regards,
    Veented Team