Tagged: results, search, sidebar, style, translation
-
AuthorPosts
-
March 18, 2015 at 11:53 am #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!
March 18, 2015 at 8:43 pm #413959Hi 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,
ElliottMarch 19, 2015 at 11:05 am #414267This reply has been marked as private.March 19, 2015 at 11:32 am #414282the Codestyling Localization doesn’t work, I can’t add new language or edit translations.
March 19, 2015 at 12:00 pm #414306It was the “use google libraries” that prevented the codestyling from working. It does now
March 19, 2015 at 2:58 pm #414443Hi!
Please refer to this post to change the archive layout – http://kriesi.at/documentation/enfold/change-archive-categorytag-blog-style/
Regards,
YigitMarch 19, 2015 at 3:35 pm #414515Hello 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.March 19, 2015 at 3:38 pm #414522Hi!
Do you mind creating a temporary admin login and posting it here privately please?
Cheers!
YigitMarch 19, 2015 at 3:46 pm #414537This reply has been marked as private.March 20, 2015 at 9:16 am #415128This reply has been marked as private.March 23, 2015 at 4:03 pm #416426Hi!
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,
ElliottMarch 24, 2015 at 9:35 am #416954Elliot,
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 regardsMarch 25, 2015 at 8:49 am #417601Hey!
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,
IsmaelMarch 25, 2015 at 3:25 pm #417786Hello Ismael,
Wich code should be replaced?cheers
March 25, 2015 at 3:27 pm #417788Hey!
Second code Elliott posted here should be replaced – https://kriesi.at/support/topic/search-results-page-questions/#post-413959
Best regards,
YigitApril 8, 2015 at 2:32 pm #425315Everything 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.
April 8, 2015 at 2:35 pm #425320April 9, 2015 at 9:12 am #425766This reply has been marked as private.April 9, 2015 at 4:06 pm #426018Hey!
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 upCheers!
YigitApril 10, 2015 at 9:17 am #426423Hello 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.”
April 10, 2015 at 9:29 am #426430This reply has been marked as private.April 10, 2015 at 9:46 am #426437This reply has been marked as private.April 10, 2015 at 1:31 pm #426553Hey!
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,
YigitApril 14, 2015 at 8:08 am #428034This reply has been marked as private. -
AuthorPosts
- The topic ‘Search results page questions’ is closed to new replies.