Theme settings storage

casagrandeale's picture
casagrandeale
Thu, 01/07/2016 - 21:59
#1
Theme settings storage

Hi, I need to change the dropcap of some page titles to make them multilingual.

I edited for example the ones for accomodations adding the lang prefix ahead of the url ex: /es/accomodations 

I need to do the same with bookings, but I don't know why it does not save any changes, where are these settings storaged? I could change them manually.

Thank you

Regards

phuonght's picture
phuonght
Sat, 01/09/2016 - 05:33

Hi,

Could you send us your site url, admin account and FTP account by private comment? We would like to have a check in your site. 

phuonght's picture
phuonght
Mon, 01/11/2016 - 23:36

You could not change in theme settings because there are two languages but only one base path. 
- We checked and could see you added for langue english and translated to es
- You could customise code as following:

in file sites/all/themes/md_flawleshotel/theme_setting/front/page.preprocess.inc,
function md_flawleshotel_process_page(), insert code (at the end of function):

global $language;
if ($current_path == 'accommodations') {
if ($language->language == 'es') {
$vars['title'] = t('Title in here');
$vars['title_dropcap'] = t('D');
$vars['title_des'] = t('Descriptions');
}
}
casagrandeale's picture
casagrandeale
Sat, 01/16/2016 - 08:11

Great that worked!

It is not necesary to use $language, with the t function just using string overrides it solves what I need

Thanks

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.