Hello,
regarding to header, I would like to insert an affiliate iframe or javascript (full width as wrap) just before the nav bar. Can you plaese help me with this.
My site is http://www.flightfindair.com
Thank you so much
https://colorlibsupport.com/t/change-location-of-navigation-bar/#post-46314
@Movin : sorry for the off topic, just realized later on where to start a new thread
movin
February 29, 2016, 12:35pm
2
Hi @flightfindair ,
I hope you are well today and thank you for your question.
You can try achieving this by using the attached custom child theme of Travelify theme that contains some custom code.
In the attached child theme functions.php file you will find the following code on line number 99 which you can replace with iframe or javascript code.
Add your iframe or javascript code here.
Best Regards,
Movin
movin
March 1, 2016, 6:48am
4
You are most welcome here
bgrosh
March 22, 2016, 12:15pm
5
I think this sounds like something I could use. I’ve got a logo on the left side of my header and would like a simple paragraph of text on the right. For mobile, they should be displayed sequentially. I added the text I found in the functions.php file from this child theme into the functions.php of the child theme I’m using and added my paragraph of text.
I’m uploading the functions.php file of my travelify child theme, which is activated. The paragraph is not displaying the right of my header. Any idea why not?
The site is primehomeinspections.net
Thanks so much for your help.
Hi Movin,
It works well, only one thing needs to be done. I inserted a serch form, but when you want to type in dates its popup window appears behind the slider so you can not see the date you want to choose. Can you please help me with this to make search form’s date window visible and how to bring it infront os Slider.
Thank you
www.flightfindair.com
bgrosh
March 22, 2016, 9:52pm
7
I see it didn’t upload my page, so here’s the function I inserted:
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>" 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>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<img />" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
</a>
</h1>
<?php
}
?>
</hgroup><!-- #site-logo -->
</div><!-- .hgroup-wrap -->
</div><!-- .container -->
<div class="container clearfix">
<p style="float: right; text-align: right;"><span style="font-size: 20px; color: red;">Gerald Siconolfi</span><br>
(585) 441-4774<br>
<a href="mailto:[email protected] ">[email protected] </a><br>
Prime Home Inspection Services, LLC <br>
New York State License #16000059520 </p>
</div>
<?php $header_image = get_header_image();
if( !empty( $header_image ) ) :?>
<img />" 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
}
}
}
movin
March 23, 2016, 7:13am
8
Hi @Wbgrosh ,
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.
Cheers,
Movin
movin
March 23, 2016, 7:17am
9
Hi @flightfindair ,
You can try resolving datepicker issue by adding the following CSS code in the Custom CSS option of your theme on the below path.
Admin Area -> Appearance -> Customize -> Travelify Other Options
div#ui-datepicker-div {
z-index: 9999 !important;
}
Best Regards,
Movin
Hi Movin,
Thanks for the quick reply. Works well.
Thanks again.
Regards
Csaba @flightfindair
Hi Movin,
Could you please do it with the “From/To” autocomplete aswell?
Thanks
Csaba @flightfindair
movin
March 24, 2016, 5:49am
12
You are most welcome here
Could you please do it with the “From/To” autocomplete aswell?
Just use the below CSS code to make it work for “From/To” fields.
ul.ui-autocomplete.ui-menu.ui-widget {
z-index: 9999 !important;
}
movin
March 25, 2016, 2:25pm
14
You are most welcome here