Logo problem - I can't manage to upload logo using Travelify theme

Hello friends

i can’t manage to upload my logo successfully, every time im uploading it, it dosent even show it to me in the preview and i don’t see it on my website.
what might be my problem ?

Guy

the photo that im trying to upload is attached

Hi @cherckez,

I hope you are well today and thank you for your question.

Please make sure you have selected the Header Logo option ‘Header Logo Only’ as shown in the attached screenshot.

I have tested it on my test site using the logo that you have shared and it worked fine for me without any issue.

Best Regards,
Movin

ok, but now the text is gone, is there a way to keep the header text as well as the logo ?

Hi @cherckez,

We have to develop custom code to display the header text as well as the logo.

Try adding the following custom code in the functions.php file of your child theme.


function customize_travelify_header(){
remove_action( 'travelify_header', 'travelify_headerdetails' );
add_action( 'travelify_header', 'custom_travelify_headerdetails', 99 );
}
add_action('init', 'customize_travelify_header');
/**
 * Shows Header Part Content
 *
 * Shows the site logo, title, description, searchbar, social icons etc.
 */
function custom_travelify_headerdetails() {
?>
	<?php
		global $travelify_theme_options_settings;
   	$options = $travelify_theme_options_settings;

   	$elements = array();
		$elements = array(
			$options[ 'social_facebook' ],
			$options[ 'social_twitter' ],
			$options[ 'social_googleplus' ],
			$options[ 'social_linkedin' ],
			$options[ 'social_pinterest' ],
			$options[ 'social_youtube' ],
			$options[ 'social_vimeo' ],
			$options[ 'social_flickr' ],
			$options[ 'social_tumblr' ],
			$options[ 'social_instagram' ],
			$options[ 'social_rss' ],
			$options[ 'social_github' ]
		);

		$flag = 0;
		if( !empty( $elements ) ) {
			foreach( $elements as $option) {
				if( !empty( $option ) ) {
					$flag = 1;
				}
				else {
					$flag = 0;
				}
				if( 1 == $flag ) {
					break;
				}
			}
		}
	?>

	<div class="container clearfix">
		<div class="hgroup-wrap clearfix">
					<section class="hgroup-right">
						<?php travelify_socialnetworks( $flag ); ?>
					</section><!-- .hgroup-right -->
				<hgroup id="site-logo" class="clearfix">
					<?php
						if( $options[ 'header_show' ] != 'disable-both' && $options[ 'header_show' ] == 'header-text' ) {
						?>
							<h1 id="site-title">
								<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
									<?php bloginfo( 'name' ); ?>
								</a>
							</h1>
							<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
						<?php
						}
						elseif( $options[ 'header_show' ] != 'disable-both' && $options[ 'header_show' ] == 'header-logo' ) {
						?>
							<h1 id="site-title">
								<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
									<img src="<?php echo $options[ 'header_logo' ]; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
								</a>
							</h1>
						<?php
						} else if( $options[ 'header_show' ] == 'disable-both'){ ?>
							<h1 class="site-title">
								<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
									<img src="<?php echo $options[ 'header_logo' ]; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
								</a>
							</h1>
							<h1 id="site-title">
								<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
									<?php bloginfo( 'name' ); ?>
								</a>
							</h1>
							<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
						<?php }
						?>

				</hgroup><!-- #site-logo -->

		</div><!-- .hgroup-wrap -->
	</div><!-- .container -->
	<?php $header_image = get_header_image();
			if( !empty( $header_image ) ) :?>
				<img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
			<?php endif; ?>
	<?php
		if ( has_nav_menu( 'primary' ) ) {
			$args = array(
				'theme_location'    => 'primary',
				'container'         => '',
				'items_wrap'        => '<ul class="root">%3$s</ul>'
			);
			echo '<nav id="main-nav" class="clearfix">
					<div class="container clearfix">';
				wp_nav_menu( $args );
			echo '</div><!-- .container -->
					</nav><!-- #main-nav -->';
		}
		else {
			echo '<nav id="main-nav" class="clearfix">
					<div class="container clearfix">';
				wp_page_menu( array( 'menu_class'  => 'root' ) );
			echo '</div><!-- .container -->
					</nav><!-- #main-nav -->';
		}
	?>
		<?php
		if( is_home() || is_front_page() ) {
			if( "0" == $options[ 'disable_slider' ] ) {
				if( function_exists( 'travelify_pass_cycle_parameters' ) )
   				travelify_pass_cycle_parameters();
   			if( function_exists( 'travelify_featured_post_slider' ) )
   				travelify_featured_post_slider();
   		}
   		}
		else {
			if( ( '' != travelify_header_title() ) || function_exists( 'bcn_display_list' ) ) {
		?>
			<div class="page-title-wrap">
	    		<div class="container clearfix">
	    			<?php
		    		if( function_exists( 'travelify_breadcrumb' ) )
						travelify_breadcrumb();
					?>
				   <h3 class="page-title"><?php echo travelify_header_title(); ?></h3><!-- .page-title -->
				</div>
	    	</div>
	   <?php
	   	}
		}
}

