Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #413530

    Hello Enfold,
    I was wondering how I can change the search results page, some of the text isn’t translated to my language (dutch) and I would like another sidebar.

    I saw the .php file but I can’t change these things there, can I?

    thanks!

    #413959

    Hi WolfvanHaeren!

    You can find that text on line 24 in the search.php file.

    echo "<p>".__('If you are not happy with the results below please do another search','avia_framework')."</p>";
    

    You could try re-scanning the theme texts with this plugin, https://wordpress.org/plugins/codestyling-localization/.

    When you say “would like another sidebar” are you trying to have two sidebars display? If so then that would have to be considered custom work for now. Or if your just trying to change the search sidebar to something else then open up the /enfold/sidebar.php file and add this to the bottom of your functions.php file.

    add_filter( 'avf_custom_sidebar', 'enfold_customization_search_sidebar' );
    function enfold_customization_search_sidebar( $sidebar ) {
    	if ( is_search() ) { return 'search'; }
    }

    And create a new widget area called “search” in Dashboard > Appearance > Widgets.

    Regards,
    Elliott

    #414267
    This reply has been marked as private.
    #414282

    the Codestyling Localization doesn’t work, I can’t add new language or edit translations.

    #414306

    It was the “use google libraries” that prevented the codestyling from working. It does now

    #414443

    Hi!

    Please refer to this post to change the archive layout – http://kriesi.at/documentation/enfold/change-archive-categorytag-blog-style/

    Regards,
    Yigit

    #414515

    Hello Yigit,
    Unfortunately that didn’t change anything. It seems that the default enfold style is set for full width, just like for the blog posts themselfs. But that isn’t the case(both times). On the blogpost level I can add a sidebar. But not here at categorie level.

    #414522

    Hi!

    Do you mind creating a temporary admin login and posting it here privately please?

    Cheers!
    Yigit

    #414537
    This reply has been marked as private.
    #415128
    This reply has been marked as private.
    #416426

    Hi!

    Your missing the sidebar options in Dashboard > Enfold > Sidebar Settings for some reason. It must be from a customization.

    Try completely deleting Enfold from your WordPress theme directory before downloading + uploading a fresh copy from themeforest.

    Regards,
    Elliott

    #416954

    Elliot,

    It was that localization plugin. It didn’t translate all the enfold menu items, so they disappeared. I translated them myself and now they are back.

    p.s. do you have any tips on how to change the sidebar on the searchresults page, because of the problem with the blog I forgot about that.

    Thank you
    best regards

    #417601

    Hey!

    Please replace the code on functions.php with this:

    add_filter( 'avf_custom_sidebar', 'enfold_customization_search_sidebar' );
    function enfold_customization_search_sidebar( $custom_sidebar ) {
    	if ( is_search() ) { $custom_sidebar = 'Search'; }
    	return $custom_sidebar;
    }
    

    If you haven’t created a custom sidebar, go to Appearance > Widgets, create a custom widget area called “Search”.

    Best regards,
    Ismael

    #417786

    Hello Ismael,
    Wich code should be replaced?

    cheers

    #417788

    Hey!

    Second code Elliott posted here should be replaced – https://kriesi.at/support/topic/search-results-page-questions/#post-413959

    Best regards,
    Yigit

    #425315

    Everything works now on this subject. But imo you shouldnt recommend the localization plugin anymore. I have so much issues with wrong/not translated menu items.

    #425320

    Hi!

    You can use this free software instead – http://poedit.net/ :)

    Regards,
    Yigit

    #425766
    This reply has been marked as private.
    #426018

    Hey!

    Did you make any changes on search.php file except for the one Elliott suggested here – https://kriesi.at/support/topic/search-results-page-questions/#post-413959
    Even when i remove the code, sidebar does not show up

    Cheers!
    Yigit

    #426423

    Hello Yigit,
    I haven’t made any changes to search.php. The translation Elliot suggested I did not in the php file but with the localization plugin.

    I don’t understand this line:

    “open up the /enfold/sidebar.php file and add this to the bottom of your functions.php file.”

    #426430
    This reply has been marked as private.
    #426437
    This reply has been marked as private.
    #426553

    Hey!

    Error you get here – https://kriesi.at/support/topic/search-results-page-questions/#post-426430
    says that you already had a function called “enfold_customization_search_sidebar” in functions.php and then you added one more, which lead to the error.
    Do you mind posting FTP access as well so we can look into it?

    Best regards,
    Yigit

    #428034
    This reply has been marked as private.
Viewing 24 posts - 1 through 24 (of 24 total)
  • The topic ‘Search results page questions’ is closed to new replies.