- This topic has 5 replies, 2 voices, and was last updated 8 years, 3 months ago by radeko.
-
AuthorPosts
-
January 11, 2016 at 1:49 am #82610radekoParticipant
Hi on my site http://54.83.45.133/
once I change the language the link for the site title (Amruta) also changes
for example for German version i’m having the url http://54.83.45.133/de
is it possible to have always the same url http://54.83.45.133 for every language?thank you
RadekJanuary 11, 2016 at 11:59 am #82634MaheshKeymasterHi @radeko,
The theme is translation ready. And the translation is done with the help of plugins such as WPML, Qtranlate etc. The site url for each language may vary according to the plugin used. This is beyond the theme scope, I suggest you to contact the Plugin support.
Regards,
MaheshJanuary 11, 2016 at 3:44 pm #82662radekoParticipantthank you I will ask the WPML support.
best regards
RadekJanuary 12, 2016 at 4:52 pm #82729radekoParticipantI asked wpml support and it works once I change the file
catch-responsive/inc/catchresponsive-custom-header.php
line 226
from
home_url( ‘/’ )
to
site_url( ‘/’ )I would prefer not to modify the file
does the pro version provides a possibility to modify this variable via the options?thank you
RadoslawJanuary 12, 2016 at 5:18 pm #82733MaheshKeymasterHi @radeko,
I think I misunderstood you earlier, you mean to make the site title link to point to http://54.83.45.133 despite of any language selected. I thought you meant to make the site’s url to http://54.83.45.133 for any language e.g for english, german etc. Sorry for my misunderstanding.
No, there is no such options to change that variable via an option. Either Free or Pro, you have to create a child theme and override that function.
First create a child theme, please check this LINK for more details on how to create a child theme, then in child theme’sfunction.php
add the following function.function catchresponsive_site_branding() { //catchresponsive_flush_transients(); $options = catchresponsive_get_theme_options(); //$style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); //Checking Logo if ( '' != $options['logo'] && !$options['logo_disable'] ) { $catchresponsive_site_logo = ' <div id="site-logo"> <a href="' . esc_url( site_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" rel="home"> <img src="' . esc_url( $options['logo'] ) . '" alt="' . esc_attr( $options['logo_alt_text'] ). '"> </a> </div><!-- #site-logo -->'; } else { $catchresponsive_site_logo = ''; } $catchresponsive_header_text = ' <div id="site-header"> <h1 class="site-title"><a href="' . esc_url( site_url( '/' ) ) . '">' . get_bloginfo( 'name' ) . '</a></h1> <h2 class="site-description">' . get_bloginfo( 'description' ) . '</h2> </div><!-- #site-header -->'; $text_color = get_header_textcolor(); if ( '' != $options['logo'] && !$options['logo_disable'] ) { if ( ! $options['move_title_tagline'] && 'blank' != $text_color ) { $catchresponsive_site_branding = '<div id="site-branding" class="logo-left">'; $catchresponsive_site_branding .= $catchresponsive_site_logo; $catchresponsive_site_branding .= $catchresponsive_header_text; } else { $catchresponsive_site_branding = '<div id="site-branding" class="logo-right">'; $catchresponsive_site_branding .= $catchresponsive_header_text; $catchresponsive_site_branding .= $catchresponsive_site_logo; } } else { $catchresponsive_site_branding = '<div id="site-branding">'; $catchresponsive_site_branding .= $catchresponsive_header_text; } $catchresponsive_site_branding .= '</div><!-- #site-branding-->'; echo $catchresponsive_site_branding ; }
Regards,
MaheshJanuary 12, 2016 at 6:03 pm #82737radekoParticipantthank you, it works like a charm!
best regards
Radek -
AuthorPosts
- The topic ‘the site title – always content url for different languages’ is closed to new replies.