-
jakras81Participant
Hi
I can change the “currently browsing”, but how do i change the word category, when browsing a category?
When I have performed a search I would also like to add (after currently browsing) searchresults for “search term”
I would also like to add “archive” after currently browsing on archive pages.
Hope you can help.
Thank you.
AlexanderParticipantHi jakras81,
you can do this be editing your .language (.pot) file that comes with the theme at /pinboard/languages. Instead of making a translation you can just tweak the actual wording.
Cheers,
Alexander @ http://www.mouseclick.comjakras81ParticipantI can’t find this things in my lang files and if I change the word archive manually it will use the word on search results as well.
so this doesn’t solve the problem and it doesn’t solve the problem about showing results for search term after currently browsing.
jakras81ParticipantThanks, but I can translate the theme.
But I would like to add different output to different pages, like I first described.
That is not possible via translation…
Daniel TaraKeymasterYou can edit the function pinboard_current_location() in functions.php and add more conditionals as to what text is displayed and when.
jakras81ParticipantYes, but I don’t know what to do.
For an example there is a piece of code that looks like it should show something else than currently browsing when I performed a search, but it doesn’t seem to work…
elseif( is_search() ) {
__( ‘Search results for’, ‘pinboard’ ) . ‘: "’ . get_search_query() . ‘"’;
You must be logged in to reply to this topic.