Forum Replies Created

Viewing 15 replies - 301 through 315 (of 471 total)
  • You are always welcome here 🙂

    Hi Piani,

    You can also link the header image by adding the following custom code in the functions.php file of you child theme.

    function modify_travelify_header(){
    
        remove_action( 'travelify_header', 'travelify_headerdetails' );
        add_action('travelify_header', 'custom_travelify_headerdetails', 1);
    }
    add_action('init', 'modify_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
    						}
    						?>
    
    				</hgroup><!-- #site-logo -->
    
    		</div><!-- .hgroup-wrap -->
    	</div><!-- .container -->
    	<?php $header_image = get_header_image();
    			if( !empty( $header_image ) ) :?>
                                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    				<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' ) ); ?>">
                                </a>
    			<?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
    	   	}
    		}
    }

    Best Regards,
    Movin

    Let’s resolve the issue on your following thread to avoid duplication of replies.

    https://colorlib.com/wp/forums/topic/confilct-with-yoast-after-update/#post-39261

    You are most welcome here 🙂

    Hi @haivri,

    If you want to remove it from all pages then use the following CSS code instead of previously provided code.

    .entry-meta-bar {
        display: none;
    }

    Best Regards,
    Movin

    Hi Piani,

    I hope you are well today and thanks for posting here.

    I have tested it on my test site and the header image is working fine for me using latest version of Travelify theme except on mobile devices it would display nice if center aligned it which can be done using the following CSS code.

    @media ( max-width: 760px) {
    
    #site-logo {
        float: none;
        text-align: center;
    }
    
    }

    The CSS code solution that you have shared here is only applicable for your custom functionality where the header logo is rectangular & wider enough to fill whole page width and the header social icons are not displayed.

    Best Regards,
    Movin

    Hi @chino75,

    I hope you are well today and thanks for posting here.

    Could you please tell me a bit more information about the issue like what version of Yoast SEO plugin & Travelify theme you are using and what do you mean by “plugin does not recognize any words, outbound links or images” so that i can troubleshoot it?

    Kind Regards,
    Movin

    Hi Piani,

    Thanks for posting here.

    I have notified this to the theme developer here https://github.com/puikinsh/Travelify/issues/14 and i hope it will be added in the future version of the theme.

    Thanks,
    Movin

    Hi Piani,

    I hope you are well today and thanks for posting here.

    I have notified the theme developer to change it.

    It will be changed in the future version of theme.

    In the meanwhile to change it try adding the following code in the functions.php file of your child theme.

    function modify_travelify_add_meta(){
    
        remove_action( 'wp_head', 'travelify_add_meta', 5 );
        add_action( 'wp_head', 'custom_travelify_add_meta', 10 );
    }
    add_action( 'init', 'modify_travelify_add_meta'  );
    
    /**
     * Add meta tags.
     */
    function custom_travelify_add_meta() {
    ?>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=4">
    <?php
    }

    Best Regards,
    Movin

    Hi @iconicgoa,

    Sorry to hear of the problem you are having.

    I have tested it on my test site and it’s working fine for me using latest version of Travelify theme.

    I tried to access your shared site but it’s displaying the following error.

    This webpage is not available

    Could you please make sure that the site is accessible so that i can troubleshoot it?

    Kind Regards,
    Movin

    Hi Martina,

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

    The questions are already answered in the following thread.

    https://colorlib.com/wp/forums/topic/dropmenu-color-title-background-color/

    Cheers,
    Movin

    Hi @szwp,

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

    I visited your shared site and saw on the home page of your site 5 posts are displayed from the category “Technology & Trends” and not 4.

    Is the issue resolved now?

    Kind Regards,
    Movin

    Just want to update you here that the issue is resolved in the latest version of Travelify theme.

    Hi Jasperovic,

    Awesome great to see you got that resolved. The issue is resolved in the latest version of Travelify theme.

    Please advise if you have more questions.

    Have a fantastic day!

    Cheers,
    Movin

    You are most welcome here 🙂

Viewing 15 replies - 301 through 315 (of 471 total)