After using the above code, you have to set the Show Header Logo theme option to Disable in theme option which we have customized using the above code to display both text and logo.

Best Regards,
Movin

Please, i need you to be more detailed than that
where exactly in functions.php do i need to add it ? i don’t want to make an technical error and ruin the website
anyway i changed my mind, ive attached the logo i want to add, and i have another question, is it possible to have one logo on the right side of the header and another one on the left side? (i have a multilingual website)

Hi @cherckez,

Please, i need you to be more detailed than that where exactly in functions.php do i need to add it ?

You can add it anywhere in the functions.php file but it’s better to add it at the bottom of the file and make sure to add it in between the opening and closing PHP tags.

anyway i changed my mind, ive attached the logo i want to add, and i have another question, is it possible to have one logo on the right side of the header and another one on the left side? (i have a multilingual website)

Yes it’s possible to achieve it but for that you will have to develop more custom code as i have developed and shared the code previously.

If you are not a programmer then you can consider hiring a developer from any online job board like https://www.elance.com/r/contractors/q-wordpress/

Regards,
Movin

I knew it would happen. my website is showing blank page now…
i tried deleting travelify and its no help, any suggestions ??

Hi @cherckez,

Was your site working fine?

What have you added/updated/deleted that caused this issue?

Could you please share your site URL so that i can test it?

Also can you please try temporary enabling WP_DEBUG mode? To do this, just go to wp-config.php include this:

define('WP_DEBUG',true);

You might already have a line for WP_DEBUG, so just make sure it’s set to true.

Let me know what errors if any you are getting when you face this issue.

Regards,
Movin

Hi movin
after i inserted the code that you gave me, the site crashed.
i tried deleting travelify and doing the debug but its no help…
the url is- zippori.com
maybe give me your email so we’ll move to a more direct network ??

thanks !

Hi @cherckez,

after i inserted the code that you gave me, the site crashed. i tried deleting travelify and doing the debug but its no help…
I have tested the shared code on my test site and it's working fine without any issue.

Have you added the shared code in the functions.php file of travelify theme or the child theme of travelify?

As i have said you should add the shared custom code in the functions.php file of your child theme so that after updating the travelify theme the custom changes will not overwritten and lost.

You might have faced the error message because incorrectly copying the shared code or didn’t add it in between the opening and closing PHP tags.

After deleting the theme that contains the shared custom code then the site should work fine and i can see now it’s working fine zippori.com with default Twenty Fifteen theme.

You can just try using fresh latest version of travelify theme and the attached travelify child theme that contains the shared custom code. You should activate the shared travelify child theme on your site.

maybe give me your email so we’ll move to a more direct network ??

We only provide support through this support forum.

Regards,
Movin

hi,

i think my site just crashed when trying to insert the logo and header css.

please help!

www.footprintsinpolaroids.com

@fnptravel To help us keep support thread separates could you please create your own thread for your question here https://colorlibsupport.com/c/travelify-support/ instead of replying on others thread as it makes the thread messy and hard to read.

If you want to you can also add reference of this thread in your newly created thread.

We would be more than happy to help you on your new thread.

Have you selected the Header logo option Header Logo only shown in attached screenshots. i have tried and its working fine for me.

Hi there

@jamesre this is a 5 years old ticket, please start a new ticket and I will help you