sbahjaoui
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Sitemap XML Error loading style sheetI fixed my problem thank you.
The problem was redirection on host.
==========================
# redirection to www
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
==========================Forum: Plugins
In reply to: [qTranslate X] Flags only, Menu languageswitcher without saying "LANGUAGE"Hi everybody,
I have the same problem (i would like to display just the flags without text) i changed in my menu :”#qtransLangSwLM#” by “#qtransLangSwLM#?title=none” and i got the flag without text, the problem is i got just one flag and still display Dropdown Box, i don’t need it, i would like just the flags both of them on my menu.
Thank youForum: Plugins
In reply to: [qTranslate X] Add meta description multilanguagesThank you
Forum: Plugins
In reply to: [qTranslate X] Problem permalinkHi Gunu,
I hope every thing good!
Thnak you for your advise about qTranslate X and Slug really helpful.
Now i have a probleme about switch language from french to english i got blank page because it doesn’t add slash at the end, but before it’s works just when i disable yoast seo and enable it i got this problem, if i disabled every things works perfectly.
Please i need to use yoast seo with this great plugin qTranslate if it’s not possible can i add specifique fields like title meta title and meta description multilanguages (English and French)
Thank you so much.Forum: Plugins
In reply to: [qTranslate X] site.com/en trailing slash missingHi everybody,
Please help me in order to fix problem widget qtranslate X with yost seo, when i desable plugin yost seo, every things works perfect: the widget workes well redirection (french and english)
exemple in frensh version:
wwww.website.com
in English version
https://www.website.com/en on widget redirect to https://www.website.com/en/
But when i enabled plugin yost seo
The widget doesn’t works for version english it redirect me to blank page without slash like this https://www.website.com/en
Please how can i fix this just in home page?Forum: Plugins
In reply to: [Yoast SEO] Structered data – WebSite error<script type='application/ld+json'> {"@context":"http:\/\/schema.org", "@type":"WebSite", "url":"http:\/\/www.yourwebsite.com\/", "name":"Name of your website", "potentialAction":{"@type":"SearchAction","target":"http:\/\/www.yourwebsite.com\/?s={search_term_string}", "query-input":"required name=search_term_string"}} </script>
Replace yourwebsite by your website and same thing for name.
Forum: Plugins
In reply to: [qTranslate X] Remove generator tagHi toto,
In order to remove meta generator qTranslate-X
copy this code into functions.php in your theme:
————-code—————————————–
remove_action(‘wp_head’,’qtranxf_wp_head_meta_generator’);
———————————————————-Forum: Plugins
In reply to: [All-In-One Security (AIOS) – Security and Firewall] WP Meta InfoPut this code in function.php – it will remove VC meta tags
add_action(‘init’, ‘myoverride’, 100);
function myoverride() {
remove_action(‘wp_head’, array(visual_composer(), ‘addMetaData’));
}Works perfectly ??
Forum: Plugins
In reply to: [Polylang] Trouble with language swicherThank you
Forum: Plugins
In reply to: [qTranslate X] Problem permalinkHi again,
I installed the plugin Qtranslate Slug but it doesn’t gave me abbility to add my menu as primary
look at this screenshot :
image
Thank youForum: Plugins
In reply to: [qTranslate X] Problem permalinkThank you, i going to check this.
Forum: Plugins
In reply to: [Polylang] Trouble with language swicherForum: Plugins
In reply to: [Polylang] Trouble with language swicherI use template travler of themeforest.net i can gave you codes FTP to check please send me your private email
Forum: Plugins
In reply to: [Polylang] Trouble with language swicheri foud the file which contain switch languages how can i add polylang here
<?php /** * @package WordPress * @subpackage * @since 1.0 * */ $login_fb=st()->get_option('social_fb_login','on'); $login_gg=st()->get_option('social_gg_login','on'); $login_tw=st()->get_option('social_tw_login','on'); if(function_exists('icl_get_languages')) { $langs=icl_get_languages('skip_missing=0'); } else{ $langs=array(); } ?> <div class="col-md-9"> <div class="top-user-area clearfix"> <ul class="top-user-area-list list list-horizontal list-border "> <?php $is_user_nav = st()->get_option('enable_user_nav','on') ?> <?php if($is_user_nav == 'on'): ?> <?php if(is_user_logged_in()):?> <li class="top-user-area-avatar"> <?php $account_dashboard = st()->get_option('page_my_account_dashboard'); $location='#'; if(!empty($account_dashboard)){ $location = esc_url(add_query_arg( 'page_id', $account_dashboard, home_url() )); } ?> <a href="<?php echo esc_url($location) ?>"> <?php $current_user = wp_get_current_user(); echo st_get_profile_avatar($current_user->ID,40); echo st_get_language('hi').', '.$current_user->display_name; ?> </a> </li> <li> <a href="<?php echo wp_logout_url(home_url())?>"><?php st_the_language('sign_out')?></a> </li> <?php else: ?> <li class="nav-drop"> <?php $page_login = st()->get_option('page_user_login'); ?> <a href="#" onclick="return false;"><?php st_the_language('sign_in')?><i class="fa fa-angle-down"></i><i class="fa fa-angle-up"></i></a> <ul class="list nav-drop-menu user_nav_big social_login_nav_drop" > <li><a class="" href="<?php echo get_permalink($page_login) ?>"><?php st_the_language('sign_in')?></a></li> <?php if($login_fb=="on"): ?> <li><a onclick="return false" class="btn_login_fb_link login_social_link" href="<?php echo STSocialLogin::get_provider_login_url('Facebook') ?>"><?php st_the_language('connect_with')?> <i class="fa fa-facebook"></i></a></li> <?php endif;?> <?php if($login_gg=="on"): ?> <li><a onclick="return false" class="btn_login_gg_link login_social_link" href="<?php echo STSocialLogin::get_provider_login_url('Google') ?>"><?php st_the_language('connect_with')?> <i class="fa fa-google-plus"></i></a></li> <?php endif;?> <?php if($login_tw=="on"): ?> <li><a onclick="return false" class="btn_login_tw_link login_social_link" href="<?php echo STSocialLogin::get_provider_login_url('Twitter') ?>"><?php st_the_language('connect_with')?> <i class="fa fa-twitter"></i></a></li> <?php endif;?> </ul> </li> <?php endif;?> <?php endif; ?> <li class="nav-drop"> <a class="cursor" ><?php $current_currency=TravelHelper::get_current_currency(); if(isset($current_currency['name'])) { echo esc_html( $current_currency['name']); } if(isset($current_currency['symbol'])) { echo esc_html(' '.$current_currency['symbol']); } ?><i class="fa fa-angle-down"></i><i class="fa fa-angle-up"></i></a> <ul class="list nav-drop-menu"> <?php $currency =TravelHelper::get_currency(); if(!empty($currency)){ foreach($currency as $key=>$value){ if($current_currency['name']!=$value['name']) echo '<li><a href="'.esc_url(add_query_arg('currency',$value['name'])).'">'.$value['name'].'<span class="right">'.$value['symbol'].'</span></a> </li>'; } } ?> </ul> </li> <?php if(!empty($langs)) { foreach($langs as $key=>$value){ if($value['active']==1){ $current=' <a href="#"> <img height="12px" width= "18px" src="'.$value['country_flag_url'].'" alt="'.$value['native_name'].'" title="'.$value['native_name'].'">'.$value['native_name'].'<i class="fa fa-angle-down"></i><i class="fa fa-angle-up"></i> </a>'; break; } } echo '<li class="top-user-area-lang nav-drop wpml_nav"> '.$current.'<ul class="list nav-drop-menu" style="min-width:120px">'; foreach($langs as $key=>$value){ if($value['active']==1) continue; $link = $value['url'] ; $request_tmp = STInput::get(); $request = array(); $request['lang'] = $value['language_code']; if (is_array($request_tmp) and !empty($request_tmp)){ foreach ($request_tmp as $key2 => $value2) { if ($key2 !='lang'){ $request[$key2] = $value2; } } } if (is_search()){ $link = add_query_arg( $request , home_url()); }else { $link = add_query_arg( $request , get_permalink()); } ?> <li> <a class="image_prites_<?php echo esc_attr($value['language_code']); ?>" title="<?php echo esc_attr($value['native_name']) ?>" href="<?php echo esc_url($link) ?>"> <img height='12px' width= '18px' src="<?php echo esc_attr($value['country_flag_url']) ?>" alt="<?php echo esc_attr($value['native_name']) ?>" title="<?php echo esc_attr($value['native_name']) ?>"><span class="right"><?php echo esc_attr($value['native_name']) ?></span> </a> </li> <?php } echo '</ul></li>'; }?> <?php if(function_exists('qtranxf_init_language') and !function_exists('icl_get_languages')) { ?> <li class="top-user-area-lang nav-drop qtranslate"> <?php global $q_config; global $pagenow ; $flags = qtranxf_language_configured('flag'); $flag_dir = qtranxf_flag_location() ; $current_language = $q_config['language']; $lang_name = $q_config['language_name'][$current_language]; ?> <a class="image_prites_<?php echo esc_attr($current_language);?>" href="#" > <img height='12px' width= '18px' src="<?php echo esc_attr($flag_dir.$flags[$current_language]) ; ?>" alt="<?php echo esc_attr($lang_name) ; ?>" title="<?php echo esc_attr($lang_name) ; ?>"><?php echo esc_attr($lang_name) ; ?><i class="fa fa-angle-down"></i><i class="fa fa-angle-up"></i> <i class="fa fa-angle-down"></i><i class="fa fa-angle-up"></i> </a> <ul class="list nav-drop-menu" style="min-width:120px"> <?php $variable = qtranxf_getSortedLanguages(); if (!empty($variable) and is_array($variable)){ foreach ( $variable as $key => $value) { $qtrans_link = qtranxf_convertURL('',$value, false, true); $lang_name = $q_config['language_name'][$value]; if (is_search()){ $request = STInput::get(); $request['lang'] = $value['language_code']; $qtrans_link = add_query_arg( $request , home_url()); } ?> <li> <a title="<?php echo esc_attr($lang_name) ; ?>" href="<?php echo esc_attr($qtrans_link);?>"> <img src="<?php echo esc_attr($flag_dir.$flags[$value]) ; ?>" alt="<?php echo esc_attr($lang_name) ; ?>" title="<?php echo esc_attr($lang_name) ; ?>"> <span class="right"><?php echo esc_attr($lang_name) ; ?></span> </a> </li> <?php } }?> </ul> </li> <?php } ; ?> </ul> <?php $search_header_onoff = st()->get_option('search_header_onoff', 'on'); if($search_header_onoff == 'on'): ?> <form class="main-header-search" action="<?php echo home_url( '/' ); ?>" method="get"> <div class="form-group form-group-icon-left"> <i class="fa fa-search input-icon"></i> <input type="text" data-lang="<?php echo (defined('ICL_LANGUAGE_CODE'))?ICL_LANGUAGE_CODE:false; ?>" name="s" value="<?php echo get_search_query() ?>" class="form-control st-top-ajax-search"> <input type="hidden" name="post_type" value="post"> </div> </form> <?php endif; ?> </div> </div>
Forum: Plugins
In reply to: [Polylang] Trouble with language swicherIt doesn’t work you can chek this on my website please : https://soufiane011.eb2a.com