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.
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 |
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.
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.
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.
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.
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
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
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;"
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'; }
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.
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.
Yes, It has pagination:
http://pixel.killerwhalesoft.com/search?search_paths%5B%5D=&que...
http://pixel.killerwhalesoft.com/search?search_paths%5B%5D=&que...
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/...