Some questions

Permalink Browser Info Environment
Hello again,.

Installing your theme without content is working fine but I have some (other) questions:
1. Given the fact that the my site is multilingual, is there any way to make the home icon in navigation menu (activated in Pixel options) to load the language dependent home page (if english - PageEN, if other laguage - PageXX)? By default is linked to the default site locale homepage and if I am in the En section, clicking home icon will send me on the PageXX (which is the default locale home page).
2. How can I customize the color of Dark Header? I suppose that will imply changing some .less files or so. I will appreciate if you will point me the right way.
3. If I add some fonts, as per your instructions, is there any way to make them appear in the rich text editor?

Thanks.

Type: Discussion
Status: Resolved
cristi78
View Replies:
shahroq replied on at Permalink Reply 1 Attachment
shahroq
Hi,
1- I attached a file to this topic. Please extract and override it at:
\packages\theme_pixel\blocks\autonav\templates\pixel_main_menu.php
2- It is at \packages\theme_pixel\themes\pixel\css\dark.less. However, I recommend not edit this file directly as it will be overridden on next versions. I suggest take those related lines and do what we instructed on Instruction page #18.
3- Check this core tutorial:
https://www.concrete5.org/marketplace/themes/pixel/instructions/...
cristi78 replied on at Permalink Reply
cristi78
Regarding the home icon problem - your patch is working flawless. Thank you!!!

Can you please give me some examples about where which font is used (nav, page content etc.)? Or, maybe, a quick way to find out myself?
@body-font: -
@heading-font: -
@secondary-font: -

Is necessary to import fonts specifying the weight(s):
@import url(//fonts.googleapis.com/css?family=Raleway:300,400,500,600,700);
or
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
will suffice?

What if the substitute font for @body-font doesn't have all the weights of the original font?

Thanks.
shahroq replied on at Permalink Reply
shahroq
Hi,
There are 3 variables in variables.less file which responsible for all fonts in the theme. You can copy them at variables.dev.less and change them to what you want. However, these new fonts should have imported before. Also, there are some sample lines at variables.dev.less and custom.dev.less which should be clear.
Then you can search through all .less files and see where and how these 3 variables are used.
Regarding your second question, of course, you should include any weight you intend to use.
cristi78 replied on at Permalink Reply
cristi78
Many thanks for helping.

Do you have any plans to make Search usable in a multilingual site?
I want to set for each language section a separate search results page not a global one as in Pixel options.

Can I do this on my own by modifying some files?

Thank you
shahroq replied on at Permalink Reply
shahroq
We may come with a solution for the multilingual sites in upcoming versions. Till then, of course, you can manually redirect to different search pages.
Open \packages\theme_pixel\blocks\autonav\templates\pixel_main_menu.php and insert these lines at line 285 after "$search->controller->postTo_cID = $search_page;"
//for multilangual: insert pageID instead of 0
if(Localization::activeLanguage()!='en'){ // or =='your language'
   $search->controller->postTo_cID = 0; //'search page ID';   
}
cristi78 replied on at Permalink Reply
cristi78
Working like a charm.

Because I don't have yet so much pages and content to test it myself, I have to ask - if there are many search results (200) they are paginated or I must do something?

Many thanks again.
shahroq replied on at Permalink Reply
shahroq

concrete5 Environment Information

-

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.