Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #82610
    radeko
    Participant

    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
    Radek

    #82634
    Mahesh
    Keymaster

    Hi @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,
    Mahesh

    #82662
    radeko
    Participant

    thank you I will ask the WPML support.

    best regards
    Radek

    #82729
    radeko
    Participant

    I 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
    Radoslaw

    #82733
    Mahesh
    Keymaster

    Hi @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’s function.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,
    Mahesh

    #82737
    radeko
    Participant

    thank you, it works like a charm!

    best regards
    Radek

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘the site title – always content url for different languages’ is closed to new replies.